Giter Club home page Giter Club logo

Comments (12)

stefanoverna avatar stefanoverna commented on July 20, 2024

I will try to investigate in the next few days :)

from activeadmin-globalize.

mreq avatar mreq commented on July 20, 2024

Any news on that? Should be an easy fix.

from activeadmin-globalize.

stefanoverna avatar stefanoverna commented on July 20, 2024

Not a lot of time available right now. Patch welcome! :)

On Tue, Feb 19, 2013 at 10:33 AM, Petr Marek [email protected]:

Any news on that? Should be an easy fix.

β€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-13763913.

from activeadmin-globalize.

mreq avatar mreq commented on July 20, 2024

I was trying, to na avail. I'm not familiar with the insides of active_admin :( BTW Thanks for the gem, works great.

from activeadmin-globalize.

tomeduarte avatar tomeduarte commented on July 20, 2024

@stefanoverna do you have any idea how to tackle this? I'm willing to give it a go if you can point me in the right direction.

At first glance, I'd say the culprit is here, but I am lost as to why the form builder doesn't use the appropriate locale to build the labels.

Is this right, or am I looking at this totally wrong?

from activeadmin-globalize.

stefanoverna avatar stefanoverna commented on July 20, 2024

Hey there, 0862d38 fixes this. You can specify to change locale for each tab using the switch_locale option.

from activeadmin-globalize.

mreq avatar mreq commented on July 20, 2024

Great work, thanks!

from activeadmin-globalize.

tomeduarte avatar tomeduarte commented on July 20, 2024

Thank you for fixing that. I wasn't aware of I18n.with_locale, always learning! πŸ˜ƒ

from activeadmin-globalize.

marcusg avatar marcusg commented on July 20, 2024

@stefanoverna: thanks for that. But that fix only changes the translations for the tabs, not the text for the labels right?

from activeadmin-globalize.

tomeduarte avatar tomeduarte commented on July 20, 2024

@marcusg I found my labels started to display correctly by adding them as formtastic labels.

Example:

"pt-PT":
  formtastic:
    labels:
      model_name:
        attribute_name: Exemplo
        another_attribute: Exemplo 2

Let me know if that helps πŸ˜„.

from activeadmin-globalize.

stefanoverna avatar stefanoverna commented on July 20, 2024

nope, it should actually fix also the labels

On Mon, Mar 18, 2013 at 4:43 PM, Marcus Geißler [email protected]:

@stefanoverna https://github.com/stefanoverna: thanks for that. But
that fix only changes the translations for the tabs, not the text for the
labels right?

β€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-15062066
.

from activeadmin-globalize.

marcusg avatar marcusg commented on July 20, 2024

ohhh yeah... with the use of the formtastic scope it works. thanks for your help!

from activeadmin-globalize.

Related Issues (19)

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.