Welcome to the LimeSurvey Community Forum

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

Unable to translate datetime question

  • dirk01
  • dirk01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 6 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
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #173700 by tpartner
Replied by tpartner on topic Unable to translate datetime question
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.
  • dirk01
  • dirk01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 6 months ago #173704 by dirk01
Replied by dirk01 on topic Unable to translate datetime question
Thx. Bug reported.
The following user(s) said Thank You: DenisChenu, tpartner
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #173706 by tpartner
Replied by tpartner on topic Unable to translate datetime question

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.

Lime-years ahead

Online-surveys for every purse and purpose