Project

General

Profile

Mark missing i18n strings with #TODO

Added by Enderson Maia over 13 years ago

I'd like to suggest that wen adding new i18n string on non-english language, you could add a #TODO on them, to make translators life easier.

Currently new translations are at the bottom of the file, this way we know what's not translated, but with #TODO we could organize the I18ED files the same way en.yml is organized, or even with some #SECTIONS.

pt-BR.yml

# E-mail
  mail_subject_lost_password: "Sua senha do {{value}}." 
  mail_body_lost_password: 'Para mudar sua senha, clique no link abaixo:'
  mail_subject_register: "Ativação de conta do {{value}}." 
  mail_body_register: 'Para ativar sua conta, clique no link abaixo:'
  mail_body_account_information_external: "Você pode usar sua conta do {{value}} para entrar." 
  mail_body_account_information: Informações sobre sua conta
  mail_subject_account_activation_request: "{{value}} - Requisição de ativação de conta" 
  mail_body_wiki_content_added: "The '{{page}}' wiki page has been added by {{author}}." #TODO
  mail_subject_wiki_content_updated: "'{{page}}' wiki page has been updated" #TODO
  mail_body_wiki_content_updated: "The '{{page}}' wiki page has been updated by {{author}}." #TODO

#Forum
..

# Administration
..

And the #TODO marks wold do the work of alerting for new strings.


Replies (3)

RE: Mark missing i18n strings with #TODO - Added by Felix Schäfer over 13 years ago

I'm pretty sure keeping the structure of the locale files wouldn't be easy, at least not by the means it is currently done. We could add TODO comments to strings taken from english to other languages. What do the other devs think?

RE: Mark missing i18n strings with #TODO - Added by Eric Davis over 13 years ago

Felix Schäfer wrote:

We could add TODO comments to strings taken from english to other languages.

I like this idea. As Felix already knows, managing the i18n strings is difficult and very time consuming for both sides (code and translations).

I would like to use sections but I don't think it would be easy to maintain.

Eric Davis

RE: Mark missing i18n strings with #TODO - Added by Enderson Maia over 13 years ago

#TODO is enough.

The sectioning could be something related do the views directory the string appears.

Run a grep -RH 'l(:.*)' app/views/* and work with awk or sed to make the sectioning, just an idea.

    (1-3/3)