Support for displaying dates (e.g. month name) in active language

Project:ProjectPier
Version:0.8.6-stable
Component:Code
Category:feature request
Priority:normal
Assigned:phpfreak
Status:closed - fixed
Description

In the forum post http://www.projectpier.org/node/1758 a question was raised on how to display dates with non-english parts (e.g. week day names). This patch provides a solution per language.

Language developers need to update general.php per language with the proper values for about 50 strings so dates can contain strings like März or Aout. The application wide date formats can be set per language by modifying the elements:

'datetime format' => 'M d. Y H:i'
'date format' => 'M d. Y'
'descriptive date format' => 'l, j F'
'time format' => 'H:i'

If the elements are missing the defaults will be a shown above.

Install it by copying:
general.php.txt to /language/en_us/general.php,
localization.php.txt to /environment/classes/localization/localization.php and
Localization.class.php.txt to /environment/classes/localization/localization.php
.

Cheers, Reinier

AttachmentSize
general.php.txt5.01 KB
Localization.class.php.txt9.77 KB
localization.php.txt4.26 KB
#1

Too bad I can't edit my issue :(. So here is the correction:

Localization.class.php.txt to /environment/classes/localization/localization.php

should be

Localization.class.php.txt to /environment/classes/localization/Localization.class.php.txt

#2

I'm having problems with this, even if I translated general.php

in /language/is_is/general.php I'm still getting the english text for dates.

See attachment, everything is translated but the dates.

AttachmentSize
Fullscreen capture 12.2.2011 195104.jpg 66.84 KB
#3
Version:0.8.5.0-Beta1» 0.8.6-stable
Status:patch - code needs review» closed - fixed

Patch: http://www.projectpier.org/node/672

Edit: Fixed the link (see below)

#4

The link isn't working here is the correct URL: http://www.projectpier.org/node/672