-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,13 @@ | |
"""po2wxl.py: Transform a .po translation file into a wxl localization file""" | ||
|
||
__author__ = "Sébastien Blaisot ([email protected])" | ||
__copyright__ = "Copyright (C) 2016 Sébastien Blaisot" | ||
__copyright__ = "Copyright (C) 2016-2017 Sébastien Blaisot" | ||
__license__ = "GPL 3.0" | ||
__version__ = "0.1" | ||
__status__ = "Development" | ||
|
||
import getopt | ||
import sys | ||
import sys | ||
import textwrap | ||
import os.path | ||
from xml.sax.saxutils import escape | ||
|
@@ -32,7 +32,7 @@ def help(): | |
-h, --help: print this help message and exit | ||
-V, --version print version information and exit | ||
-f, --force don't ask before overwriting destination file | ||
-l, --langid=LANGID automatically determine LCID based on language and | ||
-l, --langid=LANGID automatically determine LCID based on language and | ||
add a string with id LANGID containing the LCID | ||
-L, --LCID=LCID used with -l, use provided LCID instead of trying | ||
to guess it | ||
|
@@ -141,7 +141,7 @@ def usage(): | |
print "Please provide LCID with option -L" | ||
print "Try 'po2wxl.py --help' for more information." | ||
sys.exit(1); | ||
|
||
|
||
f = open(destfile,'w') | ||
f.write("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"""transwxl2po.py: Transform a main language wxl file and a translated wxl file into a .po translation file""" | ||
|
||
__author__ = "Sébastien Blaisot ([email protected])" | ||
__copyright__ = "Copyright (C) 2016 Sébastien Blaisot" | ||
__copyright__ = "Copyright (C) 2016-2017 Sébastien Blaisot" | ||
__license__ = "GPL 3.0" | ||
__version__ = "0.1" | ||
__status__ = "Development" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"""wxl2pot.py: Transform wxl localization files to pot format.""" | ||
|
||
__author__ = "Sébastien Blaisot ([email protected])" | ||
__copyright__ = "Copyright (C) 2016 Sébastien Blaisot" | ||
__copyright__ = "Copyright (C) 2016-2017 Sébastien Blaisot" | ||
__license__ = "GPL 3.0" | ||
__version__ = "0.1" | ||
__status__ = "Development" | ||
|
@@ -25,7 +25,7 @@ def help(): | |
Usage: %s [OPTION]... WXL_SOURCE_FILE POT_DEST_FILE | ||
Transform the file WXL_SOURCE_FILE in wxl format into a pot file POT_DEST_FILE | ||
Example: %s -l LangId en-us.wxl en-us.pot | ||
Options: | ||
-h, --help: print this help message and exit | ||
-V, --version print version information and exit | ||
|