| Project: | ProjectPier |
| Version: | 0.8.6-stable |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | phpfreak |
| Status: | closed - fixed |
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
| Attachment | Size |
|---|---|
| general.php.txt | 5.01 KB |
| Localization.class.php.txt | 9.77 KB |
| localization.php.txt | 4.26 KB |
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
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.
Patch: http://www.projectpier.org/node/672
Edit: Fixed the link (see below)
The link isn't working here is the correct URL: http://www.projectpier.org/node/672