Index: openacs-4/packages/acs-core-docs/www/i18n-convert.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/i18n-convert.adp,v diff -u -r1.1.2.16 -r1.1.2.17 --- openacs-4/packages/acs-core-docs/www/i18n-convert.adp 6 Jan 2017 09:18:41 -0000 1.1.2.16 +++ openacs-4/packages/acs-core-docs/www/i18n-convert.adp 2 Jun 2017 11:12:57 -0000 1.1.2.17 @@ -42,13 +42,13 @@ an xml file.
Replace human-readable text in Tcl files with temporary
-tags. Examine all of the tcl files in the
+tags. Examine all of the Tcl files in the
packages for human-readable text and replace it with temporary
tags. The temporary tags in Tcl are slightly different from those
in ADP. If the first character in the temporary tag is an
underscore (_
), then the
message keys will be auto-generated from the original message text.
-Here is an unmodified tcl file:
+Here is an unmodified Tcl file:set title "Messages for $a(name) in $b(label)" set context [list [list . "SimPlay"] \ [list [export_vars -base case-admin { case_id }] \ @@ -67,7 +67,7 @@
Replace the temporary message tags in Tcl -files. Repeat step 2 for tcl files. Here is +files. Repeat step 2 for Tcl files. Here is the example Tcl file after conversion:
set title [_ simulation.admin_title]
set context [list [list . [_ simulation.SimPlay]] \
@@ -142,7 +142,7 @@
info files and the set of keys in the catalog file are identical.
The scripts below assume that message lookups in adp and info files
are on the format \#package_key.message_key\#, and that message
-lookups in tcl files are always is done with one of the valid
+lookups in Tcl files are always is done with one of the valid
lookups described above. The script further assumes that you have
perl installed and in your path. Run the script like this:
acs-lang/bin/check-catalog.sh
@@ -154,7 +154,7 @@
Replace complicated keys with longer, simpler @@ -350,7 +350,7 @@ string
set title "Patch \"$patch_summary\" is nice."
breaks if the message text retains all of the escaping that was -in the tcl command:
+in the Tcl command:<msg>Patch \"$patch_summary\" is nice.</msg>When it becomes a key, it should be:
<msg>Patch "$patch_summary" is nice.</msg>