i18n: Add gettext header template to the POT
This commit is contained in:
parent
10a50853df
commit
87e8e8d372
|
@ -35,7 +35,19 @@ for root, dirnames, filenames in os.walk('.'):
|
||||||
|
|
||||||
unique_str = []
|
unique_str = []
|
||||||
unique_loc = {}
|
unique_loc = {}
|
||||||
main_po = ""
|
main_po = """
|
||||||
|
# LANGUAGE translation of the Godot Engine editor
|
||||||
|
# Copyright (C) 2016 Juan Linietsky, Ariel Manzur and the Godot community
|
||||||
|
# This file is distributed under the same license as the Godot source code.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
#, fuzzy
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Godot Engine editor\\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\\n"
|
||||||
|
"Content-Transfer-Encoding: 8-bit\\n"
|
||||||
|
"""
|
||||||
|
|
||||||
print("Updating the tools.pot template...")
|
print("Updating the tools.pot template...")
|
||||||
|
|
||||||
|
@ -85,6 +97,10 @@ f = open("tools.pot", "wb")
|
||||||
f.write(main_po)
|
f.write(main_po)
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
if (os.name == "posix"):
|
||||||
|
os.system("msgmerge -w80 tools.pot tools.pot > tools.pot.wrap")
|
||||||
|
shutil.move("tools.pot.wrap", "tools.pot")
|
||||||
|
|
||||||
shutil.move("tools.pot", "tools/translations/tools.pot")
|
shutil.move("tools.pot", "tools/translations/tools.pot")
|
||||||
|
|
||||||
# TODO: Make that in a portable way, if we care; if not, kudos to Unix users
|
# TODO: Make that in a portable way, if we care; if not, kudos to Unix users
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue