amatsuda / i18n_generators

A pack of Rails generators gem plugin that generates Rails 3 and Rails 2 I18n locale files for almost every known locale.
http://github.com/amatsuda/i18n_generators
MIT License
296 stars 29 forks source link

Haml localization extraction library #12

Open shaiguitar opened 11 years ago

shaiguitar commented 11 years ago

Not a classic issue, but figured this repository had something to do with it, and wanted to introduce this to you, in case you had need for it:

https://github.com/shaiguitar/haml-i18n-extractor

It's essentially a library/tool for extracting out i18n text out of haml, by parsing it with the haml nodes/types.

If you can use this, or know anyone who can use this, please let them know and give it a whirl. I would be happy to get feedback. Thanks!

yoyos commented 10 years ago

So parsing key in haml files is not supported in i18n_generators ? This may be the reason I can't get my keys in yml files ? ^^

shaiguitar commented 10 years ago

I suppose so, I haven't used this repo myself.

Anyway, ff you want to translate the text that is in the haml templates, http://github.com/shaiguitar/haml-i18n-extractor#readme should be good to use. Feel free to check it out and open an issue on that repo if you have any :)

yoyos commented 10 years ago

Yep I have to thank you. Very good gem for haml users :)

shaiguitar commented 10 years ago

Thanks!