Closed bolshakov closed 11 years ago
I will try to investigate in the next few days :)
Any news on that? Should be an easy fix.
Not a lot of time available right now. Patch welcome! :)
On Tue, Feb 19, 2013 at 10:33 AM, Petr Marek notifications@github.comwrote:
Any news on that? Should be an easy fix.
— Reply to this email directly or view it on GitHubhttps://github.com/stefanoverna/activeadmin-globalize3/issues/2#issuecomment-13763913.
I was trying, to na avail. I'm not familiar with the insides of active_admin :( BTW Thanks for the gem, works great.
@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?
Hey there, 0862d3863dee2f fixes this. You can specify to change locale for each tab using the switch_locale
option.
Great work, thanks!
Thank you for fixing that. I wasn't aware of I18n.with_locale
, always learning! :smiley:
@stefanoverna: thanks for that. But that fix only changes the translations for the tabs, not the text for the labels right?
@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 :smile:.
nope, it should actually fix also the labels
On Mon, Mar 18, 2013 at 4:43 PM, Marcus Geißler notifications@github.comwrote:
@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/stefanoverna/activeadmin-globalize3/issues/2#issuecomment-15062066 .
ohhh yeah... with the use of the formtastic scope it works. thanks for your help!
I'm expecting label on input field to be 'Title' for English tab and 'Название' for Russian tab. Currently it shows 'Title' for both tabs. Could you help me to solve the problem?