Support forum of the software localization tool Sisulizer


Localization Tool for VB, Delphi, .NET, C#, VB.NET, XML, Online Help, HTML ... Home

Get in contact with the makers of Sisulizer.
Our forum is open for all questions around Sisulizer from customers and prospects.
Don't hesitate to register and ask. The Sisulizer team will answer ASAP.

Search     Help Home Sisulizer Website Download
Search by username
Not logged in - Login | Register 

 Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius
New Topic Reply Printer Friendly
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 ...
AuthorPost
 Posted: Mon Sep 1st, 2008 07:35 pm
PM Quote Reply
Navi100
Member
 

Joined: Tue Aug 12th, 2008
Location:  
Posts: 16
Status: 
Offline
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

Back To Top PM Quote Reply

 Posted: Mon Sep 1st, 2008 11:59 pm
PM Quote Reply
Jaakko.Salmenius
Administrator


Joined: Sat Apr 8th, 2006
Location: Tokyo, Japan
Posts: 1532
Status: 
Online
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
Back To Top PM Quote Reply

 Posted: Tue Sep 2nd, 2008 07:21 pm
PM Quote Reply
Navi100
Member
 

Joined: Tue Aug 12th, 2008
Location:  
Posts: 16
Status: 
Offline
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

Back To Top PM Quote Reply

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



WowUltra 1.11 Copyright © 2007 by Jim Hale - Based on WowBB Copyright © 2003-2006 Aycan Gulez

Sisulizer software localization tool - Three simple steps to localize