473,407 Members | 2,314 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,407 software developers and data experts.

Multilanguage mathematical application and "," to "." conversion in Spanish in VB.NET

Hi Experts!
I am developing heavy mathematical engineering windows application in VB.NET (VS2005) with MSAccess Db. This application has resource files in English, Spanish and German Language. I have same setup to run in all these 3environment Windows XPs. In English, calculations are perfect; but in Spanish ',' is treated as '.' and '.' is treated as ',' e.g. 12.24 in EN is '12,24' in Spanish. I somehow managed to do it by manually replacing ',' by '.' and vice versa; but this is now not manageable since program is expading like anything. I saved number in DB while installing. User selects his language and so I check, if its Spanish, I explicitely replace "." in labels and text in TextBox to ",".
Please help me get this done. You will need Spanish locale XP and English locale XP to understand this problem.
Even in Spanish Office Excel (22/7) will come to (3,14)

Thanks for your help in advance.
With Regards,
Parag DI
Oct 19 '09 #1
2 1779
tlhintoq
3,525 Expert 2GB
Ah the joys of globalization.
Hey, speeking of globalizating of globalization, there is an entire namespace dedicated to it.
http://msdn.microsoft.com/en-us/libr...alization.aspx

What you want to do is NOT hardcode values like the NumberDecimalCharacter, but instead get them from this namespace.
Oct 19 '09 #2
Thanks for your quick reply!!
This is great! Let me learn how to do this.
I will appreciate, if you can give me sample code, let it be for couple of labels which can change in English, Spanish and German language, please.
I have all 3 OS installed with my Virtual PC.
Thanks for your co-operation in advance..

With Regards,
Parag DI
Oct 27 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: smjmitchell | last post by:
Hi, I am writing an application in VB6.0 that will have the option to select the language. For instance when Spanish is selected all the text on the program interface will display in Spanish. ...
0
by: Pedro Hernandez | last post by:
Hello! I have some (many) text files produced on windows system that I need to process a bit, so I wrote a perl script to do the job. The files contains characters used in Spanish (e.g. ó, é,...
38
by: Haines Brown | last post by:
I'm having trouble finding the character entity for the French abbreviation for "number" (capital N followed by a small supercript o, period). My references are not listing it. Where would I...
5
by: Ahmet AKGUN | last post by:
Hi; How can I create multylanguage windows forms in c# ? I mean is it possible to change all resource language (button text, menus etc.) from english to spanish with a small change ? any...
5
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, ... )
3
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...
48
by: Frederick Gotham | last post by:
The "toupper" function takes an int as an argument. That's not too irrational given that a character literal is of type "int" in C. (Although why it isn't of type "char" escapes me... ) The...
12
by: Perseo | last post by:
Hi guys, I'm disprate with the Pdf Unicode. I try to create a class using ufpdf but some chars are not correct and now I would like try Python because a friend tolds me that it's very powerful....
1
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...
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?
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:
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
Oralloy
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,...
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
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...
0
agi2029
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,...
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.