Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. [solved] Error while create new or edit timeline report (in Thai language)

[solved] Error while create new or edit timeline report (in Thai language)

Added by Chate Kantapanit almost 11 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)

RE: Error while create new or edit timeline report (in Thai language) - Added by Philipp Tessenow almost 11 years ago

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

RE: Error while create new or edit timeline report (in Thai language) - Added by Chate Kantapanit almost 11 years ago

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

  • (1 - 2/2)
Loading...