Giter Club home page Giter Club logo

tml-rails's People

Contributors

anatoliid avatar berk avatar ianmcdaniel avatar leon2555 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tml-rails's Issues

Not updating view after getting the response

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.

Automatic form labels not generated properly when using tml as i18n bakend

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.

Errors on multiple rails methods when using tml as i18n bakend

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:

  1. When using the rails method number_with_delimiter as part of a variable in a call to a translation:
<%= t("hello", :number => number_with_delimiter(5)) %>

I get the error:

undefined method `gsub' for 3:Fixnum
  1. When using the rails method parameterize
<%= "Hello there".parameterize %>

I get the error:

undefined method `html_safe' for {}:Hash
  1. And the same error when using the method to_sentence
<%= ['one', 'two'].to_sentence %>

How can this be resolved?
Thank you.

Unable to use I18n backend

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

Unsupported language selector dropdown

Hi, I got error after use
<%= tml_language_selector_tag(:dropdown, {:style => "margin-top:15px", :language => :english}) %>

  • Unsupported language selector dropdown

please help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.