Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/acs-admin/www/apm/version-i18n-process-2.adp~'. Fisheye: No comparison available. Pass `N' to diff? Index: openacs-4/packages/acs-admin/www/apm/version-i18n-process-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/version-i18n-process-2.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-admin/www/apm/version-i18n-process-2.tcl 9 Oct 2002 16:03:50 -0000 1.1 +++ openacs-4/packages/acs-admin/www/apm/version-i18n-process-2.tcl 10 Oct 2002 14:34:38 -0000 1.2 @@ -46,7 +46,7 @@ } if { [llength $text_untouched_list] > 0 } { - append processing_html_result "
[llength $text_untouched_list] pieces of text were left untouched. Please take note of these texts and do any necessary translations by manually inserting <#message_key text#> tags in the adp file (the message keys should contain only letters and underscores). You may then reload this page. The texts to consider for translation are:
" + append processing_html_result "
[llength $text_untouched_list] pieces of text were left untouched. Please take note of these texts and do any necessary translations by manually inserting <#message_key text#> tags in the adp file (the message keys should contain only letters and underscores, the text in the tag must have greater than and lesser than signs HTML quoted). At a later stage you can then run the action \"Replace tags with text and insert into catalog\" on the file. The texts to consider for translation are:
" } else { append processing_html_result "
[llength $text_untouched_list] pieces of text were left untouched." } @@ -71,7 +71,7 @@ ns_log Notice "Replacing tags in file $adp_file with keys and doing insertion into message catalog" append processing_html_result "

Message tag replacements for $adp_file

" - set number_of_replacements [lang::util::extract_keys_from_adps $adp_file] + set number_of_replacements [lang::util::replace_adp_message_tags_with_lookups $adp_file] append processing_html_result "Did $number_of_replacements replacements, any further details are in the log file" } Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/acs-admin/www/apm/version-i18n-process-2.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-admin/www/apm/version-i18n-process.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-admin/www/apm/version-i18n-process.tcl~'. Fisheye: No comparison available. Pass `N' to diff? 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.1 -r1.2 --- openacs-4/packages/acs-admin/www/apm/version-i18n.adp 9 Oct 2002 16:03:50 -0000 1.1 +++ openacs-4/packages/acs-admin/www/apm/version-i18n.adp 10 Oct 2002 14:34:38 -0000 1.2 @@ -38,7 +38,10 @@

To the best of our knowledge there is no harm in running those -actions multiple times on files. +actions multiple times on files. Before an adp file is modified it will be backed up to +a file with the name of the original file with the ending .orig appended to it (i.e. +www/a-file.adp is backed up to www/a-file.adp.orig). However +if such an .orig file already exists no backup is done.

@@ -56,12 +59,27 @@

-Any pieces of text that our script could not automatically extract, for example pieces of text with embedded adp variables (i.e. \@var_name\@), will be listed on the result page. Make sure to take note of these texts and translate them manually. Suppose for example +Any pieces of text that our script finds that it could not automatically extract, for example pieces of text with embedded adp variables (i.e. \@var_name\@), will be listed on the result page. Make sure to take note of these texts and translate them manually. Suppose for example that our script tells you that it left the text "Forum \@forum_name\@" untouched. What you should do then is to edit the corresponding adp file and manually replace that text with something like "<#Forum Forum#> \@forum_name\@". After you have made all such manual edits you can simply run the second action labeled "Replace tags with keys and insert into catalog".

+

+Note: running this action will not find translatable text within HTML or adp tags on +adp pages (i.e. text in alt tags of images), nor will it find translatable text in tcl files. Such texts will have to be found manually. +If those texts are in adp files they are best replaced with the <#message_key text#> tags that +can be extracted by the action described below. Here are some commands that we used on Linux to look for texts in +adp pages not found by the script: + +

+# List image tags, look for alt attributes with literal text
+find -iname '*.adp'|xargs egrep -i '<img'
+# List submit buttons, look for text in the value attribute 
+find -iname '*.adp'|xargs egrep -i '<input[^>]*type="?submit'
+
+

+

Replace tags with keys and insert into catalog

If selected, this action will be executed after the "Replace text with tags" action. It will replace any occurence of the temporary <#message_key text#> tags with \#message_key\# lookups in the adp files and insert the corresponding Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/acs-admin/www/apm/version-i18n.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-admin/www/apm/version-i18n.tcl~'. Fisheye: No comparison available. Pass `N' to diff?