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

                 Summary: wmlxgettext handles #textdomain inside #define
incorrectly
                 Project: Battle for Wesnoth
            Submitted by: alarantalara
            Submitted on: Thu 08 Sep 2011 09:00:50 PM EDT
                Category: Bug
                Severity: 3 - Normal
                Priority: 3 - Low
              Item Group: Translations
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.9.9+svn
        Operating System: any

    _______________________________________________________

Details:

If wmlxgettext encounters a #textdomain directive inside a #define, it
reverts to the previous textdomain when the define ends.

However, the implementation has two problems: it only removes the last
textdomain encountered inside the #define, meaning that if two #textdomains
are used, the first one inside will become the textdomain after the enddef.

#textdomain a
# in a
#define X
#textdomain b
# in b
#textdomain c
# in c
#enddef
# in b again!

Second, it doesn't handle nested #defines:

#textdomain a
# in a
#define X
#textdomain b
# in b
#define Y
#enddef
# in a
#enddef




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


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

Reply via email to