Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Date localisations

#25 2004-06-29 04:12:02

Damelon
Member
From: Lyon, France
Registered: 2004-05-11
Posts: 47
Website

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

#26 2004-08-13 06:22:04

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: Date localisations

To bring this back up: has there been any development in the date localisation since v1.17?

Offline

#27 2004-10-03 16:27:39

Belisarius
Member
From: Grenoble, France
Registered: 2004-06-27
Posts: 37
Website

Re: Date localisations

It looks like it’s not working anymore in the new version

Any ideas why ?


Standardisator – CSSXHTMLPHP – JS – TXP

Offline

#28 2004-11-01 14:10:59

JW
New Member
From: Netherlands
Registered: 2004-06-04
Posts: 2
Website

Re: Date localisations

Dutch dates are mailed to dean at textism.com.

Offline

#29 2005-01-20 20:34:30

druzli
Member
From: Denmark / Iceland
Registered: 2004-06-28
Posts: 60
Website

Re: Date localisations

Icelandic transilation sent in


regards,

Agust

Offline

#30 2005-01-24 21:10:14

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: Date localisations

Done: Modern greek, “dhimotiki” (demotic), monotonic script. Declension is taken into account, and full month names are in genitive.

Offline

#31 2005-01-25 20:44:44

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

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)

Offline

#32 2005-02-28 13:45:03

bongbang
New Member
From: Bangkok, Thailand
Registered: 2005-01-22
Posts: 6
Website

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

#34 2005-05-25 05:41:38

levinnature
New Member
From: Tokyo Japan
Registered: 2004-12-04
Posts: 6
Website

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

  1. Index
  2. » Archives
  3. » Date localisations

Board footer

Powered by FluxBB