[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

No Subject



I am doing something like this on all of my templates (.wml - about 50 of them):

#!wml -o (ALL-LANG_*)uLANG_US:/home/philip/wml/common/us/tos.htm \
 -o (ALL-LANG_*)uLANG_JP:/home/philip/wml/common/jp/tos.htm \
 -o (ALL-LANG_*)uLANG_DE:/home/philip/wml/common/de/tos.htm \
 -o (ALL-LANG_*)uLANG_FR:/home/philip/wml/common/fr/tos.htm

#use wml::std::lang

#include '/home/philip/wml/common/translation/define_language.txt'
#include '/home/philip/wml/common/translation/text_tos.txt'

And the text_tos.txt looks like:

<define-tag text_terms_of_use whitespace=delete>
<us: Terms of Use>
<jp: Blah blah blah>
<de: Blah blah blah>
<fr: Blah blah blah>
</define-tag>

My problem is, everytime when I add a new language, I have to add a new line to the wml file, let's say, Chinese (cn):

#!wml -o (ALL-LANG_*)uLANG_US:/home/philip/wml/common/us/tos.htm \
 -o (ALL-LANG_*)uLANG_JP:/home/philip/wml/common/jp/tos.htm \
 -o (ALL-LANG_*)uLANG_DE:/home/philip/wml/common/de/tos.htm \
 -o (ALL-LANG_*)uLANG_FR:/home/philip/wml/common/fr/tos.htm \
 -o (ALL-LANG_*)uLANG_FR:/home/philip/wml/common/cn/tos.htm

#use wml::std::lang

#include '/home/philip/wml/common/translation/define_language.txt'
#include '/home/philip/wml/common/translation/text_tos.txt'

But I have got more than 50 files to add this line. Is there anyway I can avoid that??
-- 
Get your free email from www.doramail.com with 30 Megs of disk space in webhosting and e-mail storage!

powered by OutBlaze
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com