i18n for vendor plugin etc

0 views
Skip to first unread message

Claudia Jürgen

unread,
Oct 20, 2011, 12:42:17 PM10/20/11
to bibap...@googlegroups.com
Hi all,

where should stuff like
vendor/plugins/make_resourceful/lib/resourceful/default/responses.rb
85: set_default_flash :notice, I18n.t('make_resourceful.update.success',
:default => "Save successful!")
go? Into the config/locals/rails/locale.yml or in a seperate file per
plugin?

Claudia

--
Claudia Juergen
Universitaetsbibliothek Dortmund
Eldorado
0231/755-4043
https://eldorado.tu-dortmund.de/

Howard Ding

unread,
Oct 20, 2011, 3:56:44 PM10/20/11
to bibap...@googlegroups.com
Hi Claudia,

A good question. Let me think about it. Does make_resourceful have a
catalog of translations that are needed, or did you just happen to
stumble across some?

Howard

hading2

unread,
Oct 20, 2011, 4:46:50 PM10/20/11
to bibapp-dev
It appears that for this particular plugin there are only a few
translations and they're all in that one file.

I think we can put them directly in the main locale.yml file. I will
also add them explicitly to the English files.

I'm hoping the rest of the plugins don't try too much to interject
text into the application.

Howard

Claudia Jürgen

unread,
Oct 21, 2011, 3:57:25 AM10/21/11
to bibap...@googlegroups.com
Fine, I think the responses contained most of the Text injected.
If I'll stumble across anything else, I'll treat it the same way.

Claudia

--

Reply all
Reply to author
Forward
0 new messages