+
+
+
+
Index: openacs-4/packages/acs-lang/www/admin/index.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/admin/index.tcl,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/acs-lang/www/admin/index.tcl 13 Feb 2003 14:26:50 -0000 1.4
+++ openacs-4/packages/acs-lang/www/admin/index.tcl 14 Aug 2003 16:06:20 -0000 1.5
@@ -5,22 +5,68 @@
Administration of the localized messages
@author Bruno Mattarollo
+ @author Lars Pind (lars@collaboraid.biz)
@creation-date 19 October 2001
@cvs-id $Id$
-} {
- {tab "home"}
}
-set locale_user [ad_locale user locale]
-set instance_name [ad_conn instance_name]
-set context_bar [ad_context_bar]
+# We rename to avoid conflict in queries
+set system_locale [lang::system::locale -site_wide]
+set system_locale_label [ad_locale_get_label $system_locale]
+set page_title "Adminsitration of Localization"
+set context [list]
+
+
set timezone_p [lang::system::timezone_support_p]
+set timezone [lang::system::timezone]
+
set translator_mode_p [lang::util::translator_mode_p]
-if { [ad_permission_p 0 admin] } {
- set show_locales_p "t"
-} else {
- set show_locales_p "f"
+
+
+set parameter_url "/admin/site-map/parameter-set?[export_vars { {package_id {[ad_conn package_id]} } { return_url {[ad_return_url]} } }]"
+
+
+#####
+#
+# Locales
+#
+#####
+
+set num_messages [db_string num_messages { select count(*) from lang_message_keys }]
+
+db_multirow -extend {
+ escaped_locale
+ msg_edit_url
+ locale_edit_url
+ locale_delete_url
+ locale_make_default_url
+ locale_enabled_p_url
+ num_translated_pretty
+ num_untranslated
+ num_untranslated_pretty
+} locales select_locales {
+ select l.locale,
+ l.label as locale_label,
+ l.language,
+ l.default_p as default_p,
+ l.enabled_p as enabled_p,
+ (select count(*) from ad_locales l2 where l2.language = l.language) as num_locales_for_language,
+ (select count(*) from lang_messages lm2 where lm2.locale = l.locale) as num_translated
+ from ad_locales l
+ order by locale_label
+} {
+ set escaped_locale [ns_urlencode $locale]
+ set msg_edit_url "package-list?[export_vars { locale }]"
+ set locale_edit_url "locale-edit?[export_vars { locale }]"
+ set locale_delete_url "locale-delete?[export_vars { locale }]"
+ set locale_make_default_url "locale-make-default?[export_vars { locale }]"
+ set toggle_enabled_p [ad_decode $enabled_p "t" "f" "t"]
+ set locale_enabled_p_url "locale-set-enabled-p?[export_vars { locale {enabled_p $toggle_enabled_p} }]"
+
+ set num_translated_pretty [lc_numeric $num_translated]
+ set num_untranslated [expr $num_messages - $num_translated]
+ set num_untranslated_pretty [lc_numeric $num_untranslated]
}
Fisheye: Tag 1.7 refers to a dead (removed) revision in file `openacs-4/packages/acs-lang/www/admin/locale-delete-confirm.adp'.
Fisheye: No comparison available. Pass `N' to diff?
Index: openacs-4/packages/acs-lang/www/admin/locale-delete.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/admin/locale-delete.adp,v
diff -u -r1.6 -r1.7
--- openacs-4/packages/acs-lang/www/admin/locale-delete.adp 8 Aug 2003 12:21:28 -0000 1.6
+++ openacs-4/packages/acs-lang/www/admin/locale-delete.adp 14 Aug 2003 16:06:20 -0000 1.7
@@ -1,7 +1,15 @@
-
-Delete locale
-@context_bar;noquote@
+
+ Delete locale
+ @context;noquote@
+
Deleting locale @locale_label@ [ @locale@ ]
-
+
+
+
+
+
Index: openacs-4/packages/acs-lang/www/admin/locale-delete.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/admin/locale-delete.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/acs-lang/www/admin/locale-delete.tcl 8 Aug 2003 12:21:28 -0000 1.3
+++ openacs-4/packages/acs-lang/www/admin/locale-delete.tcl 14 Aug 2003 16:06:20 -0000 1.4
@@ -9,64 +9,26 @@
@cvs-id $Id$
} {
locale
-} -properties {
+ confirm_p:optional
}
-set context_bar [ad_context_bar "Deleting Locale"]
-form create locale_deleting
+# We rename to avoid conflict in queries
+set current_locale $locale
+set default_locale en_US
-# It's a request, not a submission of the form
+set locale_label [ad_locale_get_label $current_locale]
+set default_locale_label [ad_locale_get_label $default_locale]
-element create locale_deleting country -label "Country (2 digit ISO-code)" \
- -datatype text -widget text -html { maxLength 2 size 2 }
+set page_title "Delete $locale_label"
+set context [list $page_title]
-element create locale_deleting language -label "Language (2 digit ISO-code)" \
- -datatype text -widget text -html { maxLength 2 size 2 }
-element create locale_deleting label -label "Label" -datatype text
+set form_export_vars [export_vars -form { locale {confirm_p 1} }]
-element create locale_deleting nls_language -label "NLS Language" \
- -datatype text -widget text
-element create locale_deleting nls_territory -label "NLS Territory" \
- -datatype text -widget text
+if { [exists_and_not_null confirm_p] && [template::util::is_true $confirm_p] } {
-element create locale_deleting nls_charset -label "NLS Charset" \
- -datatype text -widget text
-
-element create locale_deleting mime_charset \
- -label "MIME Charset" -datatype text
-
-element create locale_deleting default_p -label "Default" \
- -datatype text -widget hidden
-
-element create locale_deleting locale -p label "Locale" \
- -datatype text -widget hidden -value $locale
-
-if { [form is_request locale_deleting] } {
-
- # Finish building the form to present to the user
- db_1row select_details_locale "select locale as locale_locale,
- language as locale_language, country as locale_country,
- label as locale_label, nls_language as locale_nls_language,
- nls_territory as locale_nls_territory, nls_charset as locale_nls_charset,
- mime_charset as locale_mime_charset, default_p as locale_default_p
- from ad_locales
- where locale = :locale"
- element set_properties locale_deleting label -value $locale_label
- element set_properties locale_deleting language -value $locale_language
- element set_properties locale_deleting country -value $locale_country
- element set_properties locale_deleting nls_language -value $locale_nls_language
- element set_properties locale_deleting nls_territory -value $locale_nls_territory
- element set_properties locale_deleting nls_charset -value $locale_nls_charset
- element set_properties locale_deleting mime_charset -value $locale_mime_charset
- element set_properties locale_deleting default_p -value $locale_default_p
-
-}
-
-if { [ns_queryexists form:confirm] } {
-
db_transaction {
db_dml delete_messages { delete from lang_messages where locale = :locale }
@@ -77,17 +39,6 @@
}
- forward "index?tab=locales"
-
+ ad_returnredirect "."
+ ad_script_abort
}
-
-if { [form is_valid locale_deleting] } {
-
- # We are receiving a valid submission
- set confirm_data [form export]
-
- append confirm_data ""
-
- set_file "[file dir $__adp_stub]/locale-delete-confirm"
-
-}
Index: openacs-4/packages/acs-lang/www/admin/locale-edit.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/admin/locale-edit.adp,v
diff -u -r1.6 -r1.7
--- openacs-4/packages/acs-lang/www/admin/locale-edit.adp 8 Aug 2003 12:21:28 -0000 1.6
+++ openacs-4/packages/acs-lang/www/admin/locale-edit.adp 14 Aug 2003 16:06:20 -0000 1.7
@@ -1,6 +1,7 @@
-
-Edit locale
-@context_bar;noquote@
+
+ @page_title@
+ @context;noquote@
+ locale_editing.country
Please update the necesary fields and press "Submit"
Index: openacs-4/packages/acs-lang/www/admin/locale-edit.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/admin/locale-edit.tcl,v
diff -u -r1.5 -r1.6
--- openacs-4/packages/acs-lang/www/admin/locale-edit.tcl 8 Aug 2003 12:21:28 -0000 1.5
+++ openacs-4/packages/acs-lang/www/admin/locale-edit.tcl 14 Aug 2003 16:06:20 -0000 1.6
@@ -10,7 +10,6 @@
@cvs-id $Id$
} {
locale
-} -properties {
}
# Get the locale for the user so that we 'spit' the content back in the
@@ -23,7 +22,8 @@
# ns_setformencoding $encoding_charset
# ns_set put [ns_conn outputheaders] "content-type" "text/html; charset=$encoding_charset"
-set context_bar [ad_context_bar "Editing Locale"]
+set page_title "Edit Locale"
+set context [list $page_title]
form create locale_editing
Index: openacs-4/packages/acs-lang/www/admin/locale-make-default.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/admin/locale-make-default.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/acs-lang/www/admin/locale-make-default.tcl 8 Aug 2003 12:21:28 -0000 1.3
+++ openacs-4/packages/acs-lang/www/admin/locale-make-default.tcl 14 Aug 2003 16:06:20 -0000 1.4
@@ -28,4 +28,7 @@
}
+# Flush caches
+util_memoize_flush_regexp {^lang::system::default_locale_not_cached}
+
template::forward "index?tab=locales"
Index: openacs-4/packages/acs-lang/www/admin/locale-new.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/admin/locale-new.adp,v
diff -u -r1.6 -r1.7
--- openacs-4/packages/acs-lang/www/admin/locale-new.adp 22 May 2003 14:05:12 -0000 1.6
+++ openacs-4/packages/acs-lang/www/admin/locale-new.adp 14 Aug 2003 16:06:20 -0000 1.7
@@ -1,6 +1,7 @@
-
-Create new locale
-@context_bar;noquote@
+
+ @page_title@
+ @context;noquote@
+ locale_creation.country
Please fill in the fields to create a new locale.
Index: openacs-4/packages/acs-lang/www/admin/locale-new.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/admin/locale-new.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/acs-lang/www/admin/locale-new.tcl 17 Feb 2003 23:04:07 -0000 1.3
+++ openacs-4/packages/acs-lang/www/admin/locale-new.tcl 14 Aug 2003 16:06:20 -0000 1.4
@@ -7,13 +7,13 @@
@author Bruno Mattarollo
@creation-date 15 march 2002
@cvs-id $Id$
-} {
-} -properties {
}
+
set locale_user [ad_conn locale]
-set context_bar [ad_context_bar "Creation of Locales"]
+set page_title "Create Locale"
+set context [list $page_title]
form create locale_creation
@@ -114,9 +114,9 @@
db_dml insert_locale "insert into ad_locales (
locale, language, country, variant, label, nls_language,
- nls_territory, nls_charset, mime_charset, default_p) values (
+ nls_territory, nls_charset, mime_charset, default_p, enabled_p) values (
:locale, :language, :country, NULL, :label, :nls_language,
- :nls_territory, :nls_charset, :mime_charset, :default_p)"
+ :nls_territory, :nls_charset, :mime_charset, :default_p, 'f')"
}
forward "index?tab=locales"
Index: openacs-4/packages/acs-lang/www/admin/locale-set-enabled-p.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/admin/locale-set-enabled-p.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/acs-lang/www/admin/locale-set-enabled-p.tcl 8 Aug 2003 12:21:28 -0000 1.1
+++ openacs-4/packages/acs-lang/www/admin/locale-set-enabled-p.tcl 14 Aug 2003 16:06:20 -0000 1.2
@@ -12,5 +12,9 @@
db_dml set_enabled_p { update ad_locales set enabled_p = :enabled_p where locale = :locale }
-ad_returnredirect .
+# Flush caches
+util_memoize_flush_regexp {^lang::system::default_locale_not_cached}
+util_memoize_flush_regexp {^lang::system::get_locales}
+
+ad_returnredirect .
ad_script_abort
Fisheye: Tag 1.3 refers to a dead (removed) revision in file `openacs-4/packages/acs-lang/www/admin/locales-tabs.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.4 refers to a dead (removed) revision in file `openacs-4/packages/acs-lang/www/admin/locales.adp'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.4 refers to a dead (removed) revision in file `openacs-4/packages/acs-lang/www/admin/locales.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.6 refers to a dead (removed) revision in file `openacs-4/packages/acs-lang/www/admin/localized-message-new-2.adp'.
Fisheye: No comparison available. Pass `N' to diff?
Index: openacs-4/packages/acs-lang/www/admin/localized-message-new.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/admin/localized-message-new.adp,v
diff -u -r1.6 -r1.7
--- openacs-4/packages/acs-lang/www/admin/localized-message-new.adp 22 May 2003 14:05:12 -0000 1.6
+++ openacs-4/packages/acs-lang/www/admin/localized-message-new.adp 14 Aug 2003 16:06:20 -0000 1.7
@@ -1,20 +1,8 @@
-
- New Localized Messages
- @context_bar;noquote@
+
+ Edit a message
+ @context;noquote@
+ message_new.message_key
-
+
-
-
Please, submit a valid locale.
-
-
-
-
-
Locale: @locale_label@ [ @locale_user@ ]
-
-
-
-
-
-
Index: openacs-4/packages/acs-lang/www/admin/localized-message-new.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/admin/localized-message-new.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/acs-lang/www/admin/localized-message-new.tcl 8 Aug 2003 12:21:28 -0000 1.3
+++ openacs-4/packages/acs-lang/www/admin/localized-message-new.tcl 14 Aug 2003 16:06:20 -0000 1.4
@@ -15,97 +15,90 @@
}
-# We check that this request is coming for the system wide default
-# locale. If not, we can't allow the creation of a new localized
-# message.
+# We rename to avoid conflict in queries
+set current_locale $locale
+set default_locale en_US
-if {[info exists locale]} {
- set locale_user $locale
-} else {
- set locale_user [ad_conn locale]
-}
+set locale_label [ad_locale_get_label $current_locale]
+set default_locale_label [ad_locale_get_label $default_locale]
-set default_locale en_US
+set page_title "Create New Message"
+set context [list [list "package-list?[export_vars { locale }]" $locale_label] \
+ [list "message-list?[export_vars { locale package_key show }]" $package_key] \
+ $page_title]
-if { $locale_user != $default_locale } {
- # ooops!
- # We should let the user know about this ... shouldn't we? noooooo... :)
- set encoded_locale [ns_urlencode $locale_user]
- ad_returnredirect "display-grouped-messages?locale=$encoded_locale"
-}
-set locale_label [ad_locale_get_label $locale_user]
-append return_url "display-grouped-messages?locale=" [ns_urlencode $locale_user]
+# We check that this request is coming for the system wide default
+# locale. If not, we can't allow the creation of a new localized
+# message.
-set tab [ns_urlencode "localized-messages"]
+if { ![string equal $current_locale $default_locale] } {
+ ad_return_error "Can only create messages in the default locale" "Can only create messages in the default locale"
+ ad_script_abort
+}
-set context_bar [ad_context_bar [list "index?tab=$tab" "Locales & Messages"] \
- [list "display-grouped-messages?tab=$tab&locale=$locale" "Listing"] \
- "New"]
+append return_url "message-list?[export_vars { locale package_key }]"
-template::form create message_new
+form create message_new
-template::element create message_new package_key_display -label "Package" -datatype text \
+element create message_new package_key_display -label "Package" -datatype text \
-widget inform -value $package_key
-template::element create message_new message_key -label "Message key" -datatype text -widget text
+element create message_new message_key -label "Message key" -datatype text -widget text -html { size 50 }
-template::element create message_new message -label "Message" -datatype text \
+element create message_new message -label "Message" -datatype text \
-widget textarea -html { rows 6 cols 40 }
-template::element create message_new package_key -datatype text -widget hidden
+element create message_new package_key -datatype text -widget hidden
# The two hidden tags that we need to pass on the key and language to the
# processing of the form
-template::element create message_new locale -label "locale" -datatype text -widget hidden
+element create message_new locale -label "locale" -datatype text -widget hidden
-if { [template::form is_request message_new] } {
+if { [form is_request message_new] } {
- template::element set_properties message_new package_key -value $package_key
- template::element set_properties message_new locale -value $locale_user
+ element set_properties message_new package_key -value $package_key
+ element set_properties message_new locale -value $current_locale
} else {
# We are not getting a request, so it's a post. Get and validate
# the values
- template::form get_values message_new
+ form get_values message_new
# We have to check the format of the key submitted by the user,
# We can't accept whitespaces or tabs, only alphanumerical and "-",
# "_" or "." characters. The 1st character can't be a "."
if { [regexp {[^[:alnum:]\_\-\.\?]} $message_key] } {
# We matched for a forbidden character
- template::element set_error message_new message_key \
+ element set_error message_new message_key \
"Key can only have alphanumeric or \"-\", \"_\", \".\" or \"?\" characters"
}
if { [string length $message_key] >= 200 } {
# Oops. The length of the key is too high.
- template::element set_error message_new key \
+ element set_error message_new key \
"Key can only have less than 200 characters"
}
}
-if { [template::form is_valid message_new] } {
+if { [form is_valid message_new] } {
# We get the values from the form
- template::form get_values message_new package_key
- template::form get_values message_new message_key
- template::form get_values message_new locale
- template::form get_values message_new message
+ form get_values message_new package_key message_key locale message
# We use the acs-lang registration of a translation. Simple, eh?
lang::message::register $locale $package_key $message_key $message
set escaped_locale [ns_urlencode $locale]
- template::forward $return_url
+ forward $return_url
}
Fisheye: Tag 1.3 refers to a dead (removed) revision in file `openacs-4/packages/acs-lang/www/admin/localized-messages.adp'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.3 refers to a dead (removed) revision in file `openacs-4/packages/acs-lang/www/admin/localized-messages.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/acs-lang/www/admin/lookups.adp'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/acs-lang/www/admin/lookups.tcl'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 1.7 refers to a dead (removed) revision in file `openacs-4/packages/acs-lang/www/admin/master.adp'.
Fisheye: No comparison available. Pass `N' to diff?
Index: openacs-4/packages/acs-lang/www/admin/message-list-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/admin/Attic/message-list-oracle.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/www/admin/message-list-oracle.xql 14 Aug 2003 16:06:20 -0000 1.1
@@ -0,0 +1,29 @@
+
+
+
+ oracle8.1.6
+
+
+
+
+ select lm1.message_key,
+ lm1.message as default_message,
+ lm2.message as translated_message,
+ lmk.description
+ from lang_messages lm1,
+ lang_messages lm2,
+ lang_message_keys lmk
+ where lm1.locale = :default_locale
+ and lm2.locale (+) = :locale
+ and lm2.message_key (+) = lm1.message_key
+ and lm2.package_key (+) = lm1.package_key
+ and lm1.message_key = lmk.message_key
+ and lm1.package_key = lmk.package_key
+ and lm1.package_key = :package_key
+ $where_clause
+ order by upper(lm1.message_key), lm1.message_key
+
+
+
+
+
Index: openacs-4/packages/acs-lang/www/admin/message-list-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/admin/Attic/message-list-postgresql.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/www/admin/message-list-postgresql.xql 14 Aug 2003 16:06:20 -0000 1.1
@@ -0,0 +1,28 @@
+
+
+
+postgresql7.1
+
+
+
+
+ select lm1.message_key,
+ lm1.message as default_message,
+ lm2.message as translated_message,
+ lmk.description
+ from lang_messages lm1 left outer join
+ lang_messages lm2 on (lm2.locale = :locale and lm2.message_key = lm1.message_key and lm2.package_key = lm1.package_key),
+ lang_message_keys lmk
+ where lm1.locale = :default_locale
+ and lm1.package_key = :package_key
+ and lm1.message_key = lmk.message_key
+ and lm1.package_key = lmk.package_key
+ $where_clause
+ order by upper(lm1.message_key), lm1.message_key
+
+
+
+
+
+
+
Index: openacs-4/packages/acs-lang/www/admin/message-list.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/admin/message-list.adp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/www/admin/message-list.adp 14 Aug 2003 16:06:20 -0000 1.1
@@ -0,0 +1,61 @@
+
+ @page_title@
+ @context;noquote@
+
+
Here's what the configuration looks like at this point:
@@ -56,7 +56,7 @@
-
+
"#00bb00""red">
Does it look like the OpenACS timezone setting above is correct:
@@ -88,53 +88,42 @@
- You can use the form below to tell ACS what timezone Oracle is
+ You can use the form below to tell ACS what timezone your database is
operating in. (There does not appear to be a nice way to ask the
database this question automatically).
-
-
-
- Based on the UTC time retrieved from timeanddate.com, we believe that your server is set to one of the following timezones:
-
-
-
+
+
+ Set Timezone:
+
+
- In case we're wrong, you can pick another timezone here:
+
-
-
- Set Timezone:
+
-
-
-
-
-
-
-
-
+
Index: openacs-4/packages/acs-lang/www/admin/set-system-timezone.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/admin/set-system-timezone.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/acs-lang/www/admin/set-system-timezone.tcl 8 Aug 2003 12:21:28 -0000 1.3
+++ openacs-4/packages/acs-lang/www/admin/set-system-timezone.tcl 14 Aug 2003 16:06:20 -0000 1.4
@@ -2,7 +2,8 @@
ad_page_contract {
Set the acs-lang system parameter which says what the local timezone offset is
} {
- {timezone ""}
+ {timezone_all ""}
+ {timezone_recommended ""}
} -properties {
page_title
system_timezone
@@ -17,11 +18,14 @@
ad_script_abort
}
-if {![empty_string_p $timezone]} {
- lang::system::set_timezone $timezone
+if { ![empty_string_p $timezone_recommended] } {
+ lang::system::set_timezone $timezone_recommended
+} elseif { ![empty_string_p $timezone_all] } {
+ lang::system::set_timezone $timezone_all
}
set page_title "Set System Timezone"
+set context [list $page_title]
set system_timezone [lang::system::timezone]
@@ -70,6 +74,8 @@
set delta_hours [expr round(($sysdate_utc_epoch - $utc_epoch)*4.0 / (60*60)) / 4.0]
set recommended_offset [expr $system_utc_offset + $delta_hours]
+ set recommended_offset_pretty "UTC [format "+%d:%02d" [expr int($recommended_offset)] [expr int($recommended_offset*60) % 60]]"
+
if { $delta_hours == 0 } {
set correct_p 1
} else {