CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Developing for foreign languauges - internationalization

Print topic Send  topic

Author Message
David
Posted: 12/24/2003, 3:22 PM

Has anyone here done a project for multiple languages ? I am looking to
build an application which can be displayed in 3 other languages (along with
English). One of these is Japanese. Can you please confirm that CCS does
support the double byte character set ?

Has anyone done an application in CCS which uses multiple foreign languages
? I was thinking about trying to use a session variable which defines the
language for that user, then changes all of the labels and text to the
correct language.

I am thinking the table would look something like :

lang_id label_id text_value
english 102 Good Day
french 102 Bon Jour

The lang_id sets the language for the label, the label_id defines the label
this applies to and the text_value is what the label should say when
rendered.

Assuming this is a good approach, how do I set the label for each page ? My
first guess is to use the CCDLookup to a database, but this would mean a lot
of database activity to render a single page. This does not seem very
efficient. I think codecharge studio uses an XML file for labels, but I have
no idea how to do this in ASP.

Many Thanks

CMonteiro_PT
Posted: 12/25/2003, 10:40 AM

Hi David,

Why don't use another structure like this instead:

label_id text_value_UK Text_value_FR Text_value_JP
102 Good Morning Bon Jour Bla bla bla

and so on.

A hug from Portugal.

--
-----
CM

Turn off your script-blocking feature on your antivirus software, and enjoy
CSS!
-----

"David" <dnb@anysurvey.com.au> escreveu na mensagem
news:bsd72s$2f4$1@news.codecharge.com...
> Has anyone here done a project for multiple languages ? I am looking to
> build an application which can be displayed in 3 other languages (along
with
> English). One of these is Japanese. Can you please confirm that CCS does
> support the double byte character set ?
>
> Has anyone done an application in CCS which uses multiple foreign
languages
> ? I was thinking about trying to use a session variable which defines the
> language for that user, then changes all of the labels and text to the
> correct language.
>
> I am thinking the table would look something like :
>
> lang_id label_id text_value
> english 102 Good Day
> french 102 Bon Jour
>
> The lang_id sets the language for the label, the label_id defines the
label
> this applies to and the text_value is what the label should say when
> rendered.
>
> Assuming this is a good approach, how do I set the label for each page ?
My
> first guess is to use the CCDLookup to a database, but this would mean a
lot
> of database activity to render a single page. This does not seem very
> efficient. I think codecharge studio uses an XML file for labels, but I
have
> no idea how to do this in ASP.
>
> Many Thanks
>
>

FLhr
Posted: 12/28/2003, 5:45 PM

I think that with his approach he can have unlimited languages in the future
without changing the table structure. With the approach below, you would
have to add a column when you add a language.

Carl

"CMonteiro_PT" <geral@NOSPAM.pt> wrote in message
news:bsfav0$jav$1@news.codecharge.com...
> Hi David,
>
> Why don't use another structure like this instead:
>
> label_id text_value_UK Text_value_FR Text_value_JP
> 102 Good Morning Bon Jour Bla bla bla
>
> and so on.
>
> A hug from Portugal.
>
> --
> -----
> CM
>
> Turn off your script-blocking feature on your antivirus software, and
enjoy
> CSS!
> -----
>
> "David" <dnb@anysurvey.com.au> escreveu na mensagem
>news:bsd72s$2f4$1@news.codecharge.com...
> > Has anyone here done a project for multiple languages ? I am looking to
> > build an application which can be displayed in 3 other languages (along
> with
> > English). One of these is Japanese. Can you please confirm that CCS does
> > support the double byte character set ?
> >
> > Has anyone done an application in CCS which uses multiple foreign
> languages
> > ? I was thinking about trying to use a session variable which defines
the
> > language for that user, then changes all of the labels and text to the
> > correct language.
> >
> > I am thinking the table would look something like :
> >
> > lang_id label_id text_value
> > english 102 Good Day
> > french 102 Bon Jour
> >
> > The lang_id sets the language for the label, the label_id defines the
> label
> > this applies to and the text_value is what the label should say when
> > rendered.
> >
> > Assuming this is a good approach, how do I set the label for each page ?
> My
> > first guess is to use the CCDLookup to a database, but this would mean a
> lot
> > of database activity to render a single page. This does not seem very
> > efficient. I think codecharge studio uses an XML file for labels, but I
> have
> > no idea how to do this in ASP.
> >
> > Many Thanks
> >
> >
>
>

Misha Peric
Posted: 01/03/2004, 1:27 PM

Maybe because I always think twice before using a database I would do this
differently. I would make separate php files for every language. Every file
would contain same set of constant declarations. For example:



lang_en.php

define ('SITE_WELCOME', 'Welcome back!');

.



lang_sr.php

define ('SITE_WELCOME', 'Dobrodosli!');

.



Than I would simply include an appropriate lang file. Just an idea


Misha Peric

"David" <dnb@anysurvey.com.au> wrote in message
news:bsd72s$2f4$1@news.codecharge.com...
> Has anyone here done a project for multiple languages ? I am looking to
> build an application which can be displayed in 3 other languages (along
with
> English). One of these is Japanese. Can you please confirm that CCS does
> support the double byte character set ?
>
> Has anyone done an application in CCS which uses multiple foreign
languages
> ? I was thinking about trying to use a session variable which defines the
> language for that user, then changes all of the labels and text to the
> correct language.
>
> I am thinking the table would look something like :
>
> lang_id label_id text_value
> english 102 Good Day
> french 102 Bon Jour
>
> The lang_id sets the language for the label, the label_id defines the
label
> this applies to and the text_value is what the label should say when
> rendered.
>
> Assuming this is a good approach, how do I set the label for each page ?
My
> first guess is to use the CCDLookup to a database, but this would mean a
lot
> of database activity to render a single page. This does not seem very
> efficient. I think codecharge studio uses an XML file for labels, but I
have
> no idea how to do this in ASP.
>
> Many Thanks
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.