R
rzhu
Hi, Guys
I'm a newbie in Perl, and I have this question for web development. To
support different languages, I'm planning to extract all the text
strings from the perl CGI code, and define them in different hashes in
separate file. The idea is that at run time, depending on which
language user select, I can load proper file, hence the proper hash
for that language. Drop those strings into a static template HTML file
(also grouped in different directories for different language). The
ultimate goal is that to add support for a new language, I just have
to create a new file, translate all strings in that hash, stick it
into a new directory, and I'm done. No code mod needed.
The question is, how do I do this in perl? It seems there is not a
perl equivalent of ASP "include". Can anyone help?
Thanks in advance.
R. Zhu
I'm a newbie in Perl, and I have this question for web development. To
support different languages, I'm planning to extract all the text
strings from the perl CGI code, and define them in different hashes in
separate file. The idea is that at run time, depending on which
language user select, I can load proper file, hence the proper hash
for that language. Drop those strings into a static template HTML file
(also grouped in different directories for different language). The
ultimate goal is that to add support for a new language, I just have
to create a new file, translate all strings in that hash, stick it
into a new directory, and I'm done. No code mod needed.
The question is, how do I do this in perl? It seems there is not a
perl equivalent of ASP "include". Can anyone help?
Thanks in advance.
R. Zhu