[aur-dev] [PATCH] Do not use the term "unsupported" for AUR packages
We no longer use the term [unsupported] to refer to the "repository" of AUR packages. Fixes FS#45381. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org> --- web/html/home.php | 2 +- web/template/cgit/footer.html | 2 +- web/template/footer.php | 2 +- web/template/stats/user_table.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/html/home.php b/web/html/home.php index 3252876..23f37fe 100644 --- a/web/html/home.php +++ b/web/html/home.php @@ -39,7 +39,7 @@ html_header( __("Home") ); </p> <p class="important"> <?= __('DISCLAIMER') ?>: - <?= __('Unsupported packages are user produced content. Any use of the provided files is at your own risk.'); ?> + <?= __('AUR packages are user produced content. Any use of the provided files is at your own risk.'); ?> </p> <p class="readmore"><a href="https://wiki.archlinux.org/index.php/AUR"><?= __('Learn more...') ?></a></p> </div> diff --git a/web/template/cgit/footer.html b/web/template/cgit/footer.html index 80481d9..36e0f1b 100644 --- a/web/template/cgit/footer.html +++ b/web/template/cgit/footer.html @@ -1,6 +1,6 @@ <div id="footer"> <p> Copyright © 2004-2014 aurweb Development Team – - <strong>Unsupported packages are user produced content. Any use of the provided files is at your own risk.</strong> + <strong>AUR packages are user produced content. Any use of the provided files is at your own risk.</strong> </p> </div> diff --git a/web/template/footer.php b/web/template/footer.php index 068cc06..1b3c936 100644 --- a/web/template/footer.php +++ b/web/template/footer.php @@ -6,7 +6,7 @@ <p>aurweb <a href="https://projects.archlinux.org/aurweb.git/log/?h=<?= htmlspecialchars($ver, ENT_QUOTES) ?>"><?= htmlspecialchars($ver) ?></a></p> <?php endif; ?> <p>Copyright © 2004-<?= date("Y") ?> aurweb Development Team.</p> - <p><?= __('Unsupported packages are user produced content. Any use of the provided files is at your own risk.') ?></p> + <p><?= __('AUR packages are user produced content. Any use of the provided files is at your own risk.') ?></p> </div> </div> </body> diff --git a/web/template/stats/user_table.php b/web/template/stats/user_table.php index 284d5b9..62361a7 100644 --- a/web/template/stats/user_table.php +++ b/web/template/stats/user_table.php @@ -8,7 +8,7 @@ $username = username_from_sid($_COOKIE["AURSID"]); <tr> <td> <a href="<?= get_uri('/packages/'); ?>?SeB=m&K=<?= $username; ?>"> -<?= __("Packages in unsupported"); ?></a> +<?= __("Packages"); ?></a> </td> <td><?= $maintainer_unsupported_count; ?></td> </tr> -- 2.4.6
On 21/07, Lukas Fleischer wrote:
We no longer use the term [unsupported] to refer to the "repository" of AUR packages.
Fixes FS#45381.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
I wonder if we should rename the variables referencing unsupported at the same time?
--- web/html/home.php | 2 +- web/template/cgit/footer.html | 2 +- web/template/footer.php | 2 +- web/template/stats/user_table.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/web/html/home.php b/web/html/home.php index 3252876..23f37fe 100644 --- a/web/html/home.php +++ b/web/html/home.php @@ -39,7 +39,7 @@ html_header( __("Home") ); </p> <p class="important"> <?= __('DISCLAIMER') ?>: - <?= __('Unsupported packages are user produced content. Any use of the provided files is at your own risk.'); ?> + <?= __('AUR packages are user produced content. Any use of the provided files is at your own risk.'); ?> </p> <p class="readmore"><a href="https://wiki.archlinux.org/index.php/AUR"><?= __('Learn more...') ?></a></p> </div> diff --git a/web/template/cgit/footer.html b/web/template/cgit/footer.html index 80481d9..36e0f1b 100644 --- a/web/template/cgit/footer.html +++ b/web/template/cgit/footer.html @@ -1,6 +1,6 @@ <div id="footer"> <p> Copyright © 2004-2014 aurweb Development Team – - <strong>Unsupported packages are user produced content. Any use of the provided files is at your own risk.</strong> + <strong>AUR packages are user produced content. Any use of the provided files is at your own risk.</strong> </p> </div> diff --git a/web/template/footer.php b/web/template/footer.php index 068cc06..1b3c936 100644 --- a/web/template/footer.php +++ b/web/template/footer.php @@ -6,7 +6,7 @@ <p>aurweb <a href="https://projects.archlinux.org/aurweb.git/log/?h=<?= htmlspecialchars($ver, ENT_QUOTES) ?>"><?= htmlspecialchars($ver) ?></a></p> <?php endif; ?> <p>Copyright © 2004-<?= date("Y") ?> aurweb Development Team.</p> - <p><?= __('Unsupported packages are user produced content. Any use of the provided files is at your own risk.') ?></p> + <p><?= __('AUR packages are user produced content. Any use of the provided files is at your own risk.') ?></p> </div> </div> </body> diff --git a/web/template/stats/user_table.php b/web/template/stats/user_table.php index 284d5b9..62361a7 100644 --- a/web/template/stats/user_table.php +++ b/web/template/stats/user_table.php @@ -8,7 +8,7 @@ $username = username_from_sid($_COOKIE["AURSID"]); <tr> <td> <a href="<?= get_uri('/packages/'); ?>?SeB=m&K=<?= $username; ?>"> -<?= __("Packages in unsupported"); ?></a> +<?= __("Packages"); ?></a> </td> <td><?= $maintainer_unsupported_count; ?></td> </tr> -- 2.4.6
-- Sincerely, Johannes Löthberg PGP Key ID: 0x50FB9B273A9D0BB5 https://theos.kyriasis.com/~kyrias/
* Johannes Löthberg <johannes@kyriasis.com> (Tue, 21 Jul 2015 16:21:07 +0200):
On 21/07, Lukas Fleischer wrote:
We no longer use the term [unsupported] to refer to the "repository" of AUR packages.
Fixes FS#45381.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
I wonder if we should rename the variables referencing unsupported at the same time?
Good point!
<div id="footer"> <p> Copyright © 2004-2014 aurweb Development Team – - <strong>Unsupported packages are user produced content. Any use of the provided files is at your own risk.</strong> + <strong>AUR packages are user produced content. Any use of the provided files is at your own risk.</strong> </p> </div>
The footer is not translatable on purpose? And why not use UTF-8 characters © and – instead of HTML entities? Saves a few bytes. For the record, the main site does this too, now. Best, Marcel
On Tue, 21 Jul 2015 at 16:33:59, Marcel Korpel wrote:
* Johannes Löthberg <johannes@kyriasis.com> (Tue, 21 Jul 2015 16:21:07 +0200):
On 21/07, Lukas Fleischer wrote:
We no longer use the term [unsupported] to refer to the "repository" of AUR packages.
Fixes FS#45381.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
I wonder if we should rename the variables referencing unsupported at the same time?
Good point!
Yeah, I will change this in v2. Thanks.
<div id="footer"> <p> Copyright © 2004-2014 aurweb Development Team – - <strong>Unsupported packages are user produced content. Any use of the provided files is at your own risk.</strong> + <strong>AUR packages are user produced content. Any use of the provided files is at your own risk.</strong> </p> </div>
The footer is not translatable on purpose? And why not use UTF-8 characters © and – instead of HTML entities? Saves a few bytes. For the record, the main site does this too, now.
The cgit footer cannot be translated. It uses HTML entities because I copied it from the footer of our official (projects.archlinux.org) cgit setup. This can be changed in a separate patch.
Best, Marcel
We no longer use the term [unsupported] to refer to the "repository" of AUR packages. Update texts and variable names accordingly. Fixes FS#45381. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org> --- web/html/home.php | 2 +- web/lib/stats.inc.php | 5 ++--- web/template/cgit/footer.html | 2 +- web/template/footer.php | 2 +- web/template/stats/general_stats_table.php | 2 +- web/template/stats/user_table.php | 4 ++-- 6 files changed, 8 insertions(+), 9 deletions(-) diff --git a/web/html/home.php b/web/html/home.php index 3252876..23f37fe 100644 --- a/web/html/home.php +++ b/web/html/home.php @@ -39,7 +39,7 @@ html_header( __("Home") ); </p> <p class="important"> <?= __('DISCLAIMER') ?>: - <?= __('Unsupported packages are user produced content. Any use of the provided files is at your own risk.'); ?> + <?= __('AUR packages are user produced content. Any use of the provided files is at your own risk.'); ?> </p> <p class="readmore"><a href="https://wiki.archlinux.org/index.php/AUR"><?= __('Learn more...') ?></a></p> </div> diff --git a/web/lib/stats.inc.php b/web/lib/stats.inc.php index 203be0a..5a24591 100644 --- a/web/lib/stats.inc.php +++ b/web/lib/stats.inc.php @@ -39,8 +39,7 @@ function user_table($userid) { $base_q.= "WHERE MaintainerUID = " . $userid . " "; $base_q.= "AND PackagerUID IS NOT NULL"; - $maintainer_unsupported_count = db_cache_value($base_q, - 'user_unsupported_count:' . $userid); + $user_pkg_count = db_cache_value($base_q, 'user_pkg_count:' . $userid); $q = "SELECT COUNT(*) FROM PackageBases "; $q.= "WHERE OutOfDateTS IS NOT NULL "; @@ -60,7 +59,7 @@ function user_table($userid) { function general_stats_table() { # AUR statistics $q = "SELECT COUNT(*) FROM PackageBases WHERE PackagerUID IS NOT NULL"; - $unsupported_count = db_cache_value($q, 'unsupported_count'); + $pkg_count = db_cache_value($q, 'pkg_count'); $q = "SELECT COUNT(*) FROM PackageBases "; $q.= "WHERE MaintainerUID IS NULL "; diff --git a/web/template/cgit/footer.html b/web/template/cgit/footer.html index 80481d9..36e0f1b 100644 --- a/web/template/cgit/footer.html +++ b/web/template/cgit/footer.html @@ -1,6 +1,6 @@ <div id="footer"> <p> Copyright © 2004-2014 aurweb Development Team – - <strong>Unsupported packages are user produced content. Any use of the provided files is at your own risk.</strong> + <strong>AUR packages are user produced content. Any use of the provided files is at your own risk.</strong> </p> </div> diff --git a/web/template/footer.php b/web/template/footer.php index 068cc06..1b3c936 100644 --- a/web/template/footer.php +++ b/web/template/footer.php @@ -6,7 +6,7 @@ <p>aurweb <a href="https://projects.archlinux.org/aurweb.git/log/?h=<?= htmlspecialchars($ver, ENT_QUOTES) ?>"><?= htmlspecialchars($ver) ?></a></p> <?php endif; ?> <p>Copyright © 2004-<?= date("Y") ?> aurweb Development Team.</p> - <p><?= __('Unsupported packages are user produced content. Any use of the provided files is at your own risk.') ?></p> + <p><?= __('AUR packages are user produced content. Any use of the provided files is at your own risk.') ?></p> </div> </div> </body> diff --git a/web/template/stats/general_stats_table.php b/web/template/stats/general_stats_table.php index 5b59832..9dcc3aa 100644 --- a/web/template/stats/general_stats_table.php +++ b/web/template/stats/general_stats_table.php @@ -3,7 +3,7 @@ <table> <tr> <td class="stat-desc"><?= __("Packages"); ?></td> - <td><?= $unsupported_count; ?></td> + <td><?= $pkg_count; ?></td> </tr> <tr> <td class="stat-desc"><?= __("Orphan Packages"); ?></td> diff --git a/web/template/stats/user_table.php b/web/template/stats/user_table.php index 284d5b9..e7b0083 100644 --- a/web/template/stats/user_table.php +++ b/web/template/stats/user_table.php @@ -8,9 +8,9 @@ $username = username_from_sid($_COOKIE["AURSID"]); <tr> <td> <a href="<?= get_uri('/packages/'); ?>?SeB=m&K=<?= $username; ?>"> -<?= __("Packages in unsupported"); ?></a> +<?= __("Packages"); ?></a> </td> - <td><?= $maintainer_unsupported_count; ?></td> + <td><?= $user_pkg_count; ?></td> </tr> <tr> <td> -- 2.4.6
participants (3)
-
Johannes Löthberg
-
Lukas Fleischer
-
Marcel Korpel