mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-01 19:57:11 +01:00
add ability to skip including localization resources on per-language,
per-variant basis. Just in case German isn't ready yet.
This commit is contained in:
parent
a243b19fd0
commit
2f71119eea
4 changed files with 28 additions and 16 deletions
|
@ -1258,33 +1258,28 @@ XLATE-ME
|
||||||
Text of menuitem in main games-list screen's menu
|
Text of menuitem in main games-list screen's menu
|
||||||
|
|
||||||
DO NOT EDIT THIS FILE!!!!
|
DO NOT EDIT THIS FILE!!!!
|
||||||
It was generated (from res_src/values-ca/strings.xml).
|
It was generated (from res_src/values-ca/strings.xml, by copy-strings.py).
|
||||||
Any changes you make to it will be lost.
|
Any changes you make to it will be lost.
|
||||||
|
|
||||||
|
|
||||||
DO NOT EDIT THIS FILE!!!!
|
DO NOT EDIT THIS FILE!!!!
|
||||||
It was generated (from res_src/values-ja/strings.xml).
|
It was generated (from res_src/values-ja/strings.xml, by copy-strings.py).
|
||||||
Any changes you make to it will be lost.
|
Any changes you make to it will be lost.
|
||||||
|
|
||||||
|
|
||||||
DO NOT EDIT THIS FILE!!!!
|
DO NOT EDIT THIS FILE!!!!
|
||||||
It was generated (from res_src/values-de/strings.xml).
|
It was generated (from res_src/values-sk/strings.xml, by copy-strings.py).
|
||||||
Any changes you make to it will be lost.
|
|
||||||
|
|
||||||
|
|
||||||
DO NOT EDIT THIS FILE!!!!
|
|
||||||
It was generated (from res_src/values-sk/strings.xml).
|
|
||||||
Any changes you make to it will be lost.
|
Any changes you make to it will be lost.
|
||||||
|
|
||||||
Text of menuitem in main games-list screen's menu
|
Text of menuitem in main games-list screen's menu
|
||||||
|
|
||||||
DO NOT EDIT THIS FILE!!!!
|
DO NOT EDIT THIS FILE!!!!
|
||||||
It was generated (from res_src/values-nl/strings.xml).
|
It was generated (from res_src/values-nl/strings.xml, by copy-strings.py).
|
||||||
Any changes you make to it will be lost.
|
Any changes you make to it will be lost.
|
||||||
|
|
||||||
|
|
||||||
DO NOT EDIT THIS FILE!!!!
|
DO NOT EDIT THIS FILE!!!!
|
||||||
It was generated (from res_src/values-fr/strings.xml).
|
It was generated (from res_src/values-fr/strings.xml, by copy-strings.py).
|
||||||
Any changes you make to it will be lost.
|
Any changes you make to it will be lost.
|
||||||
|
|
||||||
What is \u200C? English strings are used as keys, so they all
|
What is \u200C? English strings are used as keys, so they all
|
||||||
|
@ -1303,12 +1298,12 @@ XLATE-ME
|
||||||
Text of menuitem in main games-list screen's menu
|
Text of menuitem in main games-list screen's menu
|
||||||
|
|
||||||
DO NOT EDIT THIS FILE!!!!
|
DO NOT EDIT THIS FILE!!!!
|
||||||
It was generated (from res_src/values-cs/strings.xml).
|
It was generated (from res_src/values-cs/strings.xml, by copy-strings.py).
|
||||||
Any changes you make to it will be lost.
|
Any changes you make to it will be lost.
|
||||||
|
|
||||||
|
|
||||||
DO NOT EDIT THIS FILE!!!!
|
DO NOT EDIT THIS FILE!!!!
|
||||||
It was generated (from res_src/values-pt/strings.xml).
|
It was generated (from res_src/values-pt/strings.xml, by copy-strings.py).
|
||||||
Any changes you make to it will be lost.
|
Any changes you make to it will be lost.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,7 @@
|
||||||
<property name="INITIAL_CLIENT_VERS" value="8"/>
|
<property name="INITIAL_CLIENT_VERS" value="8"/>
|
||||||
<property name="VARIANT_NAME" value="xw4"/>
|
<property name="VARIANT_NAME" value="xw4"/>
|
||||||
<property name="APP_NAME" value="Crosswords"/>
|
<property name="APP_NAME" value="Crosswords"/>
|
||||||
|
<property name="SKIP_LANGS" value="values-de"/>
|
||||||
|
|
||||||
<target name="-pre-clean">
|
<target name="-pre-clean">
|
||||||
<antcall target="my-pre-clean" />
|
<antcall target="my-pre-clean" />
|
||||||
|
|
|
@ -45,7 +45,10 @@
|
||||||
|
|
||||||
<exec dir="." executable="../scripts/copy-strings.py"
|
<exec dir="." executable="../scripts/copy-strings.py"
|
||||||
failonerror="true" output="/dev/null"
|
failonerror="true" output="/dev/null"
|
||||||
/>
|
>
|
||||||
|
<arg value="-k"/>
|
||||||
|
<arg value="${SKIP_LANGS}"/>
|
||||||
|
</exec>
|
||||||
|
|
||||||
<exec dir="." executable="../scripts/mk_xml.py"
|
<exec dir="." executable="../scripts/mk_xml.py"
|
||||||
failonerror="true"
|
failonerror="true"
|
||||||
|
|
|
@ -15,10 +15,14 @@ g_oneToOthers = ['values-ja']
|
||||||
|
|
||||||
sComment = """
|
sComment = """
|
||||||
DO NOT EDIT THIS FILE!!!!
|
DO NOT EDIT THIS FILE!!!!
|
||||||
It was generated (from %s).
|
It was generated (from %s, by %s).
|
||||||
Any changes you make to it will be lost.
|
Any changes you make to it will be lost.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
def usage():
|
||||||
|
print "usage:", sys.argv[0], '[-k <list-o-dirs>]'
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
def sameOrSameWithPrefix( str1, str2 ):
|
def sameOrSameWithPrefix( str1, str2 ):
|
||||||
result = str1 == str2
|
result = str1 == str2
|
||||||
if not result:
|
if not result:
|
||||||
|
@ -126,7 +130,7 @@ def loadPlural(plural):
|
||||||
return items
|
return items
|
||||||
|
|
||||||
def writeDoc(doc, src, dest):
|
def writeDoc(doc, src, dest):
|
||||||
comment = etree.Comment(sComment % (src))
|
comment = etree.Comment(sComment % (src, os.path.basename(sys.argv[0])))
|
||||||
doc.getroot().insert( 0, comment )
|
doc.getroot().insert( 0, comment )
|
||||||
dir = os.path.dirname( dest )
|
dir = os.path.dirname( dest )
|
||||||
try: os.makedirs( dir )
|
try: os.makedirs( dir )
|
||||||
|
@ -182,6 +186,15 @@ def main():
|
||||||
excepts = ['values-ca_PS', 'values-ba_CK']
|
excepts = ['values-ca_PS', 'values-ba_CK']
|
||||||
verboses = ['values-ja']
|
verboses = ['values-ja']
|
||||||
|
|
||||||
|
try:
|
||||||
|
pairs, rest = getopt.getopt(sys.argv[1:], "k:")
|
||||||
|
for option, value in pairs:
|
||||||
|
if option == '-k': excepts += value.split(' ')
|
||||||
|
else: usage()
|
||||||
|
except:
|
||||||
|
print "Unexpected error:", sys.exc_info()[0]
|
||||||
|
usage()
|
||||||
|
|
||||||
# summarize the english file
|
# summarize the english file
|
||||||
wd = os.path.dirname(sys.argv[0])
|
wd = os.path.dirname(sys.argv[0])
|
||||||
path = wd + '/../XWords4/res/values/strings.xml'
|
path = wd + '/../XWords4/res/values/strings.xml'
|
||||||
|
|
Loading…
Add table
Reference in a new issue