Hello All
I wanted to know that how can I build an application which takes arabic or
urdu input
I mean when I type something in my applications edit box it writes arabic.
please do let me know about a good tutorial regarding multilanguage support
in dot net applicaitons
Regards
Muhammad Aftab Alam 8 11934
Hello Aftab,
The walkthrough with multilanguage and vb.net looks if it's made by someone
who does not know much about languages.
But using more languages in vb.net is terrible easy.
You choose in the properties from the forms you use the language you want to
use.
Then you can enter the textfield from language and it comes in the resx
files.
When you change for another language, you can enter the other languages
control by control.
Arabic and Urdu is there too.
Cor
Kevin,
Add a .resx file to your project as an embedded resource. Then use the
System.Resources.ResourceManager object to retrieve the strings.
For each language you will need its own .resx.
strings.resx
strings.de.resx
strings.de-DE.resx http://msdn.microsoft.com/library/de...nalization.asp http://msdn.microsoft.com/library/de...gResources.asp http://msdn.microsoft.com/library/de...mework_sdk.asp
Note: I don't have a working sample handy.
Hope this helps
Jay
"Kevin A." <ke*********@antwerpen.be> wrote in message
news:eQ**************@TK2MSFTNGP10.phx.gbl... You choose in the properties from the forms you use the language you
want to use. Then you can enter the textfield from language and it comes in the resx files. When you change for another language, you can enter the other languages control by control. How about the literal strings in the code (in forms, classes...) ? How can you manage them?
Kevin
"Cor" <no*@non.com> schreef in bericht news:3f**********************@reader20.wxs.nl... Hello Aftab, The walkthrough with multilanguage and vb.net looks if it's made by someone who does not know much about languages. But using more languages in vb.net is terrible easy. You choose in the properties from the forms you use the language you
want to use. Then you can enter the textfield from language and it comes in the resx files. When you change for another language, you can enter the other languages control by control. Arabic and Urdu is there too. Cor
Kevin,
Maybe the same for me with your message.
I do not know what for a user important language dependable string can be in
a class, while for a form I gave the answer.
Cor
> I do not know what for a user important language dependable string can be
in a class, while for a form I gave the answer.
For example, a class can have a string that has to be displayed in a message
box,
or strings that have to replace the text already in a control.
Kevin
"Cor" <no*@non.com> schreef in bericht
news:3f***********************@reader20.wxs.nl... Kevin, Maybe the same for me with your message. I do not know what for a user important language dependable string can be
in a class, while for a form I gave the answer. Cor
Kevin,
That is the same as by instance changing a color from a control.
There are programmers who use the Ide to put a control on a form and there
are who write everything themselves.
We are talking about the first ones now.
The set the first color at design time with the Ide.
When they need to change a color in a control on runtime, they will use
code.
So what is the different with changing a text in a control. You have the
tools for it.
Cor
> So what is the different with changing a text in a control. You have the tools for it.
Another example: you have a label that has to display a textual description
of
some speed. Depending on the speed it can display "Slow", "Little slow",
"Average", "Good", "Very good", "Perfect". The best solution to implement
this is to place the label on the form without any text, and assign the text
in
your code. The code should do something like this:
Select Case speed
Case Is < 10
label.Text = "Slow"
Case 11 To 25
label.Text = "Little slow"
Case 26 To 50
label.Text = "Average"
Case 51 To 80
label.Text = "Good"
Case 81 To 110
label.Text = "Very good"
Case Is > 110
label.Text = "Perfect"
End Select
To add multilanguage support to this application, you would need more than
just the IDE and the form's Language property.
You would have to create .resx files for each language/culture and access
them
programmaticly with a RecourceManager object, like Jay B. Harlow said in
this
thread.
Kevin
"Cor" <no*@non.com> schreef in bericht
news:3f***********************@reader21.wxs.nl... Kevin, That is the same as by instance changing a color from a control. There are programmers who use the Ide to put a control on a form and there are who write everything themselves. We are talking about the first ones now. The set the first color at design time with the Ide. When they need to change a color in a control on runtime, they will use code. So what is the different with changing a text in a control. You have the tools for it. Cor
Kevin,
A couple of more examples, that I intend on using in my project, are:
- Localized Descriptions for the property browser, where you inherit from
System.ComponentModel.DescriptionAttribute, localizing the text for display
in the Property window. CategoryAttribute has a similar ability.
- Localized 'categories', effectively a localized enum like class. Think of
enums on steroids ;-)
Even normal enums, you may want to localize if you display the text names to
a user.
Just a thought
Jay
"Kevin A." <ke*********@antwerpen.be> wrote in message
news:ec****************@TK2MSFTNGP12.phx.gbl... So what is the different with changing a text in a control. You have the tools for it. Another example: you have a label that has to display a textual
description of some speed. Depending on the speed it can display "Slow", "Little slow", "Average", "Good", "Very good", "Perfect". The best solution to implement this is to place the label on the form without any text, and assign the
text in your code. The code should do something like this:
Select Case speed Case Is < 10 label.Text = "Slow" Case 11 To 25 label.Text = "Little slow" Case 26 To 50 label.Text = "Average" Case 51 To 80 label.Text = "Good" Case 81 To 110 label.Text = "Very good" Case Is > 110 label.Text = "Perfect" End Select
To add multilanguage support to this application, you would need more than just the IDE and the form's Language property. You would have to create .resx files for each language/culture and access them programmaticly with a RecourceManager object, like Jay B. Harlow said in this thread. Kevin
"Cor" <no*@non.com> schreef in bericht news:3f***********************@reader21.wxs.nl... Kevin, That is the same as by instance changing a color from a control. There are programmers who use the Ide to put a control on a form and
there are who write everything themselves. We are talking about the first ones now. The set the first color at design time with the Ide. When they need to change a color in a control on runtime, they will use code. So what is the different with changing a text in a control. You have the tools for it. Cor
Kevin,
What is the difference with a colour
But the question was to help with a simple start. That I tried.
And I did not mention the resx editor, because when you start with that I
think that most people do like me, stop immediately.
I myself prefer a XML file. That I can reach with the xmldocument.
But that is maybe because I know that well and then it is easy to use.
The benefit from VB.net is that you are not obliged to do things in one way.
But beneath is an example from your question.
(And when you put that in XML it is really easy when you make the language
your first tag)
Cor
Your example can be:
Dim Language As InputLanguage = InputLanguage.DefaultInputLanguage
if language.substring(2) = "en" then
Select Case speed
Case Is < 10
label.Text = "Slow"
Case 11 To 25
label.Text = "Little slow"
Case 26 To 50
label.Text = "Average"
Case 51 To 80
label.Text = "Good"
Case 81 To 110
label.Text = "Very good"
Case Is > 110
label.Text = "Perfect"
End Select
Elseif Language.substrint(2)="kr" then
.......................... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Giovane Calabrese |
last post by:
ok. im try to make a multilanguage system based on that
tutorial :
http://www.123aspx.com/redir.aspx?res=29112
in my aspx pages all text are in labels , and i want to
take the name labels...
|
by: |
last post by:
Could you be more precise? Do you want to print a pre-
defined text or random text? Do you want the user to
select it, or look it up in the regional settings of
windows?
>-----Original...
|
by: Michal Táborský |
last post by:
I am wondering, if it's effective to use text arrays to store
multilanguage information.
We used to do it like this:
CREATE TABLE product (
id serial NOT NULL,
price float4,
...
)
|
by: Stu |
last post by:
Hi,
I am nearing the end of a multilanguage conversion and have just come across
a page which has a calendar control on it that needs translating. The
current language of the site is stored in a...
|
by: HelmutStoneCorner |
last post by:
Hi,
I am connected as a german client to a multilanguage server, Regional
Options: English, US. Western Europe and US. The W2K Server (Terminal)
-version: english(US) runs a french database. My...
|
by: Pitaridis Aristotelis |
last post by:
I would like to make a multilanguage project such a way that I will be able
to give a sample text file to various pepole around the world in order to
translate it in various language. How can I...
|
by: AG |
last post by:
I have seen the samples for multilanguage support regarding what is normally
static content.
Can anyone point me to a good sample for multilanguage support for dynamic
content. Like a gridview...
|
by: paolob |
last post by:
I need to provide multilanguage support to my application. I alredy
writed a multilanguage test application, using VS6 and resource only
dll. Now i'm using Visual Studio 2005, I find out that it...
|
by: Sourcerer |
last post by:
How to implement multilanguage support for a program in VC++ in MSVS .NET?
What I mean by this is how to make texts, such as texts on command buttons,
labels, etc. show in different languages,...
|
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
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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,...
|
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...
|
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...
| |