Index: openacs-4/packages/acs-admin/www/apm/version-i18n.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/version-i18n.adp,v diff -u -r1.14 -r1.15 --- openacs-4/packages/acs-admin/www/apm/version-i18n.adp 15 Aug 2003 14:30:10 -0000 1.14 +++ openacs-4/packages/acs-admin/www/apm/version-i18n.adp 16 Oct 2003 13:17:20 -0000 1.15 @@ -53,6 +53,35 @@ prepositions.
+
+ In adp files message lookups are always done with the syntax \#package_key.message_key\#
. In Tcl
+ files all message lookups *must* be on either of the following formats:
+
+
[_ package_key.message_key]
- The message key and package key used here must be string literals, they can't result from variable evaluation.
+ [lang::message::lookup $locale package_key.message_key]
- The message key and package key used here must be string literals, they can't result from variable evaluation.
+ [lang::util::localize $var_with_embedded_message_keys]
- In this case the message keys in the variable var_with_embedded_message_keys
must appear as string literals \#package_key.message_key\#
somewhere in the code. Here is an example of a dynamic lookup:
+
+ + set message_key_array { + dynamic_key_1 \#package_key.message_key1\# + dynamic_key_2 \#package_key.message_key2\# + } + + set my_text [lang::util::localize $message_key_array([get_dynamic_key])] ++ +