Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Unable to translate datetime question

More
6 years 11 months ago #173698 by dirk01
Hi,


I'm using the datetime-question in HH:MM format.


I'm unable to translate 'hour' and 'minute' to dutch.


I search everywhere in the installation and also in the .po file.


Theme : bootswatch


Versie 3.14.5+180815


Kind regards,


Dirk
More
6 years 11 months ago #173700 by tpartner
That is a bug that I can reproduce. Please file a bug report.

In the meantime. you can extend your theme and add something like this to custom.js:

Code:
$(document).on('ready pjax:scriptcomplete',function(){
 
  var minuteText = {
    'de': 'Minute',
    'en': 'Minute',
    'fr': 'Minute',
    'nl': 'Minuut'
  }
 
  var hourText = {
    'de': 'Stunde',
    'en': 'Hour',
    'fr': 'Heure',
    'nl': 'Uur'
  }
 
  var lang = $('html').attr('lang'); 
 
  $('.date select.form-control.hour option[value=""]').text(hourText[lang]);
  $('.date select.form-control.minute option[value=""]').text(minuteText[lang]);
});

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
6 years 11 months ago #173704 by dirk01
Thx. Bug reported.
The following user(s) said Thank You: DenisChenu, tpartner
The topic has been locked.
More
6 years 11 months ago #173706 by tpartner

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose