diff options
author | Jan Holesovsky <kendy@suse.cz> | 2011-01-25 16:23:00 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-01-25 16:23:00 +0100 |
commit | 4ab176c9d2f89f5244cc768807d79ee14d131680 (patch) | |
tree | 355e5f6b944618a5b6b97a000e537f7e4f344f12 /helpcontent2 | |
parent | c905aa1a5b059e9edb35d658bcaeb3f1cbf3bd1a (diff) |
wikihelp: Handle some of the typos in translations.
Diffstat (limited to 'helpcontent2')
-rwxr-xr-x | helpcontent2/to-wiki/wikiconv2.py | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/helpcontent2/to-wiki/wikiconv2.py b/helpcontent2/to-wiki/wikiconv2.py index 02ccb0f338..6a3d766488 100755 --- a/helpcontent2/to-wiki/wikiconv2.py +++ b/helpcontent2/to-wiki/wikiconv2.py @@ -883,27 +883,45 @@ class Item(ElementBase): replace_type = \ {'start':{'input': '<code>', 'keycode': '{{KeyCode|', + 'tasto': '{{KeyCode|', + 'litera': '<code>', 'literal': '<code>', 'menuitem': '{{MenuItem|', - 'productname': '' + 'mwnuitem': '{{MenuItem|', + 'OpenOffice.org': '', + 'productname': '', + 'unknown': '<code>' }, 'end':{'input': '</code>', 'keycode': '}}', + 'tasto': '}}', + 'litera': '</code>', 'literal': '</code>', 'menuitem': '}}', - 'productname': '' + 'mwnuitem': '}}', + 'OpenOffice.org': '', + 'productname': '', + 'unknown': '</code>' }, 'templ':{'input': False, 'keycode': True, + 'tasto': True, + 'litera': False, 'literal': False, 'menuitem': True, - 'productname': False + 'mwnuitem': True, + 'OpenOffice.org': False, + 'productname': False, + 'unknown': False }} def __init__(self, attrs, parent): ElementBase.__init__(self, 'item', parent) - self.type = attrs['type'] + try: + self.type = attrs['type'] + except: + self.type = 'unknown' self.text = '' def char_data(self, parser, data): |