Content
[solved] Error while create new or edit timeline report (in Thai language)
Added by Chate Kantapanit over 10 years ago
Dear Experts,
I have issue when try to create new timeline in Thai Language, perhaps this issue cause from the translation. I used latest th.yml file from dev branch from github, which is updated just about a week ago.
I install OpenProject 3.0.8 (MySQL)
OS Ubuntu 12.04
I18n::MissingInterpolationArgument in Timelines#new
@Showing /home/finance/openproject/app/views/timelines/filter/_projects.html.erb where line #208 raised:
missing interpolation argument :start_label in “{start_label}{startdate} {end_label}{enddate}” ({:startdate=>"<input id="timeline_options_planning_element_time_absolute_one" name="timeline[options][planning_element_time_absolute_one]" size="10" type="text" />
<script type=\"text/javascript\"> \\n//\<\!\[CDATA\[\\njQuery(‘\#timeline\_options\_planning\_element\_time\_absolute\_one’).datepicker();\\n//]]\>\\n </script>“, :enddate=>”<input id="timeline_options_planning_element_time_absolute_two" name="timeline[options][planning_element_time_absolute_two]" size="10" type="text" />
<script type=\"text/javascript\"> \\n//\<\!\[CDATA\[\\njQuery(‘\#timeline\_options\_planning\_element\_time\_absolute\_two’).datepicker();\\n//]]\>\\n </script>"} given)@
Extracted source (around line #208):
205: historical_calendar2 = calendar_for('timeline_options_planning_element_time_absolute_two') 206: %> 207: 208: <%= l('timelines.filter.project_time_filter_historical', 209: :startdate => historical_text1 + historical_calendar1 , 210: :enddate => historical_text2 + historical_calendar2).html_safe %> 211: </p>
Trace of template inclusion: app/views/timelines/_form.html.erb, app/views/timelines/new.html.erb
Rails.root: /home/finance/openproject
Application Trace | Framework Trace | Full Trace
lib/redmine/i18n.rb:42:in `l' app/views/timelines/filter/_projects.html.erb:208:in `_app_views_timelines_filter__projects_html_erb__196087763_172280350' app/views/timelines/_form.html.erb:50:in `_app_views_timelines__form_html_erb__103771173_167513960' app/views/timelines/new.html.erb:38:in `block in _app_views_timelines_new_html_erb__628508674_167484700' app/views/timelines/new.html.erb:34:in `_app_views_timelines_new_html_erb__628508674_167484700'
Request
Parameters:
{"project_id"=>"seeded_project"}
Show session dump
Show env dump
Response
Headers:
None
If you need more information, please let me know.
Regards,
Chate
Replies (2)
Hi Chate,
I think you’re right. The translation file is intended for the dev branch. Because you are using a stable release of OpenProject (which is a wise choice) some translations do not match correctly.
We are currently searching for a good solution to provide stable translations as well as dev-branch translations.
As an intermediate solution you could edit the
th.yml
file and remove “start_label” and “end_label” from the translation string. This should fix your specific error until we find a better solution.cheers,
tessi
Hi Tessi,
Thank you for your kindly advice, I’ve tested by removing start_label and end_label and now I can either create or edit timeline in Thai.
Thank you once again.
Regards,
Chate