[pology] Multiple environment pology rules
Chusslove Illich
caslav.ilic at gmx.net
Mon Dec 3 01:56:30 PST 2012
>> [: Chusslove Illich :]
>> I'm not sure I understood you correctly. Do you mean that you would like
>> to define a rule which at the same time belongs to two environments? E.g.
>> some rules have set environment 'kde', some 'geography', and then some
>> which have both 'kde' and 'geography' set?
>
> [: mvillarino :]
> Exactly, please consider file pology/lang/gl/rules/kde.rules, rule
> id="kde_event" (for instance, if fact I understood this could be done so
> there are more examples all over the file).
Or maybe I really didn't understand correctly? :) Because this file and this
rule states:
environment kde
...
#«event» -> «acontecemento» ou «suceso»
{\bevent}i
id="kde_event"
valid msgstr="\bevento" env="development"
...
which means that, if the PO header contains
"X-Environment: kde,development\n", a message which contains the word
"evento-" in translation should not be reported to fail this rule. And this
is exactly how it works, for example when I run check-rules on
gl/messages/kdesdk/kcachegrind.po, this message:
msgid "Zero Events"
msgstr "Cero eventos"
does not get reported.
If it gets reported when you run check-rules, could it be that you are using
the parameter -senv:kde in the command line? Because if you do, the
environment set in command line overrides all PO headers.
--
Chusslove Illich (Часлав Илић)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.nedohodnik.net/pipermail/pology-nedohodnik.net/attachments/20121203/7b1540ae/attachment.pgp>
More information about the pology
mailing list