- Posts: 19
- Thank you received: 4
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Unable to translate datetime question
- dirk01
- Topic Author
- Offline
- New Member
Less
More
5 years 6 months ago #173698
by dirk01
Unable to translate datetime question was created 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
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
Attachments:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10632
- Thank you received: 3697
5 years 6 months ago #173700
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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:
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 4
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10632
- Thank you received: 3697
5 years 6 months ago #173706
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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.