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.

Date in french format

Postby Gorrünwe » Thu Aug 19, 2004 11:12 am

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
Gorrünwe
Bounty Hunter
Bounty Hunter
 
Posts: 144
Topics: 17
Joined: Sun Jul 18, 2004 4:43 pm
Location: Saint-Etienne, in France

Share On:

Share on Facebook Facebook Share on Twitter Twitter Share on Digg Digg

Postby dandandaman » Thu Aug 19, 2004 9:46 pm

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
dandandaman
Artisan
Artisan
 
Posts: 1270
Topics: 28
Joined: Thu Jan 02, 2003 8:27 pm
Location: Perth, Western Australia

Postby Gorrünwe » Fri Aug 20, 2004 12:03 am

yes sir! :D
Gorrünwe
Gorrünwe
Bounty Hunter
Bounty Hunter
 
Posts: 144
Topics: 17
Joined: Sun Jul 18, 2004 4:43 pm
Location: Saint-Etienne, in France

Postby dandandaman » Fri Aug 20, 2004 12:48 am

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
dandandaman
Artisan
Artisan
 
Posts: 1270
Topics: 28
Joined: Thu Jan 02, 2003 8:27 pm
Location: Perth, Western Australia

Postby Gorrünwe » Fri Aug 20, 2004 12:53 am

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
Gorrünwe
Bounty Hunter
Bounty Hunter
 
Posts: 144
Topics: 17
Joined: Sun Jul 18, 2004 4:43 pm
Location: Saint-Etienne, in France

Postby dandandaman » Fri Aug 20, 2004 1:14 am

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
dandandaman
Artisan
Artisan
 
Posts: 1270
Topics: 28
Joined: Thu Jan 02, 2003 8:27 pm
Location: Perth, Western Australia

Postby Gorrünwe » Fri Aug 20, 2004 1:26 am

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
Gorrünwe
Bounty Hunter
Bounty Hunter
 
Posts: 144
Topics: 17
Joined: Sun Jul 18, 2004 4:43 pm
Location: Saint-Etienne, in France

Postby dandandaman » Sat Aug 21, 2004 3:19 am

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
dandandaman
Artisan
Artisan
 
Posts: 1270
Topics: 28
Joined: Thu Jan 02, 2003 8:27 pm
Location: Perth, Western Australia



Return to Translation Support Infrastructure

Who is online

Users browsing this forum: No registered users and 3 guests

cron