X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=doc%2Fi18n.txt;h=92f1c4ba149fcf8d679591aa6cc57922a5b5d852;hp=e19721b879bca14a6b17202c2dc0e9ac4aabb8c1;hb=b4df37a525c34a317d5f6ff10baa518f75448703;hpb=552a9297ba279397eb166ff54feacce524bdabef diff --git a/doc/i18n.txt b/doc/i18n.txt index e19721b8..92f1c4ba 100644 --- a/doc/i18n.txt +++ b/doc/i18n.txt @@ -92,8 +92,8 @@ Charset totals: ------------------- 2. $languages array ------------------- -$languages array is stored in functions/i18n.php and defines translations -that are enabled in SquirrelMail. +$languages array is stored in functions/i18n.php (v. 1.5.0 or older) or +locale/*/setup.php files and defines enabled SquirrelMail translations. Format of array: $languages['language_code']['key'] = 'value' @@ -127,8 +127,8 @@ optional. XTRA_CODE functions provide way to change interface behavior, when translation requires special handling of some SquirrelMail functions. Functions are enabled by setting XTRA_CODE option in $languages array and including appropriate -functions in functions/i18n.php. First part of function name is word listed in -$languages['language_code']['XTRA_CODE'] value. Second part is one of special +functions in locale/language_code/setup.php. First part of function name is word +listed in $languages['language_code']['XTRA_CODE'] value. Second part is one of special keywords. Possible keywords: * _decode Used in src/compose.php, src/i18n.php, src/view_text.php, functions/mime.php @@ -254,15 +254,95 @@ If TZ variable can't be modified (php is running is safe mode and variable is not listed in php safe_mode_allowed_env_vars), user's time zone options are not visible and interface uses default webserver's time zone. -List of available time zones is stored in locale/timezones.cfg. Current list -of time zones uses some time zone names that depend on webserver's system -libraries. These names are not compatible with Windows operating system. - -TODO: move time zone information to php array in order to be able to translate -it and make sure that time zone names are compatible with Windows operating -system. Or at least provide 'default' and 'strict' time zone options in -SquirrelMail configuration. Maybe even provide 'custom' time zone list -options. +SquirrelMail 1.5.0 and older store list of available time zones in +locale/timezones.cfg. Since 1.5.1 standard times zones are moved to +include/timezones/standard.php and time zone handling differs from older +SquirrelMail versions. Time zone configuration is controlled in SquirrelMail +configuration utility (conf.pl), 4. General Options -> 15. Time zone +configuration menu option. Administrator can select standard, strict, custom +and custom strict time zone handling. + +Standard handling does not differ from previous SquirrelMail versions and +SquirrelMail uses GNU C geographical location based time zone names. Strict +handling uses time zone codes with offset from GMT. Strict time zones should +work on systems that don't support GNU C time zone naming. Custom and custom +strict handling uses config/timezones.php file instead of +include/timezones/standard.php. + +config/timezones.php file should store $aTimeZones array with different set of +time zones. See default time zone set in include/timezones/standard.php.For +example: + + + +GNU C time zone naming should be supported by many Unix OSes. It is recommended +way of setting time zone, because it handles historical changes and daylight +savings specific to selected geographical location. Strict time zones might +provide inaccurate or outdated time zone settings. If modifications in TZ environment are visible in your webserver's logs (time offset is changed), make sure that you can reproduce such behavior in latest php