Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/views/elements/addon_categories.thtml
diff options
context:
space:
mode:
Diffstat (limited to 'site/app/views/elements/addon_categories.thtml')
-rw-r--r--site/app/views/elements/addon_categories.thtml19
1 files changed, 8 insertions, 11 deletions
diff --git a/site/app/views/elements/addon_categories.thtml b/site/app/views/elements/addon_categories.thtml
index 96d0e2b..27b68cd 100644
--- a/site/app/views/elements/addon_categories.thtml
+++ b/site/app/views/elements/addon_categories.thtml
@@ -34,7 +34,7 @@
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
- * ***** END LICENSE BLOCK ***** */
+ * ***** END LICENSE BLOCK ***** */
/**
@@ -46,13 +46,16 @@
<?php
// show top-level category for non-extension add-ons
if (!empty($tags)) {
+ // @partial translation fallback, 5/17/08
switch ($tags[0]['Tag']['addontype_id']) {
case ADDON_DICT:
case ADDON_LPAPP:
- $li = $html->link(___('nav_category_dicts_langpacks'), '/browse/type:'.ADDON_DICT);
+ $li = $html->link((_('nav_category_dicts_langpacks')!='nav_category_dicts_langpacks'?
+ _('nav_category_dicts_langpacks'):_('langtools_header_dicts_and_langpacks')), '/browse/type:'.ADDON_DICT);
break;
case ADDON_THEME:
- $li = $html->link(___('nav_category_themes'), '/browse/type:'.ADDON_THEME);
+ $li = $html->link((_('nav_category_themes')!='nav_category_themes'?
+ _('nav_category_themes'):'Themes'), '/browse/type:'.ADDON_THEME);
break;
default:
$li = '';
@@ -61,15 +64,9 @@ if (!empty($tags)) {
}
// regular category list
-$c = 0;
-foreach ($tags as $_tag) {
- if (0 == $c++)
- echo '<li class="first">';
- else
- echo '<li>';
- echo $html->link($_tag['Translation']['name']['string'],
+foreach ($tags as $_tag)
+ echo '<li>'.$html->link($_tag['Translation']['name']['string'],
"/browse/type:{$_tag['Tag']['addontype_id']}/cat:{$_tag['Tag']['id']}")
."</li>\n";
-}
?>
</ul>