diff --git a/reference/strings/functions/setlocale.xml b/reference/strings/functions/setlocale.xml index f622242aaf..6591553cbb 100644 --- a/reference/strings/functions/setlocale.xml +++ b/reference/strings/functions/setlocale.xml @@ -1,5 +1,5 @@ - + @@ -66,8 +66,8 @@ categories, or from "LANG". - If locale is zero or "0", the locale setting - is not affected, only the current setting is returned. + If locale is &null; or "0", + the locale setting is not affected, only the current setting is returned. If locale is an array or followed by additional @@ -83,7 +83,7 @@ Setlocale returns the new current locale, or &false; if the locale - functionality is not implemented in the platform, the specified + functionality is not implemented on your platform, the specified locale does not exist or the category name is invalid. An invalid category name also causes a warning message. Category/locale names can be found in RFC 1766 @@ -96,6 +96,19 @@ what the system setlocale function returns. + + + Windows users will find usefull information about + locale strings at Microsoft's msdn website. + Supported language strings can be found + here and supported + country/region strings + here. Windows systems support the three letter codes for + country/region specified by ISO 3166-Alpha-3,which + can be found at this Unicode website + . + + <function>setlocale</function> Examples @@ -112,6 +125,26 @@ echo strftime ("%A %e %B %Y", mktime (0, 0, 0, 12, 22, 1978)); $loc_de = setlocale (LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge'); echo "Preferred locale for german on this system is '$loc_de'"; ?> +]]> + + + + + + <function>setlocale</function> Examples for Windows + + ]]>