summaryrefslogtreecommitdiff
path: root/help-to-wiki.py
diff options
context:
space:
mode:
authorDávid Vastag <davewwpublic@gmail.com>2013-02-04 22:05:01 +0100
committerAndras Timar <atimar@suse.com>2013-02-06 22:27:42 +0100
commit7dded42472968783f5c90a0aa9e497ee3dfb247f (patch)
tree125edab6f8dbe4630f065537302d2334dcf62108 /help-to-wiki.py
parentfab8b3ed91a4b24d2a06832929ecad3f9ba65630 (diff)
help-to-wiki.py now uses .po files as source of translations. sdremote-1.0.2sdremote-1.0.1sdremote-1.0.0
Plus added erro handling Reviewed-by: Jan Holesovsky <kendy@suse.cz> Tested-by: Jan Holesovsky <kendy@suse.cz> Signed-off-by: Andras Timar <atimar@suse.com>
Diffstat (limited to 'help-to-wiki.py')
-rwxr-xr-xhelp-to-wiki.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/help-to-wiki.py b/help-to-wiki.py
index 4a15f95b21..0ee17ba677 100755
--- a/help-to-wiki.py
+++ b/help-to-wiki.py
@@ -95,13 +95,13 @@ 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)
+ 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: