Label time text changing. Thread last updated on 2003-12-02 13:07:50

Posted by member 80804 on 2003-11-26 00:08:11

Currently on my system, label returns 午双 for AM time. I'd like to change this to return 午前as is the proper spelling in Japanese. Is there a way to edit the constant texts label uses, or should I contact the maintaners?

Posted by member 182 on 2003-11-26 18:23:17 link

if you mean (i'll use the english equivalent) in something like '11:30 AM' that the AM part is misspelt, you'll have to talk to the module author.

check the labe docs though, there might be something to let you change the spelling. at the least, you should be able to switch to a 24 hour format.

Posted by member 503 on 2003-12-01 18:54:04 link

Label gets the AM/PM indicators from Windows, so they should be correct. Check Control Panel > Regional Settings > Time.

Posted by member 80804 on 2003-12-01 19:43:04 link

Checked, and the Windows setting is the proper one, yet the error persists.
This is on label version 1.9.9, using the newest version of austerity as a theme, tested with both Tahoma and MS UI Gothic as fonts.

Also, relatedly, is there a way to get label to display the year as configured under the era settings in the Date tab of said control panel?

Posted by member 503 on 2003-12-01 20:02:14 link

Hmm... what is your LabelText line?

Posted by member 80804 on 2003-12-02 00:20:23 link

Labeltext that shows the problem is "[time('i:nn')] [lowerCase(time('am/pm'))]".

Actually, looking at it again, the lowerCase function appears to be where the problem lies... I just tried without it and the problem's resolved. Sorry for bothering, and thanks for the response.

Posted by member 503 on 2003-12-02 13:07:50 link

Yeah, I figured you were probably applying a function the text.