Date in french format

Discussion and planning of required developer support for multiple languages, and design and commentary on tools and techniques to assist with the automation of generating language specific structures.
Post Reply
Gorrünwe
Bounty Hunter
Bounty Hunter
Posts: 144
Joined: Sun Jul 18, 2004 11:43 pm
Location: Saint-Etienne, in France
Contact:

Date in french format

Post by Gorrünwe »

Does anyone know how to put the date in french format (ie: make python to recognize the locale variable as fr_FR)? Thanks!
Gorrünwe
dandandaman
Artisan
Artisan
Posts: 1270
Joined: Fri Jan 03, 2003 3:27 am
Location: Perth, Western Australia
Contact:

Post by dandandaman »

the date? where exactly does this appear ... in the dynamic news stuff? Last I checked cvs just displayed something like "This story first broadcast on:" and then the timestamp. Is this string what you mean? :-)

Dan.a
Gorrünwe
Bounty Hunter
Bounty Hunter
Posts: 144
Joined: Sun Jul 18, 2004 11:43 pm
Location: Saint-Etienne, in France
Contact:

Post by Gorrünwe »

yes sir! :D
Gorrünwe
dandandaman
Artisan
Artisan
Posts: 1270
Joined: Fri Jan 03, 2003 3:27 am
Location: Perth, Western Australia
Contact:

Post by dandandaman »

well, that text is in dynamic_news.py if you just want to modify the string...... but I don't know how to do locale stuff in python, so I could probably move it into dynamic_news_content.py if you want. :-) Will this be good enough?

Dan.a
Gorrünwe
Bounty Hunter
Bounty Hunter
Posts: 144
Joined: Sun Jul 18, 2004 11:43 pm
Location: Saint-Etienne, in France
Contact:

Post by Gorrünwe »

actually, i find a "brutal" solution, but i would prefer an "official" one:
my solution consists in:
1) reorganise the different strings in a "french order": day month year, hour:min:sec
2) make a function that translates the english months in the french months

If i can't find a "clean" solution, i'll keep this one... :?
Gorrünwe
dandandaman
Artisan
Artisan
Posts: 1270
Joined: Fri Jan 03, 2003 3:27 am
Location: Perth, Western Australia
Contact:

Post by dandandaman »

ah....you're not working off cvs then.

In cvs, the data format has been changed to just the timestamp. ie you get this now:

"This story first broadcast on: 220.12345975"

or whatever ...... as the date stuff was going to me implemented in c++ code properly (as opposed to my hacked version ;-) )......this may or may not be the case any longer (the devel who was going to do this has disappeared), but the next release may have this format instead of the old one. So all that will need to be changed is "This story first....etc" :-)

Otherwise, the 'locale' modules has names for days, months etc for different locales, although I've never used this before. :-)

Dan.a
Gorrünwe
Bounty Hunter
Bounty Hunter
Posts: 144
Joined: Sun Jul 18, 2004 11:43 pm
Location: Saint-Etienne, in France
Contact:

Post by Gorrünwe »

dandandaman wrote:"This story first broadcast on: 220.12345975"
Will the date always still in this format, later? I don't understand your explainations...
Gorrünwe
dandandaman
Artisan
Artisan
Posts: 1270
Joined: Fri Jan 03, 2003 3:27 am
Location: Perth, Western Australia
Contact:

Post by dandandaman »

At this stage, the next release will have this format.

It will be altered after the next release.

If this plan changes, I'll let you know. :-)

Dan.a
Post Reply