aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/plugins.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-09-22 21:32:49 -0400
committercash <cash.costello@gmail.com>2011-09-22 21:32:49 -0400
commit9858bd526fce9016dc82d1f21b35e6ceb969c140 (patch)
treecb7ce314ba6f62b36cfa33930381101136e0507e /views/default/admin/plugins.php
parenta6805f3f58caecdeb6e149a9da292937e21ea2e5 (diff)
downloadelgg-9858bd526fce9016dc82d1f21b35e6ceb969c140.tar.gz
elgg-9858bd526fce9016dc82d1f21b35e6ceb969c140.tar.bz2
Fixes #3808 not translating manifest fields through elgg_echo()
Diffstat (limited to 'views/default/admin/plugins.php')
-rw-r--r--views/default/admin/plugins.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/views/default/admin/plugins.php b/views/default/admin/plugins.php
index 62e6f556a..451936335 100644
--- a/views/default/admin/plugins.php
+++ b/views/default/admin/plugins.php
@@ -60,7 +60,13 @@ foreach ($installed_plugins as $id => $plugin) {
if (isset($plugin_categories)) {
foreach ($plugin_categories as $category) {
if (!array_key_exists($category, $categories)) {
- $categories[$category] = elgg_echo("admin:plugins:category:$category");
+ // if localization string not defined, fall back to original category string
+ $cat_raw_string = "admin:plugins:category:$category";
+ $cat_display_string = elgg_echo($cat_raw_string);
+ if ($cat_display_string == $cat_raw_string) {
+ $cat_display_string = ucwords($category);
+ }
+ $categories[$category] = $cat_display_string;
}
}
}