Support and General Use > Theming and Appearance Customization
Display month name in WPS?
RowaN:
With the recent changes to RTC stuff in Rockbox, I'm trying to sync my WPS, but having problems with month (and day). It returns a number now instead of the name (e.g. 1 instead of January). From what I could gain from reading the WPS wiki page on conditionals, I tried:
--- Quote ---%?cm(January|February|March|April|May|June|July|August|September|October|November|December)
--- End quote ---
[I have replaced the V-shaped brackets with normal brackets in the above line because this forum was not displaying them properly.]
..but that doesnt seem to work. I also looked through many pages of existing WPS but couldnt find any that show the month name. Can someone shed some light on this for me please?
ColdSphinx:
Is it necessari for you that the monthname is comlete shown like "January"?
If not you could use:
--- Code: ---%cb - abbreviated month name (Jan..Dec)
--- End code ---
--- Quote from: RowaN on May 07, 2007, 04:51:41 PM ---It returns a number now instead of the name (e.g. 1 instead of January)
--- End quote ---
It returns "01" for January.
RowaN:
Yes, I am trying to display the month name, not an abbriviation. Is it possible? Why is my conditional tag not working?
ColdSphinx:
It's an bug caused by the formating. 01,02,03,04,..,10,11,12
RowaN:
Thanks for info. I've added it as a bug here:
www.rockbox.org/tracker/task/7133
Navigation
[0] Message Index
[#] Next page
Go to full version