Error while initializing Redmine

Asked

Viewed 151 times

-2

After making the modification in one of my plugins in development in Redmine , it can no longer initialize and returns me the following message:

ActionView::Template::Error (can not load translations from D:/Ruby/B233/plugins/uc_rh/config/locales/pt-Br.yml, expected it
 to return a hash, but does not):
    1: <h2><%= l(:label_home) -%>
    2: </h2>
    3:
    4:

Could mine Controller the plugin is influencing when rendering the page?

1 answer

1

Your translation file is not properly formatted as per the YAML format specification. Look for missing spaces, incorrect identations or things like that. If you can, post your translation file to take a look.

Also, you can easily check whether the file is in the correct format by loading it directly into irb as follows:

YAML.load_file("caminho_para_seu_arquivo.yml")

Browser other questions tagged

You are not signed in. Login or sign up in order to post.