Add more translatable attributes in the ITS file
GtkBuilder uses GMarkup, which defines a boolean attribute as: - yes/no - true/false - 1/0 The current ITS file used by xgettext to extract translatable strings from GtkBuilder UI files only covers the first value. See: 9e83eb65017cb38b809c733535195507bd442bd8 See: #4596
This commit is contained in:
parent
d095bdafe0
commit
e8dbe4049d
@ -3,8 +3,9 @@
|
||||
xmlns:gt="https://www.gnu.org/s/gettext/ns/its/extensions/1.0"
|
||||
version="2.0">
|
||||
<its:translateRule selector="/interface" translate="no"/>
|
||||
<its:translateRule selector="/interface//*[@translatable = 'yes']"
|
||||
translate="yes"/>
|
||||
<its:translateRule selector="/interface//*[@translatable = 'yes']" translate="yes"/>
|
||||
<its:translateRule selector="/interface//*[@translatable = 'true']" translate="yes"/>
|
||||
<its:translateRule selector="/interface//*[@translatable = '1']" translate="yes"/>
|
||||
|
||||
<!-- The 'comment' attribute should be extracted as a translator comment. -->
|
||||
<its:locNoteRule selector="/interface//*[@comments]"
|
||||
|
Loading…
Reference in New Issue
Block a user