Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » thousand separator problem
thousand separator problem [message #5067] |
Sat, 02 September 2006 00:38 |
zsolt
Messages: 698 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
Using Hungarian setup and hungarian double formatting (%nl), my app showed squares instead of thousand separators.
I changed the return line of String GetLocaleInfoA(LCID lcid, LCTYPE lctype) in Lang.cpp from
to
return FromSystemCharset(cbuf);
Now it seems to be working well, but I don't know if this is the optimal solution?
|
|
|
|
|
|
Re: thousand separator problem [message #5076 is a reply to message #5067] |
Sat, 02 September 2006 12:00 |
zsolt
Messages: 698 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
Well, I really don't now, which approach is the best.
Both of them has advantages and disadvantages.
Personally I prefer borrowing these things from host system, because this way the user can tweak the language specific things using the host's standard config tools (e.g. Control Panel). And using this approach you, as a programmer, don't have to write a setup tool in the application.
But what if the host system doesn't support e.g. thousand separator? ==> use translation files?
So it would be good to know, if every platform, planned to support, has all the features, used in UPP.
Language specific sorting: using translation files would be a good idea. Using that, it would be very easy to start supporing a new language, I think.
|
|
|
Re: thousand separator problem [message #5077 is a reply to message #5076] |
Sat, 02 September 2006 12:10 |
zsolt
Messages: 698 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
Maybe the best implementation would be using an abstract class and inheritance to this problem.
There would be host platform dependant and translation dependant implementations.
|
|
|
Goto Forum:
Current Time: Sat May 04 15:11:16 CEST 2024
Total time taken to generate the page: 0.03569 seconds
|