siefca / i18n-inflector Goto Github PK
View Code? Open in Web Editor NEWEnhances simple I18n backend so that it inflects translations using pattern interpolation
Home Page: http://rubygems.org/gems/i18n-inflector
License: Other
Enhances simple I18n backend so that it inflects translations using pattern interpolation
Home Page: http://rubygems.org/gems/i18n-inflector
License: Other
I do not know whether this is a bug or not but in the diasp.org some youtube video previews are coming on top of diaspore header bar. Where as every page expected to go inside header bar.
There is a problem with the gem when you retrieve some text from a database that contains the char "@" and you have some code after that uses @{f:whatever|whenever}.
For example:
body:
%{discount_details}
Ya hemos informado a tus @{f:amigas|amigos} del plan
discount_details: |
descuento: %{coupon_discount} (%{coupon_description})
If coupon_description value is "Gracias amig@s míos" the output of body will be:
Gracias amigamigas del plan
when it should be Gracias amig@s míos Ya hemos informado a tus amigos del plan
I fixed my problem with a subsitution from @ to @ but its just a quickfix. Would be perfect if you could fix it the right way. Thanks in advance
Invalid gemspec in [/var/lib/gems/1.8/specifications/i18n-inflector-2.6.1.gemspec]: invalid date format in specification: "2011-07-10 00:00:00.000000000Z"
same applies to -rails
smei@ContinuousIntegration$ locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
smei@ContinuousIntegration$ rvm use ruby-1.9.2@diaspora
smei@ContinuousIntegration$ gem install i18n-inflector
ERROR: While executing gem ... (ArgumentError)
invalid byte sequence in US-ASCII
smei@ContinuousIntegration$ sudo update-locale
# this creates /etc/default/locale, which did not exist before.
smei@ContinuousIntegration$ sudo vi /etc/default/locale
# add:
LANG="en_US.UTF-8"
# log out, log back in
smei@ContinuousIntegration$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
smei@ContinuousIntegration$ rvm use ruby-1.9.2@diaspora
smei@ContinuousIntegration$ gem install i18n-inflector
Installing gem i18n-inflector-2.5.1
Successfully installed i18n-inflector-2.5.1
1 gem installed
When you try to get a whole section you'll get an error similar to this http://www.webpagescreenshot.info/img/569661-222201120513AM
Inflector has problem with translation data that contains just a pattern, without any other characters or translation data that begins with a pattern. Example
welcome: "@{i:Me|you:You}"
translate('welcome') will result in "@{i:Me|you:You}" without any interpolation or string cleaning.
That happens in version 1.0.6 and earlier revisions.
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.