maddingue / locale-maketext-lexicon-getcontext Goto Github PK
View Code? Open in Web Editor NEWvery experimental fork/variant of Locale::Maketext::Lexicon::Gettext
License: Other
very experimental fork/variant of Locale::Maketext::Lexicon::Gettext
License: Other
NAME Locale::Maketext::Lexicon::Getcontext - PO file parser for Maketext DESCRIPTION This module is a very experimental fork/variant of Locale::Maketext::Lexicon::Gettext where messages are fetched by their "msgctxt" instead of their "msgid". It is currently mostly developed to help the I18N of OpenFoodFacts <http://openfoodfacts.org/> and OpenBeautyFacts <http://openbeautyfacts.org/>. You probably don't want to use this, unless you really now what your are doing. AUTHORS Sébastien Aperghis-Tramoni <[email protected]> Clinton Gormley <[email protected]> Audrey Tang <[email protected]> LICENSE This program is free software, license under the MIT (X11) license.
There's a parsing bug that makes continuing lines from msgid be added to msgctxt instead.
Sample .po that triggers the error:
msgctxt "multiline_msgid"
msgid "Blabla\n"
"Blablabla"
msgstr "Pouet pouet"
"Pouet"
I'm going to submit a pull request for the fix.
# Failed test 'months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']'
# at t/10-parse.t line 59.
# got: '~['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'~]'
# expected: '['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']'
# Looks like you failed 4 tests of 25.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.