summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-gui/i18n.patch
diff options
context:
space:
mode:
Diffstat (limited to 'ipa-server/ipa-gui/i18n.patch')
-rw-r--r--ipa-server/ipa-gui/i18n.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/ipa-server/ipa-gui/i18n.patch b/ipa-server/ipa-gui/i18n.patch
new file mode 100644
index 000000000..cc46a5558
--- /dev/null
+++ b/ipa-server/ipa-gui/i18n.patch
@@ -0,0 +1,16 @@
+--- turbogears/command/i18n.py.orig 2008-02-07 16:40:14.000000000 -0500
++++ turbogears/command/i18n.py 2008-02-07 16:40:43.000000000 -0500
+@@ -251,7 +251,12 @@
+ if self.options.loose_kid_support or el.get('lang', None):
+ tag = re.sub('({[^}]+})?(\w+)', '\\2', el.tag)
+ ents = []
+- if el.text: ents = [el.text.strip()]
++ if el.text and not ( el.text.strip() in keys):
++ if el.tag == "script":
++ ents = [el.text.strip()]
++ else:
++ messages.append((tag, fname, el.text.strip()))
++ keys.append(el.text.strip())
+ if el.attrib: ents.extend(el.attrib.values())
+ for k in ents:
+ key = None