I need to modify an existing application in order to have multilanguage support. This means that with the same database(Firebird) in an english version, my client want to sale the application in China.
Application was written in Delphi 7, and the components used to access the database are from the FibPlus suite.
Starting from this question, from my knowledge, using .AsDate, .AsDateTime, etc routines are converting the data from the database using the locale settings from the system. It means that I will display data to final user, by using current format setting, correct?
When saving data in the database, database connector should save correct(using current format settings) the data in the database. Or, I’m wrong?
So, basically my question is: how should I manage DateTime, Thousands, Decimal, etc separators in order to display to the final user/save correct the data from/into the database ?
AsDateTimeetc. don’t convert using the regional settings, because they do not convert at all. As far as your application should be concerned, the database reads and writesTDateTimevalues, not strings. As long as you don’t convertTDateTimevalues to/fromstrings, there is no problem. The standard edit controls will display them using the end user’s regional settings. Only if you do perform the conversion yourself do you need to look atFormatSettings.