mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Add msgstrs for plural forms to pots.
This was SVN commit r15904.
This commit is contained in:
parent
466942fc29
commit
4a68170aeb
1 changed files with 1 additions and 2 deletions
|
|
@ -77,10 +77,9 @@ def generateTemplatesForMessagesFile(messagesFilePath):
|
||||||
inputRootPath = os.path.join(rootPath, templateSettings["inputRoot"])
|
inputRootPath = os.path.join(rootPath, templateSettings["inputRoot"])
|
||||||
|
|
||||||
template = Catalog(os.path.join(rootPath, templateSettings["output"]), create=True, truncate=True)
|
template = Catalog(os.path.join(rootPath, templateSettings["output"]), create=True, truncate=True)
|
||||||
h = template.update_header(templateSettings["project"], "Translation template for %project.", "Copyright © "+"2014"+" "+templateSettings["copyrightHolder"], "This file is distributed under the same license as the %project project.")
|
h = template.update_header(templateSettings["project"], "Translation template for %project.", "Copyright © "+"2014"+" "+templateSettings["copyrightHolder"], "This file is distributed under the same license as the %project project.", plforms="nplurals=2; plural=(n != 1);")
|
||||||
h.remove_field("Report-Msgid-Bugs-To")
|
h.remove_field("Report-Msgid-Bugs-To")
|
||||||
h.remove_field("Last-Translator")
|
h.remove_field("Last-Translator")
|
||||||
h.remove_field("Plural-Forms")
|
|
||||||
h.remove_field("Language-Team")
|
h.remove_field("Language-Team")
|
||||||
h.remove_field("Language")
|
h.remove_field("Language")
|
||||||
h.author = Monlist()
|
h.author = Monlist()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue