Axel Hecht
unread,Jun 8, 2012, 10:28:03 AM6/8/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mozilla-t...@lists.mozilla.org
Hi,
right now, special cases for requiring strings or files (ignore
googe.xml, allow for entries in region.properties, etc) is in python
files per application.
I'd like to enable tools in other programming languages to access those,
and make them per-module, i.e., toolkit, browser, mobile/android, mail,
suite.
We already require that tools read l10n.ini, and the inclusion rules for
them. So I propose that we add a section that encodes that.
I'm adding another return value, 'distinct', which should report a
'google.xml' in the localization as error.
Example contents:
[exceptions]
; Exceptions for locale comparison for mobile
; Keys are module||file pattern[\\key pattern] =
[error|ignore|report|distinct]
; Lines will be processed in order
; default prefs are fine
mobile/(xul|android)||mobile-l10n\.js = ignore
; langpack contributors are optional, both the file and the entry
mobile/(xul|android)||mobile-l10n\.js = ignore
mobile/(xul|android)||defines\.inc||MOZ_LANGPACK_CONTRIBUTORS = ignore
; search plugin files should be distinct, but do complain if list.txt is
missing
mobile||searchplugins/.+\.xml = distinct
; allow different amounts of search order, content and protocol handlers
are OK
mobile||chrome/region\.properties||browser\.search\.order\.[1-9] = ignore
mobile||chrome/region\.properties||browser\.contentHandlers\.types\.[0-5] =
ignore
mobile||chrome/region\.properties||gecko\.handlerService\.schemes\..+ =
ignore