Unable to translate datetime question

More
2 months 2 days ago #173698 by dirk01
dirk01 created the topic: Unable to translate datetime question
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
Attachments:

Please Log in or Create an account to join the conversation.

More
2 months 2 days ago #173700 by tpartner
tpartner replied the 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:

$(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.

Please Log in or Create an account to join the conversation.

More
2 months 2 days ago #173704 by dirk01
dirk01 replied the topic: Unable to translate datetime question
Thx. Bug reported.
The following user(s) said Thank You: DenisChenu, tpartner

Please Log in or Create an account to join the conversation.

More
2 months 2 days ago #173706 by tpartner
tpartner replied the 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

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!