diff options
| author | Campbell Barton <ideasman42@gmail.com> | 2011-06-12 17:29:27 +0000 |
|---|---|---|
| committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-12 17:29:27 +0000 |
| commit | 6a8fb5d72ae23abb99081961d4187ba0f784071a (patch) | |
| tree | 0773e619e640a4eb4b9293dc240d089c0b998f86 /share/palettes | |
| parent | On arch linux python3 is default, changes so this works on py3 (first commit,... (diff) | |
| download | inkscape-6a8fb5d72ae23abb99081961d4187ba0f784071a.tar.gz inkscape-6a8fb5d72ae23abb99081961d4187ba0f784071a.zip | |
support python3.x for other i18n scripts
(bzr r10271)
Diffstat (limited to 'share/palettes')
| -rwxr-xr-x | share/palettes/i18n.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/share/palettes/i18n.py b/share/palettes/i18n.py index 853e29efb..76e45b346 100755 --- a/share/palettes/i18n.py +++ b/share/palettes/i18n.py @@ -4,7 +4,7 @@ import sys import glob import re -print "char * stringlst = [" +sys.stdout.write("char * stringlst = [") # Gimp palette format: R G B Label (255 0 0 Red) @@ -16,10 +16,10 @@ for filename in sys.argv[1:]: for line in file: match = regex.match(line) if match: - print '\n/* Palette: ' + filename + ' */' + sys.stdout.write('\n/* Palette: ' + filename + ' */') search = regexnoc.search(match.group(1)) if search: - print "/* xgettext:no-c-format */" - print "NC_(\"Palette\", \"" + match.group(1) + "\")," + sys.stdout.write("/* xgettext:no-c-format */") + sys.stdout.write("NC_(\"Palette\", \"" + match.group(1) + "\"),") -print "];" +sys.stdout.write("];") |
