locomotivecms / engine

A platform to create, publish and edit sites
http://www.locomotivecms.com
Other
2.32k stars 626 forks source link

Feature request : managing static translations #506

Closed jloosfelt closed 11 years ago

jloosfelt commented 12 years ago

After a short experience with translated websites, and reading some interesting remarks in the Google Group, here is my feedback and feature request to help manage them.

There are 2 types of content that must be translated :

For the first one I would like to use tags like

{{ 'general.learn_more' | translate [locale: en] }}

(i18n style, with fallback to default_locale)

The translations could be pushed using yaml files with the editor, and in the backoffice we would have a controller to manage them in any language. I guess only designer and administrator roles are authorized to change them.

This way it would make it possible to avoid html duplication to manage every language.

I'd like to hear some feedbacks of this idea ? What should be the right practice ?

gabrielnau commented 12 years ago

Great idea ! Still I think there is some edge cases where it would be needed to be able to define an entire different template per locale, but it would be a great start !

jloosfelt commented 12 years ago

Exactly! we need to choose for each page if we prefer to use a different template per locale or not.

did commented 12 years ago

Santa Claus is coming sooner this year. Someone will implement it next week :-)

gabrielnau commented 12 years ago

Great !

kenglishhi commented 12 years ago

This would be awesome to have.

Papipo commented 12 years ago

Done in my fork (https://github.com/Papipo/engine/tree/translations), but I need UI advice. I'm new to locomotive and all views are quite hardcoded, so even if the feature works, the list and form look awful.

did commented 12 years ago

great job Rod ;-)

did commented 11 years ago

this commit enhances Rod's pull request.