473,399 Members | 3,656 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

multi-language user interface for an asp page

Hi all,
I have a good question for you. Our company would like to display
Chinese(either simplifiled or traditional version) for all field labels on
any asp page, but customers can enter text/data in English with any fields.
My question is: do I have to make another copy of the program and just change
the field label from English to Chinese (maintain two copies the programs) or
is there an easy way to do it dynamically in classical asp, so I just need
to maintain one program instead of two?
Betty
Jan 27 '07 #1
6 4525
Betty wrote on 27 jan 2007 in
microsoft.public.inetserver.asp.general:
I have a good question for you. Our company would like to display
Chinese(either simplifiled or traditional version) for all field
labels on any asp page, but customers can enter text/data in English
with any fields. My question is: do I have to make another copy of the
program and just change the field label from English to Chinese
(maintain two copies the programs) or is there an easy way to do it
dynamically in classical asp, so I just need to maintain one program
ASP file, not programme, methinks you mean?
instead of two?
<http://groups.google.nl/group/
microsoft.public.inetserver.asp.general/msg/c0cc1d2ebbe4dc9e>

shows how I did this in 2005:

<% =s("Bonjour","Goede morgen","Hi there")%Betty,<br>
<% =s("Voici mon example","Dit is mijn voorbeeld","Whatsay?")%>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 27 '07 #2

"c676228" <be****@community.nospamwrote in message
news:F1**********************************@microsof t.com...
Hi all,
I have a good question for you. Our company would like to display
Chinese(either simplifiled or traditional version) for all field labels on
any asp page, but customers can enter text/data in English with any
fields.
My question is: do I have to make another copy of the program and just
change
the field label from English to Chinese (maintain two copies the programs)
or
is there an easy way to do it dynamically in classical asp, so I just
need
to maintain one program instead of two?
Betty
First step is to convert everything to use UTF-8 encoding.

Second step is to separate as much of the logic in your pages from the code
generating the actual output. Move as much logic into include files.

Third create a anothet set of the 'layout' pages (excluding the new logic
ones) translating the content to the appropriate language.

The problem with attempting to create a 'resource file' of label strings is
that layout often has to change to meet the needs of additional languages
not just the text. At times even graphics which are have obvious meanings
in one culture aren't as effective in another.

If you have managed to separate the layout from the logic then creating and
maintianing a different layout set is no harder than maintaining a set of
label resources.

Maintaining program logic should in the main result in having to make
changes to only one set of pages the logic holding ones.

Anthony.

Jan 27 '07 #3
Hello Betty,

As Anthony has suggested, if you do not want to use multiple copies of the
same application, you will need to use Unicode(such as UTF-8 charset) for
your ASP pages. Also, since ASP doesn't have built-in localization/resource
featrue as ASP.NET, if you want to display ASP pages which will display
text/literal dynamically based on client's culture/region, you can consider
store those text literal in database and render those text(retrieved from
database) at runtime.

In addition, here are some reference discussing on developing globalized
application(include web application) on microsoft's globaldev portal:

#Get World-Ready
http://www.microsoft.com/globaldev/getWR/default.mspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 29 '07 #4
Anthony and Steven,
Very helpful messages. I think for any new development, we should seperate
logic from all label fields on each asp page if we want to have
multi-language capability.
with Response.CodePage=65001 and Reponse.Charset="utf-8" and store all
labels of different languages in database, then like Steve points out the
labels can be displayed dynamically based on the request.
--
Betty
"Steven Cheng[MSFT]" wrote:
Hello Betty,

As Anthony has suggested, if you do not want to use multiple copies of the
same application, you will need to use Unicode(such as UTF-8 charset) for
your ASP pages. Also, since ASP doesn't have built-in localization/resource
featrue as ASP.NET, if you want to display ASP pages which will display
text/literal dynamically based on client's culture/region, you can consider
store those text literal in database and render those text(retrieved from
database) at runtime.

In addition, here are some reference discussing on developing globalized
application(include web application) on microsoft's globaldev portal:

#Get World-Ready
http://www.microsoft.com/globaldev/getWR/default.mspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 29 '07 #5

"c676228" <be****@community.nospamwrote in message
news:76**********************************@microsof t.com...
Anthony and Steven,
Very helpful messages. I think for any new development, we should seperate
logic from all label fields on each asp page if we want to have
multi-language capability.
with Response.CodePage=65001 and Reponse.Charset="utf-8" and store all
labels of different languages in database, then like Steve points out the
labels can be displayed dynamically based on the request.
You need then to take care when designing the layout. What is a short word
in one language may be quite a bit longer in another.
Jan 29 '07 #6
Anthony,
You are right, maybe we need to have multiple versions of style sheet to
apply to different version of label fields. Thank you so much for your
instruction.
--
Betty
"Anthony Jones" wrote:
>
"c676228" <be****@community.nospamwrote in message
news:76**********************************@microsof t.com...
Anthony and Steven,
Very helpful messages. I think for any new development, we should seperate
logic from all label fields on each asp page if we want to have
multi-language capability.
with Response.CodePage=65001 and Reponse.Charset="utf-8" and store all
labels of different languages in database, then like Steve points out the
labels can be displayed dynamically based on the request.

You need then to take care when designing the layout. What is a short word
in one language may be quite a bit longer in another.
Jan 29 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

37
by: ajikoe | last post by:
Hello, Is anyone has experiance in running python code to run multi thread parallel in multi processor. Is it possible ? Can python manage which cpu shoud do every thread? Sincerely Yours,...
4
by: Frank Jona | last post by:
Intellisense with C# and a multi-file assembly is not working. With VB.NET it is working. Is there a fix availible? We're using VisualStudio 2003 Regards Frank
12
by: * ProteanThread * | last post by:
but depends upon the clique: ...
6
by: Joe | last post by:
I have 2 multi-list boxes, 1 displays course categories based on a table called CATEGORIES. This table has 2 fields CATEGORY_ID, CATEGORY_NAME The other multi-list box displays courses based on...
4
by: mimmo | last post by:
Hi! I should convert the accented letters of a string in the correspondent letters not accented. But when I compile with -Wall it give me: warning: multi-character character constant Do the...
5
by: dkelly925 | last post by:
Is there a way to add an If Statement to the following code so if data in a field equals "x" it will launch one report and if it equals "y" it would open another report. Anyone know how to modify...
17
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, Wide character and multi-byte character are two popular encoding schemes on Windows. And wide character is using unicode encoding scheme. But each time I feel confused when...
0
by: Sabri.Pllana | last post by:
We apologize if you receive multiple copies of this call for papers. *********************************************************************** 2008 International Workshop on Multi-Core Computing...
1
by: mknoll217 | last post by:
I am recieving this error from my code: The multi-part identifier "PAR.UniqueID" could not be bound. The multi-part identifier "Salary.UniqueID" could not be bound. The multi-part identifier...
4
by: =?Utf-8?B?SGVucmlrIFNjaG1pZA==?= | last post by:
Hi, consider the attached code. Serializing the multi-dimensional array takes about 36s vs. 0.36s for the single-dimensional array. Initializing the multi-dimensional array takes about 4s...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.