bugBattle for Wesnoth - Bugs: bug #18108, Add support to automatically...

Show feedback again

bug #18108: Add support to automatically correct/add plural forms entry to po files

Submitted by:  Nils Kneuper <ivanovic>
Submitted on:  Sat May 7 21:56:16 2011  
Category: Feature RequestSeverity: 2 - Minor
Priority: 3 - LowItem Group:  None of the others
Status: NonePrivacy: Public
Assigned to: Eric S. Raymond <esr>Open/Closed: Open
Release: trunkOperating System: any

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Wed May 11 18:38:32 2011, comment #2:

Attaching a plaintext definition for all langcodes that are used in mainline wesnoth and the corresponding plural form entries. Basic idea:
1) Check if there is a plural forms inside the LANGCODE.po file
2) a) If there is no such entry, add the correct one.
2) b) If there is an entry, check if it matches the specified ones. If this is not the case, do not change the file but warn about it (there might be reasons for differing!).

(file #12993)

Nils Kneuper <ivanovic>
Project Administrator
Wed May 11 16:24:01 2011, comment #1:

I don't understand why you want a script for this. It looks to me like Plural-Forms only needs to be added once per .po and can simply live in the master afterwards.

Eric S. Raymond <esr>
Project MemberIn charge of this item.
Sat May 7 21:56:16 2011, original submission:

Please create a script that automatically checks if the correct plural forms entry is defined for po files. This has to be checking if the entry is available in the specified po file and if it is correct. The entry can be somewhere in the header, the exact position is not fixed, it just has to be after this (while still part of the very first block):
msgid ""
msgstr ""

As an example, please have a look at this commit, doing just this (manually) to the german translation files (svn r49303): http://svn.gna.org/viewcvs/wesnoth?view=rev&revision=49303

To get a list of plural forms, please have a look at this website:

It would probably make sense to define the list of "pofile name" and associated plural forms entry in the script itself.

Nils Kneuper <ivanovic>
Project Administrator


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by esr (Posted a comment)
  • -unavailable- added by ivanovic (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed May 11 18:38:32 2011ivanovicAttached File-=>Added langcode-pluralforms.txt, #12993
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup