As you know (if you're checking up this blog once on a while) or now, I am leading the technologic part of an application that we're working on the last 6 months, and this application (web) is multi-lingual.
The case: In order to read properly some configuration to the application, we are using an XML that represents some flow steps, for example:
<activePages> <page url="<some url>" ordinal="1" isInitial="true" /> <page url="<some url>" ordinal="2" /> <page url="<some url>" ordinal="2.1" type="US" /> <page url="<some url>" ordinal="2.2" /></activePages>
This XML structure is being read into an object that need to be saved in the application output cache for further usage. As you can see, the 'ordinal' field need to be converted into a double (or float) member in the cache's memory object.
While doing some Unit Testing on the application and changing the culture on runtime into French (or other European Language), the XML read action was failed and threw an exception.
Is'nt it Strange? In fact no! After some googling I found that the European cultures/ languages numeration syntax is different than the US of the Hebrew, for example 1.1 will be written as 1,1 using the European language.
At least (as an addition to the bug resolution) I learned something new regarding enumeration... ;)
Remember Me
Page rendered at 11/21/2008 5:08:18 PM (Jerusalem Standard Time, UTC+02:00) Theme Design by Aaron Yuen
Powered by: newtelligence dasBlog 1.8.5223.2
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.
© Copyright 2008, Eran Nachum
E-mail