473,394 Members | 1,840 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,394 software developers and data experts.

Localization per Dialog

Hello,
I have the following situation when trying to localize my software:

I have BIG solution with about 80 projects. In one of the projects I
have a number of dialogs (the dialog project :-) ). I have decided
that I do not want to use the "form"-mechanism (using the property
"localized=true") for localization since the strings I show are not
that "constant" during the life time of the dialog. Thus, I have to
put the resources in resource files using ResGen, right?

My question is now:
Do I HAVE to have one resource file (per locale) for the entire dialog
project or can I have one res file (per locale) per dialog?? In all
the examples I have seen, there is one resource file per project, not
per dialog/control.... My whish was to make each dialog
"selfcontained" i.e. taking care of its own localization...

Is that possible?

Next question:
Is it possible to call the resGen as a part of the build mech in VS?
It would be so practical if the changes in text files I use as basis
for the res files got "resGened" as a part of the build...

Best Regards
Kallis
Nov 15 '05 #1
2 1912
I'm a bit on a limb here, but I think ...

You need 1 satellite assembly (resource file) per culture other than the
default one in your project.
Which one is actually loaded is based on the cultureinfo when you run the
dialog (so you only need a single dialog). Visual studio is fully capable
of doing this.

I suspect you could give each one it's own resource file and have the
specific dialog load its own resource, but it sounds a bit like a overkill
compared since you would still have just as many resource files (not sure
if the satellite assemblies are complete resource files) and an plenty
dialogs to keep track of, compared to a single dialog.

I think the point of localization is actually to hide the locale handling
from the program completely. The only thing it needs to know is which
resource file to read. And changing specific culture text in Visual Studio
is very easy.

Sorry, not familiar with resgen at all, I only did localization a couple
of times as a test, in Visual Studio.
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #2
> I have BIG solution with about 80 projects. In one of the projects I
have a number of dialogs (the dialog project :-) ). I have decided
that I do not want to use the "form"-mechanism (using the property
"localized=true") for localization since the strings I show are not
that "constant" during the life time of the dialog. Thus, I have to
put the resources in resource files using ResGen, right?


My advice would be to keep them in the original forms.
This will have two main advantages:
- give some context information for the translators, since most
translation tools can offer a preview of the dialog being translated
- you have to resize the forms after translation.

In general, <<not that "constant">> dialogs are a pretty bad idea
from internationalization perspective.

--
Mihai
-------------------------
Replace _year_ with _ to get the real email
Nov 15 '05 #3

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

Similar topics

0
by: Daogang Cao | last post by:
target: Compare VS6 and VS.NET application, to find a easy way to set dialog right to left. 1, VS6: When localize a Win32 application into Hebrew version, I set the dialog and other...
6
by: Rental | last post by:
I'm having the sam problem as described below with the Localization toolkit. Does anyone know if there is a solution to this problem. --->When attempting to generate resource dlls with...
2
by: Julia | last post by:
Hi, We want to migrate out asp application to asp.net and take advantage on localization. I want to ask how it is advice to structure the site directory I am going to use resource only...
8
by: Olivier Matrot | last post by:
I encounter a problem with Localization features in ASP.NET 2.0. Is seems that the framework is not able to manage neutral cultures such as 'fr', or 'de'. Those are the culture sent by default from...
5
by: CMM | last post by:
I don't seem to "get" ASP.NET 2.0's Localization features. I've read up on everything... and of course, everything is explained in cursory softball terms- not any "real-world" usage way. I hope...
2
by: bruno | last post by:
I need to localize my ASP.NET app and I just used "Tools" --"generate local resources" command and everything works fine in my WebForms. Resource file name is: MyWebForm.aspx.resx under a subDir...
0
by: shapper | last post by:
Hello, Sometime ago I followed an article (I believe MSDN) related with localization in Asp.Net 2.0. To make pages localization I create a class named Localization: 1 Public Class...
3
by: Corey B | last post by:
I have an ASP.NET application that was built in ASP.NET v1.1. It has a SQL Server back end database. I have been asked to provide an estimate for the level of effort required to produce a Chinese...
3
by: Computer Guru | last post by:
I have a VB.NET 2005 application with several forms and a couple hundred "strings." I've been looking into all the localization improvements in VB.NET, and I can't seem to find anything that...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.