..properties is hard, as there are effectively two incompatible parsers
used by our architectures.
There's is one class that tries to reverse engineer what
http://mxr.mozilla.org/mozilla/source/xpcom/ds/nsPersistentProperties.cpp#146
does, which is what's behind gecko's stringbundle API. Silme probably,
but also compare-locales.
Then there's the stuff that gaia does, which resembles properties only
on the surface, to be honest. We just recently learned that ':' is a
key-value separator in gecko, but totally part of the key (and used as
such) in gaia.
All very much sad faces. Yay l20n to get rid of the gaia variant.
The INI usage in gecko is pretty ad-hoc, only supports one category etc.
The compare-locales parsers are at
http://hg.mozilla.org/l10n/compare-locales/file/default/compare_locales/parser.py
Axel
On 7/18/15 7:04 PM, Ricardo Palomares Martínez wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi,
I'm in the process of writing a replacement for MozillaTranslator.
Nothing disruptive in the frontend, since it keeps being a Java
Desktop tool. The changes are in the persistence (a Java SQL
database, Derby, managed with JPA), the internal datamodel, which I
expect to allow L20n in the future, and more extensive and standard
help features for users (a glossary manager and a better translation
memory).
I have tight constraints as this is my final year project (I'm 20
years delayed) and I have to reach a close-to MozillaTranslator
feature pairing by the end of August. I'm already using SAX to parse
DTDs in a very similar way than MozillaTranslator does, and I might
be forced to copy the parser for Properties files (which I also use
for INI files), but I wonder if Mozilla has some parser code for
Properties and INI files that I could browse to write a Java
version. BNF grammar files could work, too, as I could give it a try
to some parser generators like ANTLR.
TIA
- --
Proyecto NAVE
Mozilla Localization Project, es-ES Team
http://www.proyectonave.es/
Diaspora: [email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIVAwUBVaqHM4fHLsWWKpy0AQgoww/8CT0puoPj9XbhiixQF/zILhd8mYhPuPLx
V1QaDS8mKI11CI0IXxKYx/193C7fgGmR+36iGjU3vqjZ6HSdXejI8OMwQ6UJmlL5
PR3z8kLvyiKL6QjAtXY/OWQYRHJ9jRln7OI+LRIC6vOAqg1WTGfGtJYxIUkCy935
7VpOR9zedZSR9lR3MXgfUmVZcb6YYGoZpMhcnPvqE/+NhjI/e28zjAa3b3ZvOt0h
ZgkP4aQ8Nf/OvXGZi6RntnCphHSKdUSHi5NT6ov6lqzs1yeJdFW3jl7gXcoHdnzd
70xS/EoND4ODfLeh0T2ebwuJWtZnSMBo5ZDTOjt170v+1KPwLqK83PgsVLyugslr
EnX7ya77BF9urfWp6wFEwQkdPp/E/IJ67bq1LBi1qDpOvm58qkh57ePLms5PbRiq
UywSmV9LQUFFzyrTrljXFnoCGRGISSmxZ0jztiIjggfB10ot+ht3rOpqHMx1oTJV
yb3UdMRVjV3kU6mpwKLEwcHZLbkLjAo6iXbQ7ohGeVjiISLq5CznO72lhSaDOx17
L/A20edsWfSfKR+m3EHTAHI9xPUUE846eI0g3KuFcQDO0JCSmzHcaK3fe9rmxJvp
OK8N7jpwLvuexIXHABeZTBmb3+Waxg5otol3nGDgLmH8d6srqM1Z/S6f8IYksakm
1ZksOG/ArhA=
=qcF7
-----END PGP SIGNATURE-----
_______________________________________________
tools-l10n mailing list
[email protected]
https://lists.mozilla.org/listinfo/tools-l10n