Jump to content











Photo
- - - - -

LiteStep Austerity Shell


  • Please log in to reply
31 replies to this topic

#1 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 14 October 2007 - 12:04 PM

[Starting Thread]





@ powaking

Hi! :cheers:

I've just improved strings adding an hide feature and perfecting further previous ones (now they are smarter).

New feature consists in a shifting display about elapsed-session-time when mouse-pointer is placed on Time/Date systray-icon (please, see the screenshot).

Then, actual strings are as following

If,"%pScrollBox1%",Equal,"Austerity",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%pScrollBox1%",Equal,"Austerity",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%pScrollBox1%",Equal,"Austerity",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%pScrollBox1%",Equal,"Austerity",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd. d mmm."

and all works so very fine.

However another issue exists: in fact it's necessary that strings are active not only if Austerity Theme is selected in LiteSte window, but also if Italian Locale (or any language that use the same format) is selected in "Main Configuration" window, otherwise an US user (for example) should see wrong US standard clock/date format.



Really I think that the issue can be usefully semplified using just two options for both clock-time and date formats:
1. Anglo-Saxon format;
2. Not Anglo-Saxon format.
I still don't know how it can be done, but I'm sure that "somebody" shall help me to do it! :cheers:

Attached Thumbnails

  • 8.png


#2 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 14 October 2007 - 12:12 PM

I've begun this topic because of I'm convincing myself that it is more interesting (maybe) rather than only Italian defaults...

Then I get a Copy&Paste of my previous post.

If nobody is raised about this thought let it here, otherwise delete it without exitation.

Thank you! :cheers:

#3 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 14 October 2007 - 12:27 PM

Good find. I don't use the Austerity theme myself but I'm sure those who do will find this knowledgeable.

Thank you so much! :cheers:











Btw: I've replied here because of... my previous post! :cheers:

#4 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 14 October 2007 - 12:51 PM

This is not a general Locale issue, this is a Locale issue related to LiteStep/AusterityShell.

Furthermore under LiteStep/AusterityShell clock-time and date-format are two issues much different: clock-time is set switching 1 bit from "n" to "i" (from 12hour to 24hour format), date-format accepts and recognizes a certain number of characters (probably all) writing instead (ddd. d mmm. yyyy /), but it doesn't accept capital letters.

And "system_time.rc" file editing is not only needed in order to right Localize your system even in order to set your personal preferences, but it is also a root-setting.

In fact this means that if you edit "system_time.rc" bit in order to show clock-time format as 24hour then there is no way to show it in another format editing a registry entry.

I know that "system_time.rc" file editing does not recognize capital letter and unfortunately in Vista there is no date-format without capital letter inside.

#5 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 14 October 2007 - 02:53 PM

Briefly I summarize the issue.

When in WinBuilder you configure first "Main Configuration" (config.script) you can set as default System Locale your language.

If your language is an Anglo-Saxon language then all works fine and clock/date display under Austerity theme is properly as default Anglo-Saxon format: "10.56 pm" and "saturday october 13", for example.

But if your language is not an Anglo-Saxon language Austerity Shell needed to be edited in its "system_time.rc" file, otherwise clock/date display will be wrong.

4 strings is needed to make working this occur (please, see above), but they must be execute only when both Italian language is select in "Main Configuration" (config.script) and Austerity theme is selected in LiteStep.

If I add 4 strings inside LiteStep.script they are actived at any rate (even if you select English language in Main Configuration), then I must select also a not anglo-saxon language in Main Configuration, otherwise time/date will not properly work.

For my personal use I've solved the issue, but if I wish make this tweak workable for all occurrencies I need a way that does 4 strings actived only when I select both the choices

1. Italian (or all others not anglo-saxon language) in Main configuration (config.script)

and contemporarely

2. Austerity Shell in LiteStep (1-LiteStep.script)


Hoping I've been enough clear, I hope that there is a solution... :cheers:



Every suggestion will be a lot appreciated! :cheers:




P. S.: it would be needed that work something like "If,"%pScrollBox1%",Equal,"Austerity"" (in LiteStep.scrpt) and "If,%pScrollBox5%,Equal,"Italian"" (in config.script) contemporarely... but I don't know if it is possible...

Attached Thumbnails

  • 11.png
  • 12.png


#6 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 14 October 2007 - 03:45 PM

Perhaps there should be a third separate script that was like a sort of "meeting point"?!? :cheers:

#7 powaking

powaking

    Frequent Member

  • Advanced user
  • 238 posts
  • Location:Fall River, MA
  •  
    United States

Posted 15 October 2007 - 01:50 AM

P. S.: it would be needed that work something like "If,"%pScrollBox1%",Equal,"Austerity"" (in LiteStep.scrpt) and "If,%pScrollBox5%,Equal,"Italian"" (in config.script) contemporarely... but I don't know if it is possible...


This might be possible. Need to see if setting the Locale is a global variable which can be looked up from another script.

He keeps the setting in project.ini so theres no reason why you can't do a ini read and look up the data for the Locale key. :cheers:

#8 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 16 October 2007 - 05:36 AM

This might be possible. Need to see if setting the Locale is a global variable which can be looked up from another script.

He keeps the setting in project.ini so theres no reason why you can't do a ini read and look up the data for the Locale key. :cheers:

Thank you, powaking! :cheers:

Now I'll think about that... :cheers:


:cheers:

#9 NightMan

NightMan

    Frequent Member

  • .script developer
  • 433 posts
  • Location:Russian, Moscow

Posted 16 October 2007 - 12:19 PM

ALL
Very interesting time modification for LiteStep, i add it directly to LiteScript by default (will be available tomorrow), THANKS!

If you need make some modification for specific language, better way modify locale.script :cheers:

#10 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 16 October 2007 - 12:55 PM

:cheers:

#11 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 17 October 2007 - 12:43 PM

Finally I've managed to do the solution!!! :cheers:

And I'm very happy of this! :cheers:

To obtain correct Date And Time display (plus two hide functions) in Austerity Shell is needed to add following lines to the default "1-LiteStep.script"

IniRead,%VistaInfo%,"VistaInfo","Locale",%Nationality%

If,"%Nationality%",Equal,"Italian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"Italian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"Italian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"Italian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd. d mmm."

If,"%Nationality%",Equal,"French",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"French",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"French",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"French",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd. d mmm."

If,"%Nationality%",Equal,"Russian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"Russian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"Russian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"Russian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd. d mmm."

If,"%Nationality%",Equal,"German",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"German",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"German",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"German",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd. d mmm."

If,"%Nationality%",Equal,"Turkish",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"Turkish",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"Turkish",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"Turkish",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd. d mmm."

If,"%Nationality%",Equal,"Greek",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"Greek",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"Greek",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"Greek",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd. d mmm."

Then all works very fine!


My happiness is originated from two facts:

1. I'm a newbie of WB (or I was? :cheers: ) and sure I was widely helped, but the issue, the research and the solution are finally of mine :cheers: ;

2. I'm published this updating before announced default LiteStep script update... :cheers:




I really enjoyed myself: thank you so very much (ALL)!!! :cheers: :cheers: :cheers:






Btw: if some "small" corrections should be needed my happiness should not change... :cheers:

#12 powaking

powaking

    Frequent Member

  • Advanced user
  • 238 posts
  • Location:Fall River, MA
  •  
    United States

Posted 17 October 2007 - 01:59 PM

Finally I've managed to do the solution!!! :P

And I'm very happy of this! :cheers:

To obtain correct Date And Time display (plus two hide functions) in Austerity Shell is needed to add following lines to "1-LiteStep.script"

IniRead,%VistaInfo%,"VistaInfo","Locale",%Nationality%

If,"%Nationality%",Equal,"Italian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"Italian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"Italian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"Italian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd. d mmm."

If,"%Nationality%",Equal,"French",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"French",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"French",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"French",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd. d mmm."

If,"%Nationality%",Equal,"Russian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"Russian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"Russian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"Russian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd. d mmm."

If,"%Nationality%",Equal,"German",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"German",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"German",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"German",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd. d mmm."

If,"%Nationality%",Equal,"Turkish",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"Turkish",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"Turkish",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"Turkish",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd. d mmm."

If,"%Nationality%",Equal,"Greek",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"Greek",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"Greek",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"Greek",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd. d mmm."

Then all works very fine! :cheers:
My happiness is originated from two facts:

1. I'm a newbie of WB (or I was? :cheers: ) and sure I was widely helped, but the issue, the research and the solution are finally of mine :cheers: ;

2. I'm publishing this update before NightMan ( :cheers: ) updated (as announced) the default LiteStep script... :cheers:
I really enjoyed myself: thank you so very much (ALL)!!! :cheers: :cheers: :cheers:
Btw: if some "small" corrections should be needed my happiness should not change... :cheers:



You can probably take this further just to make it easier to read and modify later by placing each Locale setting in its own section as such:

[Italian]

IniRead,%VistaInfo%,"VistaInfo","Locale",%Nationality%

If,"%Nationality%",Equal,"Italian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"Italian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"Italian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"Italian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd. d mmm."

[French]

If,"%Nationality%",Equal,"French",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"French",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"French",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"French",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd. d mmm."

[Russian]

If,"%Nationality%",Equal,"Russian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"Russian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"Russian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"Russian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd. d mmm."

[German]

If,"%Nationality%",Equal,"German",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"German",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"German",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"German",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd. d mmm."

[Turkish]

If,"%Nationality%",Equal,"Turkish",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"Turkish",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"Turkish",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"Turkish",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd. d mmm."

[Greek]

If,"%Nationality%",Equal,"Greek",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"Greek",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"Greek",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"Greek",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd. d mmm."


This way all you would need to do is this:

If,"%Nationality%",NotEqual,"Auto",[%Nationality%]

You didn't make one for Uk English so not sure what will happen if that is selected. Might just process the default. I haven't tested this so not sure if the above If statement would work but it would make the code appear cleaner and easier to read :cheers:

#13 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 17 October 2007 - 02:11 PM

You can probably take this further just to make it easier to read and modify later by placing each Locale setting in its own section as such

Thank you very much, powaking: I'll try it! :cheers:

This way all you would need to do is this:

If,"%Nationality%",NotEqual,"Auto",[%Nationality%]

I'll try it too. :cheers:

You didn't make one for Uk English

Sure, in fact I didn't make it because of it is the default language for Austerity Shell and it needs no further actions as for default. :cheers:

so not sure what will happen if that is selected

If "UK English" is selected occurs nothing of wrong: neither log error nor shell malfunction... all works so fine! :cheers:

Might just process the default

In fact so it is! :cheers:

I haven't tested this so not sure if the above If statement would work but it would make the code appear cleaner and easier to read

I'll try it soon! :cheers:

#14 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 17 October 2007 - 08:37 PM

This way all you would need to do is this:

If,"%Nationality%",NotEqual,"Auto",[%Nationality%]

I haven't tested this so not sure if the above If statement would work but it would make the code appear cleaner and easier to read

powaking, my recent results are as following:

1. it seems to me that your "If statement" [Auto [NotEqual)] unfortunately doesn't work: I've run many changes and many ISO, but anyone doesn't seem to work in any way;

2. if "UK English" language is selected then all works so fine;

3. if EcyStep is selected then all works so fine: no log error, no shell malfunction;

4. I've finally preferred to remove dots about the line "ddd. d mmm." to increase compatibility with all selectionable languages.

Then at the moment I think that following strings can be nearly considered "definitive" (please, note quotation marks :cheers: ) and a way to make the code appearing cleaner and more readable can be to add it some blank lines... :cheers: :cheers: :cheers:

IniRead,%VistaInfo%,"VistaInfo","Locale",%Nationality%



If,"%Nationality%",Equal,"Italian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"Italian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"Italian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"Italian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd d mmm"



If,"%Nationality%",Equal,"French",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"French",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"French",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"French",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd d mmm"



If,"%Nationality%",Equal,"Russian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"Russian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"Russian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"Russian",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd d mmm"



If,"%Nationality%",Equal,"German",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"German",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"German",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"German",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd d mmm"



If,"%Nationality%",Equal,"Turkish",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"Turkish",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"Turkish",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"Turkish",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd d mmm"



If,"%Nationality%",Equal,"Greek",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

If,"%Nationality%",Equal,"Greek",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

If,"%Nationality%",Equal,"Greek",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

If,"%Nationality%",Equal,"Greek",TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd d mmm"



"Auto" issue remains to solve...

#15 allanf

allanf

    Gold Member

  • .script developer
  • 1256 posts

Posted 18 October 2007 - 02:50 AM

Hi online,

Continuing powaking's idea... the following seems to work in WinBuilder's Code Box

[main]



[variables]



[VistaInfo]

Locale=Greek



[AusterityTime]

Line1=h:nn

Line2=;TimeLblOnMouseEnter

Line3=;TimeLblOnMouseLeave

Line4=ddd. mmm. d



[process]

IniRead,"%ScriptFile%","VistaInfo","Locale",%Nationality%

If,"%Nationality%",Equal,"Italian",Run,"%ScriptFile%",NonAngloTimeDate

If,"%Nationality%",Equal,"French",Run,"%ScriptFile%",NonAngloTimeDate

If,"%Nationality%",Equal,"Russian",Run,"%ScriptFile%",NonAngloTimeDate

If,"%Nationality%",Equal,"German",Run,"%ScriptFile%",NonAngloTimeDate

If,"%Nationality%",Equal,"Turkish",Run,"%ScriptFile%",NonAngloTimeDate

If,"%Nationality%",Equal,"Greek",Run,"%ScriptFile%",NonAngloTimeDate

Run,"%ScriptFile%",PopUpMessage



[NonAngloTimeDate]

IniWrite,"%ScriptFile%","AusterityTime","Line1","i:nn"

IniWrite,"%ScriptFile%","AusterityTime","Line2","TimeLblOnMouseEnter"

IniWrite,"%ScriptFile%","AusterityTime","Line3","TimeLblOnMouseLeave"

IniWrite,"%ScriptFile%","AusterityTime","Line4","ddd d mmm"



[PopUpMessage]

IniRead,"%ScriptFile%","AusterityTime","Line1","%Line1%"

IniRead,"%ScriptFile%","AusterityTime","Line2","%Line2%"

IniRead,"%ScriptFile%","AusterityTime","Line3","%Line3%"

IniRead,"%ScriptFile%","AusterityTime","Line4","%Line4%"

Message,"I'm %Nationality%!#$x%Line1%#$x%Line2%#$x%Line3%#$x%Line4%"

BTW: Note that in WinBuilder's Code Box, when the Code-Box Script causes alterations to code within the Script itself (%ScriptFile%), the altered Code is processed (in Memory), but the alterations are not Saved when the Code-Box Script terminates. In the Code Box, the "NonAngloTimeDate" Section alters the Key values in the "AusterityTime" Section, but the altered Key values are not Saved. With a regular Script running in Winbuilder, alterations to "%ScriptFile%" will be Saved permanently. The above Code is intended only for the Code Box.

The following may work in a regular Script. I'm sorry, I haven't fully tested it.

[process]

IniRead,%VistaInfo%,"VistaInfo","Locale",%Nationality%

If,"%Nationality%",Equal,"Italian",Run,"%ScriptFile%",NonAngloTimeDate

If,"%Nationality%",Equal,"French",Run,"%ScriptFile%",NonAngloTimeDate

If,"%Nationality%",Equal,"Russian",Run,"%ScriptFile%",NonAngloTimeDate

If,"%Nationality%",Equal,"German",Run,"%ScriptFile%",NonAngloTimeDate

If,"%Nationality%",Equal,"Greek",Run,"%ScriptFile%",NonAngloTimeDate

If,"%Nationality%",Equal,"Turkish",Run,"%ScriptFile%",NonAngloTimeDate



[NonAngloTimeDate]

TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd d mmm"

If it does work, there may be some improvement in time as well as space.


@online

Have you looked at other LiteStep themes?

... while you are into debugging LiteStep :cheers: ...

Check out popsicle 0.1.3 and LSF-NG "Le Theme"

#16 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 18 October 2007 - 05:22 AM

@online
Have you looked at other LiteStep themes?

... while you are into debugging LiteStep :cheers: ...

Check out popsicle 0.1.3 and LSF-NG "Le Theme"

allanf: thank you, but really the issue (and the topic) is not that... :cheers:

Thank you so much, but at this moment I'm not interested in alternative shells: I'm very interested to solve this issue... :cheers:

I'll read with right attention your suggestions (and I hope in a their help), instead.

Thank you very much! :cheers:

#17 allanf

allanf

    Gold Member

  • .script developer
  • 1256 posts

Posted 18 October 2007 - 05:37 AM

Thank you so much, but at this moment I'm not interested in alternative shells: I'm very interested to solve this issue... :cheers:


@online,

It appeared to me that you have solved the issue at hand! Good job! :cheers:

... so, moving right along ... there are currently two theme's for the LiteStep Shell in VistaPE - Austerity and EcyStep. We need more! :cheers:

And the two I selected are my favorites (ATM) ... perhaps, not everyone's "cup of tea".

... maybe another time.

#18 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 18 October 2007 - 05:53 AM

... so, moving right along ... there are currently two theme's for the LiteStep Shell in VistaPE - Austerity and EcyStep. We need more! :cheers:

And the two I selected are my favorites (ATM) ... perhaps, not everyone's "cup of tea".

... maybe another time.

Maybe another thread... :cheers:

Thank you, again! :cheers:





Btw: you know, I'm terribly taken by this issue... :cheers: :cheers:

#19 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 18 October 2007 - 12:46 PM

The following may work in a regular Script. I'm sorry, I haven't fully tested it.

[process]

IniRead,%VistaInfo%,"VistaInfo","Locale",%Nationality%

If,"%Nationality%",Equal,"Italian",Run,"%ScriptFile%",NonAngloTimeDate

If,"%Nationality%",Equal,"French",Run,"%ScriptFile%",NonAngloTimeDate

If,"%Nationality%",Equal,"Russian",Run,"%ScriptFile%",NonAngloTimeDate

If,"%Nationality%",Equal,"German",Run,"%ScriptFile%",NonAngloTimeDate

If,"%Nationality%",Equal,"Greek",Run,"%ScriptFile%",NonAngloTimeDate

If,"%Nationality%",Equal,"Turkish",Run,"%ScriptFile%",NonAngloTimeDate



[NonAngloTimeDate]

TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd d mmm"

If it does work, there may be some improvement in time as well as space.

Very nice, and working: I like it and I'll "use" it! :cheers: :cheers: :cheers:

Thank you so much, allanf! :cheers:

#20 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 18 October 2007 - 01:25 PM

About "Auto" language selection issue I've thought for a long time and seems to me that there is no solution... :cheers:

The reason is about its user'locale formats unpredictability (then about this specific issue).

In fact with all other manual languages selection we can establish when added lines must work, then all becomes predictable and working.

But if an user selects "Auto" function we cannot know which language-format will be catched, then we cannot know if we must do to work added lines...

Furthermore if I omit "Auto" (and obviously I've omitted it) in added lines then they would well-work only if Not Anglo-Saxon format was catched...

Not only, but also if I set added lines to work at any case on "Auto" selection then if an "Anglo-Saxon" format was catched Austerity would to display incorrect Date values.

It seems to me that about "Auto" selection there is no solution...

Probably only three alternatives exist:

1. to accept unpredictable behaviours (and errors)...

2. to warn the user that he must select "Auto" only if he own Not Anglo-Saxon locale formats...

3. to remove "Auto" selection from ScrollBox (theoretically)...


As usual every further consideration are welcome! :cheers:



Then added lines (thanks allanf for smarter sintax) could be as following (and I "hope" as ultimate too :cheers: ):

IniRead,%VistaInfo%,"VistaInfo","Locale",%Nationality%



If,"%Nationality%",Equal,"Italian",Run,"%ScriptFile%",Formats

If,"%Nationality%",Equal,"French",Run,"%ScriptFile%",Formats

If,"%Nationality%",Equal,"Russian",Run,"%ScriptFile%",Formats

If,"%Nationality%",Equal,"German",Run,"%ScriptFile%",Formats

If,"%Nationality%",Equal,"Turkish",Run,"%ScriptFile%",Formats

If,"%Nationality%",Equal,"Greek",Run,"%ScriptFile%",Formats



[Formats]

TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd d mmm"


#21 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 18 October 2007 - 02:18 PM

:cheers:

#22 powaking

powaking

    Frequent Member

  • Advanced user
  • 238 posts
  • Location:Fall River, MA
  •  
    United States

Posted 18 October 2007 - 07:35 PM

@online,

It appeared to me that you have solved the issue at hand! Good job! :cheers:

... so, moving right along ... there are currently two theme's for the LiteStep Shell in VistaPE - Austerity and EcyStep. We need more! :cheers:

And the two I selected are my favorites (ATM) ... perhaps, not everyone's "cup of tea".

... maybe another time.


I actually was taking a look at EcyStep 2.02 (I think thats the version, the latest one) and at first its all jacked up. Big old black box on the desktop. If you quit and go right back into the desktop all is fine. Couldn't really figure it out and seeing how ecystep is working fine now I figure not much worth to update one theme when another can be added.

#23 allanf

allanf

    Gold Member

  • .script developer
  • 1256 posts

Posted 19 October 2007 - 06:52 AM

I actually was taking a look at EcyStep 2.02 (I think thats the version, the latest one) and at first its all jacked up. Big old black box on the desktop. If you quit and go right back into the desktop all is fine. Couldn't really figure it out and seeing how ecystep is working fine now I figure not much worth to update one theme when another can be added.


@powaking,

I'm off topic... but a quick word... :cheers:

I think I know the big black box you're talking about - some sort of desktop overlay for the desktop icons. I've seen the problem with LSF-NG (a beautiful theme from France) and other themes I've tested (... some time ago.) From memory, "popsicle" doesn't have this problem, but the very nice "nuvola" icons (from Linux) don't have the required "signature" to display all in all sizes in VistaPE. (They are OK in XP.) And West, the developer of "popsicle", has stated that his/her theme is not to be distributed without authorization.

@online,

I promise not to hijack your thread.

From what I can see, the manual Language selections in the "System Locale" ScrollBox in the "Main Configuration" Script cause changes in the registry via the "Locale" Script, while the "Auto" selection does absolutely nothing, leaving the registry and everything else unchanged. I am not certain of this.

The "Build: 0 - Preconfig" Script detects a Language from the name of the Folder containing the File, bcdedit.exe.mui - like "%BootSRC%\Windows\System32\en-US\bcdedit.exe.mui" or "%BootSRC%\Windows\System32\it-IT\bcdedit.exe.mui" - and sets the variable, "%DistLang%" accordingly. I think that that variable is also stored in "Project.ini" or "VistaInfo".

I am confused as to the purpose of the "Locale" Script because I am a plain old Default English-speaking User. I am not sure what to do.

Perhaps there is another "constant" hidden somewhere (in the registry or a file) that can give a clue as to the system locale when a User selects "Auto". In which case, you could say something like (off the top of my head):

If,%Nationality%",Equals,"Auto",Run,"%ScriptFile%",FormatAuto

If,%AutoVariable%,Equals,"Swahili",.... run your Script for the appropriate Austerity Settings ...



[FormatAuto]

IniRead... or RegRead something or other...

... setting some Variable, say, %AutoVariable%...

Sorry I can't be much help at the moment... :cheers:

#24 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 19 October 2007 - 07:16 AM

@online,

I promise not to hijack your thread.

No problem, allanf!
Nay sorry for my some "strange" (?) previous replies, but early in the morning especially with english reading maybe I had read-and-written not all right... :cheers:

From what I can see, the manual Language selections in the "System Locale" ScrollBox in the "Main Configuration" Script cause changes in the registry via the "Locale" Script, while the "Auto" selection does absolutely nothing, leaving the registry and everything else unchanged. I am not certain of this.

The "Build: 0 - Preconfig" Script detects a Language from the name of the Folder containing the File, bcdedit.exe.mui - like "%BootSRC%\Windows\System32\en-US\bcdedit.exe.mui" or "%BootSRC%\Windows\System32\it-IT\bcdedit.exe.mui" - and sets the variable, "%DistLang%" accordingly. I think that that variable is also stored in "Project.ini" or "VistaInfo".

I am confused as to the purpose of the "Locale" Script because I am a plain old Default English-speaking User. I am not sure what to do.

Perhaps there is another "constant" hidden somewhere (in the registry or a file) that can give a clue as to the system locale when a User selects "Auto". In which case, you could say something like (off the top of my head):

If,%Nationality%",Equals,"Auto",Run,"%ScriptFile%",FormatAuto

If,%AutoVariable%,Equals,"Swahili",.... run your Script for the appropriate Austerity Settings ...



[FormatAuto]

IniRead... or RegRead something or other...

... setting some Variable, say, %AutoVariable%...

Sorry I can't be much help at the moment... :cheers:

No, so itsn't.
Really this is an issue related to "system_time.rc" file and other files apparently related issues are ininfluent instead.

"Auto" function catches from host OS user's registry his own locale-format informations (if I'm not wrong, because of I'm not "Auto" script's author) then it writes those informations in VistaPE registry, and other windows files are not related (except keyboard layout related DLL, for Italian: "KBDIT.DLL" only).


:cheers:

#25 online

online

    Silver Member

  • Advanced user
  • 767 posts

Posted 19 October 2007 - 05:47 PM

In the host machine registry there are two value entries: "sShortDate" and "sTimeFormat" ["HKCU\Control Panel\International"].

"Auto" script catches that information (and others) from host machine registry, writes it (plus others) in VistaPE registry and places 1 or 2 related-DLLs (Keyboard Layout DLL) in "X:\Windows\System32" (always if I'm not wrong: because of surely I am not the script's author): so it localizes VistaPE Date And Time formats exactly like host machine user's Date And Time current formats.

Those two entries (plus others) are enough to set VistaPE System Locale Date And Time Formats (Auto or Direct Language Selection in Main Configuration is the same thing), but are not enough for Austerity Shell.

In "\WinBuilder\Target\VistaPE-beta\Program Files\LiteStep\themes\austerity\config" there is "system_time.rc" file that just works with Anglo-Saxon Date And Time Formats as default [9.45 pm - fri oct 19], but that must be edited to properly display Not Anglo-Saxon Formats [21.45 - ven 19 oct].

If I select Italian in Main Configuration and then not edit "system_time.rc", then Austerity Shell will display: [9.45 pm - fri oct 19], that in Italian (Not Anglo-Saxon Formats) is wrong.

Furthermore "system_time.rc" editing is a root setting, then after its editing no registry entry can change that setting (then that display mode).


As we know with following lines the issue is fully solved with any Language Selection in Main Configuration and even with EcyStep Shell there is no error and no bug.

IniRead,%VistaInfo%,"VistaInfo","Locale",%Nationality%



If,"%Nationality%",Equal,"Italian",Run,"%ScriptFile%",Formats

If,"%Nationality%",Equal,"French",Run,"%ScriptFile%",Formats

If,"%Nationality%",Equal,"Russian",Run,"%ScriptFile%",Formats

If,"%Nationality%",Equal,"German",Run,"%ScriptFile%",Formats

If,"%Nationality%",Equal,"Turkish",Run,"%ScriptFile%",Formats

If,"%Nationality%",Equal,"Greek",Run,"%ScriptFile%",Formats



[Formats]

TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","h:nn","i:nn"

TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseEnter","TimeLblOnMouseEnter"

TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc",";TimeLblOnMouseLeave","TimeLblOnMouseLeave"

TXTReplace,"%TargetDir%\Program#$sFiles\LiteStep\themes\austerity\config\system_time.rc","ddd. mmm. d","ddd d mmm"


The problem (I don't think it's an issue) arises when an user selects "Auto" function and Austerity Shell contemporarely.

And surely not because of "Auto" script doesn't work fine, but only because of in this specific issue we can not previuosly know which are user's Date And Time current formats on his host machine, then we can not impart to the script a known and sure instruction.

Then results will be unpredictable, and often wrong.

In fact we can not add a line with "Auto" variable because of there is nothing that does to know to us that this setting is Anglo-Saxon or Not Anglo-Saxon related format.

If you are an Australian user and on your host machine your locale date and date formats are set as "English (Australia)" and you select "Auto" how can you say to the script that it is an Anglo-Saxon format?

How can the script establish itself if it must or not must to edit "system_time.rc"?

And "system_time.rc" must be edited only in presence of Not Anglo-Saxon Format...

The above lines solve the issue resting on a condition: that Italian, Russian, German, etc. (all Not Anglo-Saxon Formats) is found in "VistaInfo", and obviously "en-US" is not present in that list because of it is the default for Austerity Shell and in this case nothing must be edited.

Then, allanf, your last suggestion is very interesting, but it can not work because of we can not do to work a registry entry after "system_time.rc" editing, and furthermore when an user select "Auto" function we can not previously know if his host machine current format is or is not an Anglo-Saxon Format.

The above lines, in fact, ignore "Auto" selection and work only in presence of Italian, German, Russian, etc. selection.

If an user on his host machine has Anglo-Saxon formats current setting and select "Auto" function all works fine because of the above lines will be not actived from "IniRead" function (because of "Auto" is obviously omitted).

But if an user on his host machine has Not Anglo Saxon formats current setting and select "Auto" function then Date And Time will be display in incorrect mode, because of the script will ignore the above lines and Austerity Shell will display formats like Anglo-Saxon Formats (its Default).

Then, further considering, actually I don't see any way to solve "Auto" problem/issue except to warn the user to use it only if Austerity Shell is not contemporarely selected.


:cheers:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users