diff options
author | Dávid Vastag <davewwpublic@gmail.com> | 2013-02-04 22:05:01 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2013-02-05 09:14:27 +0000 |
commit | 683680a26c9b1327204960c0a5a56229c8232bd8 (patch) | |
tree | 43b109334d7ff48d1d60b922fc19354690da93ec /help-to-wiki.py | |
parent | 5df11836790b705261ba5cc72f3e52a4569472a4 (diff) |
help-to-wiki.py now uses .po files as source of translations.
Change-Id: I1f24f6a76781d651228bd5571f8f32fe05c0ecb9
Reviewed-on: https://gerrit.libreoffice.org/1989
Reviewed-by: Jan Holesovsky <kendy@suse.cz>
Tested-by: Jan Holesovsky <kendy@suse.cz>
Diffstat (limited to 'help-to-wiki.py')
-rwxr-xr-x | help-to-wiki.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/help-to-wiki.py b/help-to-wiki.py index 4a15f95b21..5a7df27868 100755 --- a/help-to-wiki.py +++ b/help-to-wiki.py @@ -95,13 +95,14 @@ print "Generating the titles..." os.system( "python to-wiki/getalltitles.py source/text > alltitles.csv" ) try: - sdf_path = args[0] + po_path = args[0] except: - sdf_path = '../../translations/unxlngx6.pro/misc/sdf-l10n' - sys.stderr.write('Path to the .sdf files not provided, using "%s"\n'% sdf_path) + #sdf_path = '../../translations/unxlngx6.pro/misc/sdf-l10n' + po_path = '../translations/source' + sys.stderr.write('Path to the .po files not provided, using "%s"\n'% po_path) # do the work for lang in langs: - wikiconv2.convert(generate_redirects, lang, '%s/%s.sdf'% (sdf_path, lang)) + wikiconv2.convert(generate_redirects, lang, '%s/%s/helpcontent2/source'% (po_path, lang)) # vim:set shiftwidth=4 softtabstop=4 expandtab: |