Fixed non-localized group names in theme-manager
authorDan
Tue, 22 Jul 2008 17:05:59 -0500
changeset 658 49dee7f374bf
parent 657 8525475e27d5
child 659 16b5b89c8055
Fixed non-localized group names in theme-manager
includes/clientside/static/theme-manager.js
--- a/includes/clientside/static/theme-manager.js	Tue Jul 22 17:05:10 2008 -0500
+++ b/includes/clientside/static/theme-manager.js	Tue Jul 22 17:05:59 2008 -0500
@@ -339,8 +339,9 @@
     check.group_id = parseInt(i);
     var lbl_g_acl = document.createElement('label');
     lbl_g_acl.appendChild(check);
-    // FIXME: l10n on group name
-    lbl_g_acl.appendChild(document.createTextNode(g_name));
+    var str = 'groupcp_grp_' + g_name.toLowerCase();
+    var g_name_l10n = ( $lang.get(str) != str ) ? $lang.get(str) : g_name;
+    lbl_g_acl.appendChild(document.createTextNode(g_name_l10n));
     div_groups.appendChild(lbl_g_acl);
     div_groups.appendChild(document.createElement('br'));
   }