Index: openacs-4/packages/acs-lang/www/admin/index.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/admin/index.adp,v
diff -u -r1.12 -r1.13
--- openacs-4/packages/acs-lang/www/admin/index.adp 18 Sep 2003 09:14:47 -0000 1.12
+++ openacs-4/packages/acs-lang/www/admin/index.adp 24 Sep 2003 17:20:54 -0000 1.13
@@ -13,6 +13,10 @@
» Change system locale: Current system locale is @system_locale_label@ [ @system_locale@ ]
+
+ » Look up message
+
+
» Change system timezone: Current system timezone is @timezone@
Index: openacs-4/packages/acs-lang/www/admin/lookup.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/admin/lookup.adp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/www/admin/lookup.adp 24 Sep 2003 17:20:54 -0000 1.1
@@ -0,0 +1,19 @@
+
+ @page_title@
+ @context;noquote@
+ lookup.key
+
+
+
+
+ Translated Message
+ blank
+ @message@
+
+
+
+
+ » Edit this message
+
+
+
Index: openacs-4/packages/acs-lang/www/admin/lookup.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/www/admin/lookup.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-lang/www/admin/lookup.tcl 24 Sep 2003 17:20:54 -0000 1.1
@@ -0,0 +1,32 @@
+ad_page_contract {
+ Test message lookup
+}
+
+set page_title "Test Message Lookup"
+set context [list $page_title]
+
+set message_p 0
+
+ad_form -name lookup -form {
+ {key:text
+ {label "Message key"}
+ {help_text "Include package key, as in package-key.message-key"}
+ {html {size 50}}
+ }
+ {locale:text
+ {label "Locale"}
+ {help_text "Can be two-character for language only or five-character full locale"}
+ }
+} -on_submit {
+ # No substitution
+ set message [lang::message::lookup $locale $key {} {} 0]
+
+ set keyv [split $key "."]
+ set package_key [lindex $keyv 0]
+ set message_key [lindex $keyv 1]
+
+ set edit_url [export_vars -base edit-localized-message { package_key locale message_key {return_url [ad_return_url]} }]
+
+ set message_p 1
+}
+