-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 20/07/15 a las 14:04, Axel Hecht escribió: > ..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
Thanks. I'll > probably base my Java parser in the C++ code. Being a Java guy, I'm increasingly seeing Python code as if it was written in Cyrillic alphabet. :-) > 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. That's likely because C++ code follows more closely Java Properties specification, that allows ":" to be used as key-value separator. :-) http://docs.oracle.com/javase/8/docs/api/java/util/Properties.html#load-java.io.Reader- > 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 Thank > you. The regexp for INI parser may be useful. Once the application is mature enough to be used to translate something else than DTD files, I'll let it the curtains currently hiding it move aside a bit. :-) Regards, - -- Proyecto NAVE Mozilla Localization Project, es-ES Team http://www.proyectonave.es/ Diaspora: [email protected] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIVAwUBVa6SkYfHLsWWKpy0AQil3RAAhHJLBE0bB/QnuXX+efUZ8ZuUoTml+giv XnalxcrNA6DA7R4YMXMq9L/THiCfpMXcmrcswwo/sv1NgaK1kllG8uopaSER9FzZ 8WO+dW3Yg2vCZgkjzo9QWOIZg2EeLGPoMBTcT2zBend1fi5vyIHzGDP9X4UHCZiK /K5GpKai2uzdhlk0kuIyHRgflzOPwvj94GTeHK2Buitr2wGTe0tMEXaxkWKfcsdX jDJDU1dJ6JLdK2E5OaUKmN/zyc6HjJcmsC0iqGF0FkbeBKAk+j8Ygpl237a2rU63 3X+WOwSRtrUq0Z6zRT1uijCAkOj4b2uUaHxxG0XTUMlJ8HZSH1KmT3uxjnuFvSE3 5Jojv9K2LmQiQWhLLQoYO82CzOagsQcdF+qquiEvMooMzvn6dbvbeAAcCuDVxkGY X7vnqtkqYvTgi1/N5SmVSrgD2q/fARTPmn3fzy3ez8x6IcjaoNfFBIiRdTp+qE1S 8Bo8FsU/cXtSQSDmTTSHjRKc5He8TRmVXSWWOyzIHBbyHv8lSx7giBs2IQHYH1hf ZXSoapT/kGOtOWbiDHL0RA98+v/eNv4tsR+MwOgpFyGFKDMZ3ChrYmMluwyLPYT7 VPXmu6QpJTq/34/LKAt+iP8cA+iiamG7OG759tFhzTE/RWznEw4LscVw6K5um7be 0d/dLO3Mvoo= =bTbE -----END PGP SIGNATURE----- _______________________________________________ tools-l10n mailing list [email protected] https://lists.mozilla.org/listinfo/tools-l10n
