From: <gi...@ma...> - 2009-09-22 07:36:06
|
The branch, master-1.2.x has been updated via 5f78466fcc594383375a57a7f66ca9933b39e028 (commit) from 5b448d2fb5322c86536c049ad5f2276eee5780f9 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 5f78466fcc594383375a57a7f66ca9933b39e028 Author: Daniel Tschinder <co...@ts...> Date: Sun Sep 20 13:40:51 2009 +0200 Fix #10929: Use localizeable function strftime() instead of date() This commit adds the possibility to translate month names in lang-files. Signed-off-by: David Hicks <hic...@op...> ----------------------------------------------------------------------- Summary of changes: core/date_api.php | 4 ++-- lang/strings_english.txt | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) ----------------------------------------------------------------------- commit 5f78466fcc594383375a57a7f66ca9933b39e028 Author: Daniel Tschinder <co...@ts...> Date: Sun Sep 20 13:40:51 2009 +0200 Fix #10929: Use localizeable function strftime() instead of date() This commit adds the possibility to translate month names in lang-files. Signed-off-by: David Hicks <hic...@op...> diff --git a/core/date_api.php b/core/date_api.php index 2b08862..dca6949 100644 --- a/core/date_api.php +++ b/core/date_api.php @@ -97,9 +97,9 @@ function print_month_option_list( $p_month = 0 ) { for( $i = 1;$i <= 12;$i++ ) { $month_name = date( 'F', mktime( 0, 0, 0, $i, 1, 2000 ) ); if( $i == $p_month ) { - echo "<option value=\"$i\" selected=\"selected\">$month_name</option>"; + echo "<option value=\"$i\" selected=\"selected\">" . lang_get( 'month_' . utf8_strtolower($month_name)) . "</option>"; } else { - echo "<option value=\"$i\">$month_name</option>"; + echo "<option value=\"$i\">" . lang_get( 'month_' . utf8_strtolower($month_name)) . "</option>"; } } } diff --git a/lang/strings_english.txt b/lang/strings_english.txt index af27760..43a752f 100644 --- a/lang/strings_english.txt +++ b/lang/strings_english.txt @@ -1539,3 +1539,16 @@ $s_install_information = 'MantisBT Installation Information'; $s_database_information = 'MantisBT Database Information'; $s_path_information = 'MantisBT Path Information'; +# months +$s_month_january = 'January'; +$s_month_february = 'February'; +$s_month_march = 'March'; +$s_month_april = 'April'; +$s_month_may = 'May'; +$s_month_june = 'June'; +$s_month_july = 'July'; +$s_month_august = 'August'; +$s_month_september = 'September'; +$s_month_october = 'October'; +$s_month_november = 'November'; +$s_month_dezember = 'Dezember'; ----------------------------------------------------------------------- -- Mantis Bug Tracker |