URL:
  <http://gna.org/bugs/?16343>

                 Summary: wmllint wants to add translation markers to the
empty string in description=
                 Project: Battle for Wesnoth
            Submitted by: ivanovic
            Submitted on: Sonntag 01.08.2010 um 14:37
                Category: Bug
                Severity: 4 - Important
                Priority: 5 - Normal
              Item Group:  None of the others
                  Status: None
                 Privacy: Public
             Assigned to: esr
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: trunk (most likely 1.8, too!)
        Operating System: any

    _______________________________________________________

Details:

Empty strings musn't be marked as translatable (by adding an underscore in
front of them). In theory wmllint does check for those broken markers and it
does fix them (at least I think so). Beside this it does also check for
missing translation markers. The check for those should also check that they
are not empty. This does not happen for description= tags. A current issue
for them can be observed in trunk (some new UtBS units). Here is a fraction
of the wmlling output when run inside the utbs units dir:

"quenoth/hunter/Archer.cfg", line 20: description needs translation mark
wmllint: converting quenoth/hunter/Archer.cfg

The resulting replacement (svn diff) inside the file:
Index: quenoth/sanddancer/Sand_Assassin.cfg
===================================================================
--- quenoth/sanddancer/Sand_Assassin.cfg        (Revision 45066)
+++ quenoth/sanddancer/Sand_Assassin.cfg        (Arbeitskopie)
@@ -32,7 +32,7 @@
 
     cost=56
     usage=scout
-    description= "" +{SPECIAL_NOTES}+{SPECIAL_NOTES_BACKSTAB}
+    description=_  "" +{SPECIAL_NOTES}+{SPECIAL_NOTES_BACKSTAB}
     die_sound={SOUND_LIST:ELF_HIT}
     [portrait]
         size=400

Proposed fix:
Before adding a translation marker do explicitly check that the string is not
empty.




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?16343>

_______________________________________________
  Nachricht geschickt von/durch Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to