translationexchange / tml-rails Goto Github PK
View Code? Open in Web Editor NEWTranslation Markup Language for Ruby on Rails
Home Page: http://docs.translationexchange.com/ruby-on-rails/
License: MIT License
Translation Markup Language for Ruby on Rails
Home Page: http://docs.translationexchange.com/ruby-on-rails/
License: MIT License
Hi @berk , When I clicks on the drop down to change the language, in the back it is sending the request and getting the response. But my view is not updating with the selected language. Can you please help me on that.
Hi there,
I'm having an issue while using tml as i18n backend.
When using rails' feature for automatically generating labels using the model's attributes:
<%= form_for(@user) do |f| %>
<%= f.label :email %>
<%= f.email_field :email %>
Instead of generating the text "Email", the text generated is
User.email
*textbox here*
Commenting out "I18n.backend = I18n::Backend::Tml.new" makes this feature work properly again.
Thanks for your help.
Simon.
Hey there,
I've been trying to set Tml to work as my i18n backend as instructed in your documentation.
I18n.backend = I18n::Backend::Tml.new
Unfortunately, I've encountered the following 3 errors so far:
<%= t("hello", :number => number_with_delimiter(5)) %>
I get the error:
undefined method `gsub' for 3:Fixnum
<%= "Hello there".parameterize %>
I get the error:
undefined method `html_safe' for {}:Hash
<%= ['one', 'two'].to_sentence %>
How can this be resolved?
Thank you.
Hi @berk ,
I am unable to use I18n backend ymls, like when I am trying to use I18n.backend = I18n::Backend::Tml.new and use this method
=number_to_currency(1000,:locale=>:fr)
It's fallback to :en and I am getting only $ is my currency unit.
Please help me ASAP
Many Thanks
Hi, I got error after use
<%= tml_language_selector_tag(:dropdown, {:style => "margin-top:15px", :language => :english}) %>
please help.
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.