Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Date localisations
Currently it is possible to (at least) partially use date localization in TXP. If in your textpattern > lang directory you have a translated language dates file you can then get localized date output in the txp:posted tag.
In my lang directory I have a file named fr_dates.txt, it is a translated copy of the template Dean provides above. [Remember to encode any accented characters otherwise any accented characters will be rendered gibberish.]
Then in your txp:posted tags add the language attribute. In my case lang=“fr”.
The actual tag I’m using looks like this :
<txp:posted lang="fr" format="d M Y à G:i" />
which produces output that look like :
26 fév 2004 à 14:46
To the best of my knowledge, this method doesn’t work yet for the txp:comment_time tag.
Last edited by Damelon (2004-07-10 11:18:22)
Offline
Re: Date localisations
To bring this back up: has there been any development in the date localisation since v1.17?
Offline
Re: Date localisations
It looks like it’s not working anymore in the new version
Any ideas why ?
Standardisator – CSS – XHTML – PHP – JS – TXP
Offline
Re: Date localisations
Dutch dates are mailed to dean at textism.com.
Offline
Re: Date localisations
Icelandic transilation sent in
regards,
Agust
Offline
Re: Date localisations
Done: Modern greek, “dhimotiki” (demotic), monotonic script. Declension is taken into account, and full month names are in genitive.
VC3 :: weblog :: my wishlist
Offline
Re: Date localisations
I have realized that Dean’s template is short of a couple of things:
- pm/am translation
- minutes/hours/days ago translation.
Last edited by Etz Haim (2005-01-25 20:51:07)
VC3 :: weblog :: my wishlist
Offline
Re: Date localisations
Thai dates submitted.
Offline
#33 2005-02-28 23:44:34
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Date localisations
Textpattern RC3 hands off date localisation to the operating system. As long as your system is properly configured, and you select the appropriate locale in admin > prefs, it should Just Work.
Alex
Offline
Re: Date localisations
Dummy Question:
LANG_dates.txt> Japanese is done.
Where do I locate the file for having dates in japanese?
Thanx
File sent to Dean.
read after in here ask me if you need ne to mail the rectified .txt
year=>年
month=>月
days=>日
am=>
Last edited by levinnature (2005-05-25 05:42:39)
Developping multi-lingual web-solutions in Japan, and having good wines.
Offline