Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Localization - Automating Button Text + Button Width

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robert Cramer - 10 Mar 2008 21:55 GMT
I'm looking to "internationalize" a new ASP.NET application (.NET 3.5) and
I'm considering various localization issues. In particular, the default
languagte will be English, but when localizing for some cultures, the text
will of course be longer than the English equivalent.

With respect to "buttons" (gif/jpeg files) in particular - rather than
storing buttons for each culture, I was wanting to know if a reasonable
alternative (in terms of functionality and performance) would be to store
the button text per culture, and then insert the correct text into a button
at runtime - adjusting the width of the button (gif/jpeg) as necessary. The
final setup I'm considering is (1) having a bunch of gif/jpg files that
serve as "button templates" - and then (2) at runtime, modify the gif/jpg
file so as to insert the requisite text, per the desired language into the
button before sending it down to the browser.

This assumes the layout of the pages could gracefully handle the varying
widths of the buttons. The languages to be supported include English/US (the
default), German, and French.

Thoughts? Opinions?

Thanks!
bruce barker - 11 Mar 2008 01:14 GMT
its a fine approach.

the only downside is the performance. asp.net is an order of magnitude
slower then iis for serving up images. also the .net graphics library is
single threaded in several parts (you may not hit) and can cuase more
slowups.

if you are not a high volume site this does not matter.

a compromise would be a build step, that generated the button images
from the resource strings. best of both worlds.

-- bruce (sqlwork.com)

> I'm looking to "internationalize" a new ASP.NET application (.NET 3.5) and
> I'm considering various localization issues. In particular, the default
[quoted text clipped - 18 lines]
>
> Thanks!

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.