scarfacedeb / rails_admin_globalize_field

Tabbed interface and custom field type for globalize translations for Rails_admin
MIT License
50 stars 60 forks source link

Documentation for UI localization and some customization #34

Open felix91gr opened 4 years ago

felix91gr commented 4 years ago

Hi @scarfacedeb,

Here's what you taught me, documented in the README.

The version I made probably needs a couple more iterations, please tell me what you would change about it.

I would like to also add a section about how to do https://github.com/scarfacedeb/rails_admin_globalize_field/issues/33 properly. That way the README explains every little bit of UI customization that the user might need (I think).

scarfacedeb commented 4 years ago

@felix91gr Thank you, it looks good to me.

I think it's worth mentioning Model#model_name#i18n_key method, as in Cms::Page.model_name.i18n_key. It's the one that I18n library uses in yaml file.

felix91gr commented 4 years ago

Model#model_name#i18n_key

What is that? :o

scarfacedeb commented 4 years ago

Don't worry about it, that's my way of writing a nested call to instance methods. :)

Actually, Model.model_name is not even an instance method!

Anyway, it supposed to represent Cms::Page.model_name.i18n_key method calls.

felix91gr commented 4 years ago

Ohh, I see!

Btw, the #33 usage documentation is now in. Lemme know what you think!

As soon as you give it a :+1: and merge #36, I'll update the URLs of the images so that they point to the copies in this repo :3

scarfacedeb commented 4 years ago

@felix91gr Hello again, could you rewrite the README to mention customization of tab labels via admin.globalize_field.tab_label, instead of monkey patching? It should make it more straightforward to customize the labels.