diff options
author | Jan Holesovsky <kendy@suse.cz> | 2011-05-10 10:13:12 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-05-18 17:25:07 +0200 |
commit | d0b86adcfc038708330f74d4a4d1079f86123e37 (patch) | |
tree | cb4d83376fd70fe8373c80381e18a42555db6023 /helpcontent2/to-wiki | |
parent | 1e9b38a969b8008b6719627c7c2dd61240eccd91 (diff) |
More languages.
feature/gsoc2011_wizards
Diffstat (limited to 'helpcontent2/to-wiki')
-rwxr-xr-x | helpcontent2/to-wiki/wikiconv2.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/helpcontent2/to-wiki/wikiconv2.py b/helpcontent2/to-wiki/wikiconv2.py index 6a3d766488..d4b3a5e235 100755 --- a/helpcontent2/to-wiki/wikiconv2.py +++ b/helpcontent2/to-wiki/wikiconv2.py @@ -194,7 +194,10 @@ def load_localization_data(sdf_file): # source/text/shared/explorer/database/02010100.xhp#hd_id3149233 # otherwise we are getting duplicates key = '%s#%s'% (spl[1].replace('\\', '/'), spl[4]) - localization_data[key] = spl[10] + try: + localization_data[key] = spl[10] + except: + sys.stderr.write('Warning: Ignored line "%s"\n'% line.encode('utf-8')) file.close() return True |