|
|||
| Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius |
|
|||||||||||||
| FormatDateTime and date separator - Usage - Three simple steps to localize - Technical Support (You need to be registered at the forum to write) - Localization Tool for VB, Delphi, .NET, C#, VB.NET, XML, Online Help, HTML ... | ||||||||||||||
| Author | Post | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||
|
Navi100 Member
|
Hello, I'm using Delphi and my project can load language dll files. When I call the function FormatDateTime with a format string like, say "dd/mm", without any language file loaded, I obtain : "01.09" as a result. This is correct according to the preferences I have set in my regional settings, the slash has been replaced by the date separator, which is a dot. Now when I load the .EN language file, I obtain "01/09". Why do we have a slash here ? I would expect the same result as above, as the programs still runs in the same environment with the same user settings in control panel. Thanks by advance, Vincent
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Jaakko.Salmenius Administrator
|
It seems that you use LaDialog.SelectResourceLocale or LaResource.SetNewResourceFile function to load a new resource DLL. Both functions has resourceOptions (options) parameter that controls if Sissulizer should not change format variables of VCL. By default Sisulizer changes those variables to match the loaded langauges. If you have something like this: SelectResourceLocale('EN') change it to SelectResourceLocale('EN', [], [roNoLocaleVariables]) Now Sisulizer won't change the format variables. Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Navi100 Member
|
Jaakko, That's it, I was using the SetNewResourceFile function with one parameter only. The problem is solved by adding [roNoLocaleVariables] to the parameters. Thank you for the support, Best regards, Vincent
|
|||||||||||||
| ||||||||||||||
| Current time is 04:03 pm | |
| Localization Tool for VB, Delphi, .NET, C#, VB.NET, XML, Online Help, HTML ... > Technical Support (You need to be registered at the forum to write) > Usage - Three simple steps to localize > FormatDateTime and date separator | |
Sisulizer software localization tool - Three simple steps to localize