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

Re: adding languages

On Fri, 17 Mar 2000, Siu Chung Lau wrote:

> 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'

> 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):
> But I have got more than 50 files to add this line. Is there anyway I
> can avoid that??

Did you try to put
 -o (ALL-LANG_*)uLANG_US:/home/philip/wml/common/us/%BASE.htm
 -o (ALL-LANG_*)uLANG_JP:/home/philip/wml/common/jp/%BASE.htm
 -o (ALL-LANG_*)uLANG_DE:/home/philip/wml/common/de/%BASE.htm
 -o (ALL-LANG_*)uLANG_FR:/home/philip/wml/common/fr/%BASE.htm
in .wmlrc?

Which is your version of WML?

Denis Barbier
WML Maintainer

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