[TYPO3-english] Localize name of month & days in tt_news

Dodi Iriyanto dodiiriyanto at gmail.com
Thu Aug 11 10:16:17 CEST 2011


Hi Jigal,

Thank you for your input, i just noticed, currently my server is not support
with locale setting i have test php code below:

<?php

/* Set locale to Dutch */

setlocale(LC_ALL, 'nl_NL');



/* Output: vrijdag 22 december 1978 */

echo strftime("%A %e %B %Y", mktime(0, 0, 0, 12, 22, 1978));



/* try different possible locale names for german as of PHP 4.3.0 */

$loc_de = setlocale(LC_ALL, 'de_DE at euro', 'de_DE', 'de', 'ge');

echo "Preferred locale for german on this system is '$loc_de'";

?>


The result is only shows Preferred locale for german on this system is. It
means that my server does not support locale for german as a case sample.


I use IIS & PHP environment and i still trying how to install French locale.
Thank you for your notification about my TYPO3 version, i will update it as
soon as possible.


Cheers,

Dodi



On Thu, Aug 11, 2011 at 1:35 AM, Jigal van Hemert <jigal at xs4all.nl> wrote:

> Hi,
>
>
> On 10-8-2011 19:52, Dodi Iriyanto wrote:
>
>> I just build multilanguage site using TYPO3 4.3.
>>
>
> As you can see on the overview of TYPO3 version [1] version 4.3 is already
> deprecated and will become obsolete next October when 4.6 is released.
> For a new site it's best to use TYPO3 4.5.
>
>
>  Everything is work except
>> for month&  days, i use strftime to format the date. Unfortunately, the
>> name
>> of month&  days wont change to current language ie: French language. Has
>> someone has an idea?
>>
>
> In your Typoscript configuration for the various languages you have set the
> locale_all for each language. For example (the various numbers may differ
> depending on your specific configuration):
>
> [globalVar = GP:L=1]
> config {
>  sys_language_uid = 1
>  language = fr
>  locale_all = fr_FR
> }
> [global]
>
> Whatever you set for locale_all must be the exact name of a locale which is
> installed on your server. Check which locales are available on your server
> and which is the exact name of the French locale you want to use.
> If there is no French locale installed your sysadmin (maybe you :-) ) needs
> to install it.
>
> [1] http://typo3.org/download/**packages/<http://typo3.org/download/packages/>
>
> --
> Kind regards / met vriendelijke groet,
>
> Jigal van Hemert.
>
> ______________________________**_________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**english<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english>
>


More information about the TYPO3-english mailing list