Index: openacs-4/packages/acs-lang/acs-lang.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/acs-lang.info,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/acs-lang/acs-lang.info 20 Apr 2001 20:51:08 -0000 1.1
+++ openacs-4/packages/acs-lang/acs-lang.info 2 May 2001 20:14:38 -0000 1.2
@@ -40,13 +40,29 @@
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
@@ -57,16 +73,24 @@
+
+
+
+
+
+
+
+
Index: openacs-4/packages/acs-lang/tcl/lang-init-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/tcl/Attic/lang-init-oracle.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/tcl/lang-init-oracle.xql 2 May 2001 20:15:34 -0000 1.1
@@ -0,0 +1,14 @@
+
+
+
+
+
+ select key
+ ,rtrim(lang) as lang
+ ,message
+ from lang_messages
+
+
+
+
+
Index: openacs-4/packages/acs-lang/tcl/lang-init-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/tcl/Attic/lang-init-postgresql.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/tcl/lang-init-postgresql.xql 2 May 2001 20:15:34 -0000 1.1
@@ -0,0 +1,13 @@
+
+
+postgresql7.1
+
+
+
+ select key ,trim(trailing from lang) as lang ,message
+ from lang_messages
+
+
+
+
+
\ No newline at end of file
Index: openacs-4/packages/acs-lang/tcl/lang-procs-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/tcl/Attic/lang-procs-oracle.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/tcl/lang-procs-oracle.xql 2 May 2001 20:15:34 -0000 1.1
@@ -0,0 +1,22 @@
+
+
+
+
+
+ update lang_messages set
+ registered_p = 't'
+ ,message = empty_clob()
+ where lang = :lang and key = :key
+ returning message into :1
+
+
+
+
+
+
+ insert into lang_messages (key, lang, message, registered_p)
+ values (:key, :lang, empty_clob(),'t')
+ returning message into :1
+
+
+
Index: openacs-4/packages/acs-lang/tcl/lang-procs.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/tcl/Attic/lang-procs.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/tcl/lang-procs.xql 2 May 2001 20:15:34 -0000 1.1
@@ -0,0 +1,22 @@
+
+
+
+
+
+ update lang_messages set
+ registered_p = 't'
+ ,message = :message
+ where lang = :lang and key = :key
+
+
+
+
+
+
+ insert into lang_messages (key, lang, message, registered_p)
+ values (:key, :lang, :message,'t')
+
+
+
+
+
Index: openacs-4/packages/acs-lang/tcl/locale-procs-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/tcl/Attic/locale-procs-oracle.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/tcl/locale-procs-oracle.xql 2 May 2001 20:15:34 -0000 1.1
@@ -0,0 +1,16 @@
+
+
+
+ oracle8.1.6
+
+
+
+
+ select ( (sysdate - timezone.local_to_utc (:system_timezone, sysdate)) * 24 )
+ from dual
+
+
+
+
+
+
Index: openacs-4/packages/acs-lang/tcl/locale-procs-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/tcl/Attic/locale-procs-postgresql.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/tcl/locale-procs-postgresql.xql 2 May 2001 20:15:34 -0000 1.1
@@ -0,0 +1,16 @@
+
+
+
+ postgresql7.1
+
+
+
+
+ select ( (current_time - timezone_local_to_utc (:system_timezone, current_time)) * 24 )
+
+
+
+
+
+
+
Index: openacs-4/packages/acs-lang/tcl/locale-procs.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/tcl/locale-procs.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/tcl/locale-procs.xql 2 May 2001 20:15:34 -0000 1.1
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+ select mime_charset
+ from ad_locales
+ where locale = :locale
+
+
+
+
+
+
+
+
+ select locale
+ from ad_locales
+ where language = :language
+ and default_p = 't'
+
+
+
+
+
+
+
+
+ select locale
+ from ad_locales
+ where language = :language
+ and default_p = 't'
+
+
+
+
+
+
Index: openacs-4/packages/acs-lang/tcl/localization-procs-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/tcl/Attic/localization-procs-oracle.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/tcl/localization-procs-oracle.xql 2 May 2001 20:15:34 -0000 1.1
@@ -0,0 +1,28 @@
+
+
+
+ oracle8.1.6
+
+
+
+
+ begin
+ :1 := to_char(timezone.utc_to_local(:tz, to_date(:time_value, 'YYYY-MM-DD HH24:MI:SS')), 'YYYY-MM-DD HH24:MI:SS');
+ end;
+
+
+
+
+
+
+
+
+ begin
+ :1 := to_char(timezone.local_to_utc(:tz, to_date(:time_value, 'YYYY-MM-DD HH24:MI:SS')), 'YYYY-MM-DD HH24:MI:SS');
+ end;
+
+
+
+
+
+
Index: openacs-4/packages/acs-lang/tcl/localization-procs-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/tcl/Attic/localization-procs-postgresql.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/tcl/localization-procs-postgresql.xql 2 May 2001 20:15:34 -0000 1.1
@@ -0,0 +1,24 @@
+
+
+
+ postgresql7.1
+
+
+
+
+ select to_char(timezone_utc_to_local(:tz, to_date(:time_value, 'YYYY-MM-DD HH24:MI:SS')), 'YYYY-MM-DD HH24:MI:SS');
+
+
+
+
+
+
+
+
+ select to_char(timezone_local_to_utc(:tz, to_date(:time_value, 'YYYY-MM-DD HH24:MI:SS')), 'YYYY-MM-DD HH24:MI:SS');
+
+
+
+
+
+
Index: openacs-4/packages/acs-lang/tcl/localization-procs.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/tcl/localization-procs.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/tcl/localization-procs.xql 2 May 2001 20:15:34 -0000 1.1
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+ SELECT fractional_digits
+ ,html_entity
+ FROM currency_codes
+ WHERE iso = :currency
+
+
+
+
+
+
+
+ select unique tz, gmt_offset from timezones order by tz
+
+
+
+
+
Index: openacs-4/packages/acs-lang/www/format-test-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/Attic/format-test-oracle.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/www/format-test-oracle.xql 2 May 2001 20:16:19 -0000 1.1
@@ -0,0 +1,13 @@
+
+
+
+ oracle8.1.6
+
+
+
+ SELECT to_char(sysdate, 'YYYY-MM-DD HH24:MI:SS') AS system_time FROM dual
+
+
+
+
+
Index: openacs-4/packages/acs-lang/www/format-test-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/Attic/format-test-postgresql.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/www/format-test-postgresql.xql 2 May 2001 20:16:19 -0000 1.1
@@ -0,0 +1,12 @@
+
+
+postgresql7.1
+
+
+
+ SELECT to_char(current_time, 'YYYY-MM-DD HH24:MI:SS') AS system_time
+
+
+
+
+
\ No newline at end of file
Index: openacs-4/packages/acs-lang/www/set-system-timezone-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/Attic/set-system-timezone-oracle.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/www/set-system-timezone-oracle.xql 2 May 2001 20:16:19 -0000 1.1
@@ -0,0 +1,14 @@
+
+
+
+ oracle8.1.6
+
+
+
+ select to_char(sysdate, 'YYYY-MM-DD
+HH24:MI:SS') from dual
+
+
+
+
+
Index: openacs-4/packages/acs-lang/www/set-system-timezone-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/Attic/set-system-timezone-postgresql.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/www/set-system-timezone-postgresql.xql 2 May 2001 20:16:19 -0000 1.1
@@ -0,0 +1,12 @@
+
+
+postgresql7.1
+
+
+
+ select to_char(current_time, 'YYYY-MM-DD HH24:MI:SS')
+
+
+
+
+
\ No newline at end of file
Index: openacs-4/packages/acs-lang/www/test-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/Attic/test-oracle.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/www/test-oracle.xql 2 May 2001 20:16:19 -0000 1.1
@@ -0,0 +1,13 @@
+
+
+
+ oracle8.1.6
+
+
+
+ SELECT to_char(sysdate, 'YYYY-MM-DD HH24:MI:SS') AS system_time FROM dual
+
+
+
+
+
Index: openacs-4/packages/acs-lang/www/test-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/Attic/test-postgresql.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/www/test-postgresql.xql 2 May 2001 20:16:19 -0000 1.1
@@ -0,0 +1,13 @@
+
+
+
+ postgresql7.1
+
+
+
+ SELECT to_char(current_time, 'YYYY-MM-DD HH24:MI:SS') AS system_time
+
+
+
+
+
Index: openacs-4/packages/acs-lang/www/timezone-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/Attic/timezone-oracle.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/www/timezone-oracle.xql 2 May 2001 20:16:19 -0000 1.1
@@ -0,0 +1,13 @@
+
+
+
+ oracle8.1.6
+
+
+
+ SELECT to_char(sysdate, 'YYYY-MM-DD HH24:MI:SS') AS system_time FROM dual
+
+
+
+
+
Index: openacs-4/packages/acs-lang/www/timezone-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/Attic/timezone-postgresql.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/www/timezone-postgresql.xql 2 May 2001 20:16:19 -0000 1.1
@@ -0,0 +1,12 @@
+
+
+postgresql7.1
+
+
+
+ select to_char(current_time, 'YYYY-MM-DD HH24:MI:SS') AS system_time
+
+
+
+
+
\ No newline at end of file