summaryrefslogtreecommitdiffstats
path: root/scripts/create_resources.py
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-05-14 17:11:48 +0000
committerjstebbins <[email protected]>2015-05-14 17:11:48 +0000
commit9ae7e30dc8daace92d17ea36a4f0bdede00b9471 (patch)
tree9485255c993389a6740b833e7aa30c5b5b2622aa /scripts/create_resources.py
parent90cafad3e4c610b8b009769f922fabc283979231 (diff)
lingui: use libhb preset management from linux gui
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7179 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'scripts/create_resources.py')
-rwxr-xr-xscripts/create_resources.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/create_resources.py b/scripts/create_resources.py
index 95921d317..26f7acd1c 100755
--- a/scripts/create_resources.py
+++ b/scripts/create_resources.py
@@ -58,7 +58,7 @@ def start_element_handler(tag, attr):
elif fname == None:
print >> sys.stderr, ( "Error: No such plist file %s" % fbase )
sys.exit(1)
- elif tag == "string":
+ elif tag == "text":
fbase = attr["file"]
fname = find_file(fbase)
key = attr["name"]
@@ -72,6 +72,9 @@ def start_element_handler(tag, attr):
elif fname == None:
print >> sys.stderr, ( "Error: No such string file %s" % fbase )
sys.exit(1)
+ elif tag == "string":
+ key = attr["name"]
+ val = attr["value"]
if val != None:
if type(current) == types.DictType: