Comments (12)
I will try to investigate in the next few days :)
from activeadmin-globalize.
Any news on that? Should be an easy fix.
from activeadmin-globalize.
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.
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.
@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.
Hey there, 0862d38 fixes this. You can specify to change locale for each tab using the switch_locale
option.
from activeadmin-globalize.
Great work, thanks!
from activeadmin-globalize.
Thank you for fixing that. I wasn't aware of I18n.with_locale
, always learning! π
from activeadmin-globalize.
@stefanoverna: thanks for that. But that fix only changes the translations for the tabs, not the text for the labels right?
from activeadmin-globalize.
@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.
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.
ohhh yeah... with the use of the formtastic scope it works. thanks for your help!
from activeadmin-globalize.
Related Issues (19)
- Validation errors are not shown HOT 1
- Delete empty translation records on save HOT 5
- duplicate inputs when used inside form HOT 11
- css not precompiled on heroku HOT 1
- Unable to use translated_inputs with form partial HOT 2
- Save empty translations HOT 1
- Set default open tab
- Asset Pipeline ... HOT 4
- Problem with validations declared in active_admin_translates HOT 2
- Version for Rails 3 HOT 2
- Validation: at least a language
- Updating record creates new translation records instead of updating them HOT 3
- After upgraded to AA 1.0.0.pre notebook tabs urls are broken HOT 1
- f.translated_inputs can't be split up across input-groups HOT 1
- Sorting of translated column leads to an exception HOT 1
- activeadmin 9132da6 form_buffer removed HOT 7
- I can't use "translated_inputs" inside "has_many" HOT 3
- Save slug for all availabe locales HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from activeadmin-globalize.