[ic] merge (-m) function of the script  .../interchange/bin/localize

John Matecsa interchange-users@icdevgroup.org
Wed Dec 11 16:10:01 2002


How do you use the merge (-m) function of the script
.../interchange/bin/localize?

When I try to use it, the hmtl file is not updated.

Is there a problem with the following merge file?

Locale en_US <<EOF
{
# Lost your password?
"Lost your password?",
undef,


}
EOF

Locale fr_FR <<EOF
{
# Lost your password?
"Lost your password?",
"FRENCH-> Lost your password? <-FRENCH",


}
EOF


Here is a blow by blow of what I did:
=====================================


Marked the text that need to be dual language with [L] tags. For Example:
1. pico login.html
2. insert [L] tags as follows: [L]Lost your password?[/L]
3. save login.html

Ran the following to convert the [L] tags into [LC] tags with French as the
non-default language:
../../../interchange/bin/localize -l en_US -d fr_FR -c login.html

Created the login.txt where the translations will go.
../../../interchange/bin/localize -l en_US -d fr_FR login.html > login.txt
 
Edited login.txt so that the last occurrence of "Lost your password?" is
changed to "FRENCH-> Lost your password? <-FRENCH".
See complete contents of this file earlier in this message.

Attempted to merge the change back into the html file.
../../../interchange/bin/localize -l en_US -d fr_FR -m login.txt login.html

For some reason the changes in login.txt did not get merged back into
login.html. Any ideas why not? 

-- 
John Matecsa <matecsaj@picassofish.com>
Picasso Fish Corporation