473,766 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

2 New Member
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 1796
tlhintoq
3,525 Recognized Expert Specialist
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 NumberDecimalCh aracter, but instead get them from this namespace.
Oct 19 '09 #2
paragdi
2 New Member
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
6526
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. This is easy to do for the majority of the text on a form. I just put the following code in Form_Load: If language = “English” then
0
1627
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. ó, é, ñ) and they doesn't come out right. I use RedHat 8 and it is installed with Spanish locale. LANG is "es_ES.UTF-8".
38
5739
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 find an answer to this question (don't find it in the W3C_char_entities document). -- Haines Brown brownh@hartford-hwp.com
5
15867
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 help will be appreciated..
5
3067
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
2382
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 session variable as we need to be able to swicth language regardless of the browser settings. Does the asp.net calendar control support multi-language? If so - how? Thanks in advance,
48
3376
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 "toupper" function imposes a further constrait in that the value passed to it must be representable as a unsigned char. (If C does not require all character values to be positive, then again, this constrait too escapes me... ) Let's say we have the...
12
3332
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. I need a simple script in Python that grab all Records from a MySql table and print in the pdf file. The languages stored in my db are about 25 and they are: Greek English French Hungarian Italian Lithuanian Dutch Portuguese
1
2738
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 supports multilanguage through .resx file, but I can't find a good example that explains me how to do this. I appreciate very much if you can point me to good documentation or examples, or if you can give me some tips. Regards Paolo
0
9568
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, 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...
0
10168
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, 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...
0
10008
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9837
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 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...
0
5279
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3929
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.