Hi,
We're working on what will become a multi-language application, and I
wanted to see if this idea is feasable.
What we're thinking of doing is creating a table to contain all text
of the application and in multiple languages, for example:
Col1 - ID
Col2 - English
Col3 - French
Col4 - Spanish
When the application launches the user selects a language, and both
English and their chosen language will be loaded into a Dictionary in
memory. Then at the Form Load event for each form that loads, it'll
loop through all labels and buttons on the form, search the dictionary
for the given text, which is English, and replace it with the
alternative language text.
For dropdowns being populated by a look-up table, if these are saved
as a dictionary in of themselves, the look-up dictionary could then be
compared to the language dictionary and translated at Form Load as
well.
This is all in theory, but will this work? Also what caveats are we
looking at? I figure if the language dictionary is loaded when the
application launches there won't be too many DB calls.
Thanks --
Alex 3 1831
On Mar 17, 10:32*pm, Alex <sama...@gmail. comwrote:
Hi,
We're working on what will become a multi-language application, and I
wanted to see if this idea is feasable.
What we're thinking of doing is creating a table to contain all text
of the application and in multiple languages, for example:
Col1 - ID
Col2 - English
Col3 - French
Col4 - Spanish
When the application launches the user selects a language, and both
English and their chosen language will be loaded into a Dictionary in
memory. *Then at the Form Load event for each form that loads, it'll
loop through all labels and buttons on the form, search the dictionary
for the given text, which is English, and replace it with the
alternative language text.
For dropdowns being populated by a look-up table, if these are saved
as a dictionary in of themselves, the look-up dictionary could then be
compared to the language dictionary and translated at Form Load as
well.
This is all in theory, but will this work? *Also what caveats are we
looking at? *I figure if the language dictionary is loaded when the
application launches there won't be too many DB calls.
Thanks --
Alex
Should work. But you may also consider XML which is quite popular. INI
files were being used also for multi-language applications IMHO.
You might want to look up "Localizati on" or "Globalizat ion" in the help file
and check other places for those topics.
--
Terry
"Alex" wrote:
Hi,
We're working on what will become a multi-language application, and I
wanted to see if this idea is feasable.
What we're thinking of doing is creating a table to contain all text
of the application and in multiple languages, for example:
Col1 - ID
Col2 - English
Col3 - French
Col4 - Spanish
When the application launches the user selects a language, and both
English and their chosen language will be loaded into a Dictionary in
memory. Then at the Form Load event for each form that loads, it'll
loop through all labels and buttons on the form, search the dictionary
for the given text, which is English, and replace it with the
alternative language text.
For dropdowns being populated by a look-up table, if these are saved
as a dictionary in of themselves, the look-up dictionary could then be
compared to the language dictionary and translated at Form Load as
well.
This is all in theory, but will this work? Also what caveats are we
looking at? I figure if the language dictionary is loaded when the
application launches there won't be too many DB calls.
Thanks --
Alex
Terry,
You might want to look up "Localizati on" or "Globalizat ion" in the help
file
and check other places for those topics.
--
You have ever tried that for this purpose? In my idea works the solution
from the OP much easier.
(And if he uses datasets written and read as XML then is is probably even
more simple)
Localization and Globalization don't give solutions for languages, only for
culture settings as decimals and the way dates are written.
Although the big problem stays how to get the correct equivalents for a
languages, that is not just looking in a dictionary, because a translation
can have a big other meaning then what you think as you are not familiar
with that language.
Beside that is it a hell of a job.
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Kevin |
last post by:
Hi i'm having a problem passing an arrays of controls on a form to a
function or sub. I can use this code for any datatype but when i change
'long' to 'label' in the public sub and i call the sub from a mousedown or
keydown event belonging to an array of labels i get an error saying: "tpye
mismatch, array or user defined type expected".
Public Sub ProcTest(By Ref lngNum() as Long)
lngNum(1) = 2
End Sub
|
by: Bil Muh |
last post by:
Esteemede Developers,
I would like to Thank All of You in advance for your sincere guidances.
I am developing a software using Visual C++ .NET Standard Edition with
Windows Form (.NET) template.
Briefly
--------------------------------------------------------------------------------------------
I need to create dynamically some controls on the forms, and display these
|
by: Terrance |
last post by:
I've built a user control inherited button and I need it to change the
enabled property of all the controls on the form except for the labels and
buttons. I'd like to use this control on other forms to do the same.
I've tried the following:
Dim a as ControlsCollection = Me.Parent.Controls
Dim s as Controls
For Each s in a
|
by: Wolfgang |
last post by:
Dear all,
I've a lot of buttons named button1..button100 and want to change some of there propertys.
Maintaining the overview I'm looking for a possibility for something like:
System::Windows::Forms::Button * Wolfgang;
for (i=1;i<100;i++)
{
Wolfgang = ???;
|
by: tony collier |
last post by:
hi
i have various labels on my page with ID's label_1, label_2 , label_3 etc.
How can i write a loop that sequentially changes their text values to
values i have in an array eg;.
for (i=0;i<max;i++){
label_1.text = labelarray
}
| |
by: jcrouse |
last post by:
I am trying trying to loop through some label controls and setting some
properties for the labels I'm looping through. Currently I am addressing the
labels one at a time with IF...Then logic, like this:
If lblP1JoyUp.BorderStyle = BorderStyle.FixedSingle Then
lblP1JoyUp.Top = 10
|
by: Saso Zagoranski |
last post by:
Hi,
I've developed a Winforms application for a few people. It's a very
basic Form with a few textboxes, comboboxes, buttons, labels and one
PictureView.
With 1024x768 screen resolution the all controls fit perfectly on the screen
(all
of them are visible).
|
by: SerialChick |
last post by:
Hi,
So i created a form called board. and on this form placed a whole heap of labels, buttons and a menu. Now from the menu there is a New Game option. When this is clicked a new form is opened called New Game. once you are finished filling in details the New Game form disappears. The board form is still there, has always been there but now i want certain labels to turn invisible.
so in the board class i have all the VS2005 code making all...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |