Date of a received ZIP file

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
menet
Member
Member
Posts: 199
Joined: 2005-04-21, 12:27 UTC
Location: Paris, France

Post by *menet »

Bonjour Paul,

Sorry for this mistake, I have corrected it. :oops:

N.B.: What is your number (1,77245385090552...) ? :?:
I have verified, it is not the gold number (φ=1,6180339...) nor pi (π=3,1415926535...) :P
#22273 Personal licence
User avatar
Vansumsen
Power Member
Power Member
Posts: 761
Joined: 2003-11-09, 08:16 UTC
Location: Belgique
Contact:

Post by *Vansumsen »

Bonjour menet

Just a look at my avatar... :wink: Square root of pi

Have a nice day.

Paul
Ouistiti, #11943

L'important n'est pas de convaincre, mais de donner à réfléchir.
The important thing is not to convince, but to incite to think.

1,77245385090552...
User avatar
van Dusen
Power Member
Power Member
Posts: 684
Joined: 2004-09-16, 19:30 UTC
Location: Sinzig (Rhein), Germany

SetFolderDate 1.3 released

Post by *van Dusen »

I've uploaded a slightly modified version of SetFolderDate. You can download the new version 1.3 here:

SetFolderDate_1.3 (070708).zip


Changes: ([+]=Added, [*]=Changed/Fixed)

[+] Option "Set date and time relative to 'Old date'". Set SetDateTo=4 in INI-file to preset this option
Use negative values to backdate and positive values to date forward.
New key in INI-file in each language section for localized string:
43=relative to 'Old date':


[*] SetFolderDate should not destruct the clipboard content any longer. Content of clipboard will be firstly saved and restored after acquiring the filenames.

[+] SetFolderDate window is resizable now

[+] Width of the ListView columns will be automatically adjusted

[+] "Status bar" with 2 elements: 1. Progress in % and #processed files/#total files, 2. Currently scanned subfolder

[+] Hotkeys {Esc} and {Pause}:
{Esc} aborts scanning for all dirs/arcs
{Pause} aborts scanning of currently scanned dir, scanning will proceed with the next dir/arc. {Pause} does not work for arcs
New keys in INI-file in each language section for localized string:
39=*** Skipped
40=*** Canceled
41={Pause} = Skip directory / archive
42={Esc} = Abort scanning

[+] INI-file: Key "RescanOnExecute" in section "[Configuration]":
RescanOnExecute=0: When "Execute"-Button is clicked, don't rescan dirs/arcs, apply "New date" as displayed in Listview
RescanOnExecute=1: When "Execute"-Button is clicked, rescan dirs/arcs at first

[+] INI-file: Keys "DateFormat" and "TimeFormat" in each language section.
Locale date and time format templates can be defined there. Each part of date and time must be declared: YYYY (year), MM (month), DD (day of month), hh (hour), mm (minute), ss (second). Default formats (if DateFormat and TimeFormat resp. are not defined in INI-file) according to ISO 8601:2004 / EN 28601 / DIN ISO 8601:2006-09 / DIN 5008:
DateFormat=YYYY-MM-DD
TimeFormat=hh:mm:ss

[+] INI-file: Key "GUICtrlAddWidth" in each language section:
GUICtrlAddWidth=x
Some GUI-controls (main window and leftmost radio buttons and checkboxes) will be broadened by x pixel in order to clear additional space for localized strings (for circuitous languages like german or french ;-) )

[*] INI-file: Value "AutoDetect" for key "Language" in section "[Configuration]"
Language=AutoDetect
SetFolderDate trys to identify the language, which is configured for TC:
SetFolderDate calls the "About Total Commander" dialog in order to read the location of wincmd.ini. It trys to extract the language abbreviation from the value for key "LanguageIni" of wincmd.ini

[*] INI-file: Key 17 in each language section is modified, placeholders "%d" (number of directories) and "%a" (number of archives) can be used now. Keys 18 and 28 are not longer needed.

[+] Some more specific error messages and new keys in INI-file in each language section for localized string:
36=*** Directory is empty / contains no files
37=*** No match
38=*** 7z.exe not found

[*] When switching options, automatic rescan of timestamps ("Old date" and "New date") is handled more "intelligent" now (I hope)
Attention! Timestamps will be not automatically rescanned on changes of values in input controls (textboxes):
date / time value for option "to a fixed one"
increment value for option "relative to 'Old date'"
filename / filepattern for checkbox "to that of a certain file"
You should apply those changes by pushing the "Preview" button or by pressing {Return} or {Enter} (since the "Preview" button is implemented as the default push button).
This is only important to know in case you have set "RescanOnExecute" to "0" in the INI-file.

[*] The "Important note: The string for key #26 ("No files selected!") in the language section xxx should be identical to key #51 in your wincmd_xxx.lng-file." is obsolete
[/color]
User avatar
petermad
Power Member
Power Member
Posts: 16021
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2van Dusen

If Language=AutoDetect in SetFolderDate.ini and my language file is called for example wcmd_pm_dan.lng, then I get this error and SetFolderDate refuses to start:
---------------------------
AutoIt Error
---------------------------
Line 0 (File "C:\WC\PLUGINS\SetFolderDate\SetFolderDate.exe"):

$frmGUI = GUICreate("SetFolderDate " & $strSetFolderDateVersion, 600+$intGUICtrlAddWidth, 442, Default, Default, $WS_OVERLAPPEDWINDOW)
$frmGUI = GUICreate("SetFolderDate " & $strSetFolderDateVersion, 600+^ ERROR

Error: Variable used without being declared.
---------------------------
OK
---------------------------
If my language file is for example wcmd_dan.lng SetFolderDate starts alright.

wcmd_pm_dan.lng is a perfectly legitimate filename for a TC language file - the rule is (acording to Ghisler) that the letters from the LAST underscore ("_") in the name part of the filename up to the extension period gives the language.


Here is the Danish translation for v.1.3

Code: Select all

[DAN]
;*** Date-/TimeFormat "Dänisch"
DateFormat=DD-MM-YYYY
TimeFormat=hh:mm:ss
GUICtrlAddWidth=0

1=SetFolderDate V1.3
2=Ændre dato og tid til
3=til tiden for nyeste fil
4=til tiden for ældste fil
5=scan rekursivt
6=til tiden for en bestemt fil:
7=RegEx
8=til en fast tid:
9=Nuværende
10=Mappe/Arkiv
11=Gammel tid
12=Ny tid
13=Filnavn
14=Annuller
15=Udfør
16=Vis
17=Sæt dato og tid for %d mapper og %a arkiv(er)
18=
19=Ugyldig dato / tid
20=Den angivne dato / tid er ugyldig
21=*** Uændret
22=*** OK
23=*** Fejl!
24=Luk
25=Vent venligst...
26=Ingen filer valgt!
27=Ingen mapper eller arkiver valgt!
28= 
29=Undersøg kun filer som IKKE er på listen over ignorerede filer
30=Tidstype
31=vis og
32=ændre svarende til
33=Ændret
34=Oprettet
35=Åbnet
36=*** Mappen er tom / indeholder ingen filer
37=*** Ingen match
38=*** 7z.exe ikke fundet
39=*** Skippet
40=*** Annulleret
41={Pause} = Skip mappe / arkiv
42={Esc} = Afbryd scanning
43=relativt til 'Gammel tid':
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
menet
Member
Member
Posts: 199
Joined: 2005-04-21, 12:27 UTC
Location: Paris, France

Post by *menet »

Hi van Dusen,

Thanks to have implemented new functionalities in this new 1.3 versions :P :P :P

I have not made a lot of tests... :oops: , I have tested the version without changing the INI file :

- For the language, it works but we have a popup from TC that I don't like. I prefer to replace the "Language=AutoDetect" by "Language=FRA" in the INI file. 8)

- I have not the same ProgPath7z than you; Without changes, if I select a ZIP file, I receive the message "36=*** Directory is empty / contains no files" not the "38=*** 7z.exe not found"

- I have made a quick translation of

Code: Select all

;Keys 36 up to 43 are new with SetFolderDate 1.3 and needs to be translated
36=*** Directory is empty / contains no files
37=*** No match
38=*** 7z.exe not found
39=*** Skipped
40=*** Canceled
41={Pause} = Skip directory / archive
42={Esc} = Abort scanning
43=relative to 'Old date':
in French :

Code: Select all

36=*** Le dossier est vide / il ne contient pas de fichiers
37=*** Pas de correspondance
38=*** Exécutable 7z.exe non trouvé
39=*** Sauter
40=*** Annuler
41={Pause} = Sauter le dossier / l'archive
42={Esc} = Abandonner le scan
43=relative à l' "ancienne date" :
Qu'en pense mes collègues francophones Clo et Vansumsen :?:

:arrow: - Can you give a minimum size to the columns to the size of the column title ?

What about proposing your tool in TOTALCMD.NET ?

Best Regards :wink:
#22273 Personal licence
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

No re_suck…

Post by *Clo »

2menet

:) Good morning,

• Personally, I would write rather :
38=*** Exécutable 7z.exe introuvable

42={Échap} = Abandonner la scrutation
43=selon “Ancienne date” :
:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
menet
Member
Member
Posts: 199
Joined: 2005-04-21, 12:27 UTC
Location: Paris, France

Post by *menet »

2Clo :P

I have made a review of my translation for the news and changed the following :

Code: Select all

38=*** Exécutable 7z.exe introuvable
...
42={Échap} = Abandonner l'analyse
43=relativement à l' "ancienne date" :
Note that the character is not shown like that in the tool so I prefer to use the " characters.

Regards :wink:
#22273 Personal licence
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

SetFolderDate calls the "About Total Commander" dialog in order to read the location of wincmd.ini
You may consider the environment variable COMMANDER_INI directly to determine the location of wincmd.ini (introduced with TC 6.55)
#5767 Personal license
User avatar
Vansumsen
Power Member
Power Member
Posts: 761
Joined: 2003-11-09, 08:16 UTC
Location: Belgique
Contact:

Post by *Vansumsen »

:arrow: menet

Hello !

“analyse” is not right (you have “scan”, not “parse” in English)

“selon” is shorter and better, the meaning is correct.
“ character is not shown like that in the tool…
- This is because the Author (or yourself) is still using the crappy MS Sans Serif. He might use a complete correct font, i.e. Tahoma (T.T.) or Dina (fixed but complete).

The English guillemots are displayed alright here…
You might use a complete correct font in TC


Regards

Paul
Ouistiti, #11943

L'important n'est pas de convaincre, mais de donner à réfléchir.
The important thing is not to convince, but to incite to think.

1,77245385090552...
User avatar
van Dusen
Power Member
Power Member
Posts: 684
Joined: 2004-09-16, 19:30 UTC
Location: Sinzig (Rhein), Germany

SetFolderDate 1.3.1

Post by *van Dusen »

I've uploaded a bugfixed version of SetFolderDate. You can download the new version 1.3.1 here:

SetFolderDate_1.3.1 (070709).zip


Changes: ([+]=Added, [*]=Changed/Fixed)

[*] Fixed: Wrong error message "Directory is empty / contains no files" for archives, when 7z.exe is not found

[*] Fixed: In "AutoDetect" mode, language abbreviation was extracted incorrect from key "LanguageIni" of wincmd.ini (from first "_" to next "."/"_"). Language abbreviation is now read from last "_" to next ".". This fixes the program abort too, which happened, when language from wincmd.ini couldn't find in SetFolderDate.ini.

[*] Danish and french translations updated (for new INI keys; thanks to petermad, menet and Clo)

[*] Minimum width of ListView columns is set to width of column header now

[*] If "Language=AutoDetect" is set in SetFolderDate.ini, then the location of wincmd.ini is now read from environment variable "COMMANDER_INI" (dialog "About TotalCommander" isn't called anymore). sqa_wizard, thanks a bomb!

[*] The environment variable "%ProgramFiles%" can be used now in value for key "ProgPath7z" in SetFolderDate.ini (define "ProgPath7z=%ProgramFiles%\7-Zip\7z.exe" e.g.)

[+] The font for the GUI can be configured now (name and size). New keys "FontName" and "FontSize" in section "[Configuration]" of SetFolderDate.ini
Defaults:
FontName=Tahoma
FontSize=8.5
[/color]
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Wow, great work ! Does all it should and much more ... :D
#5767 Personal license
User avatar
van Dusen
Power Member
Power Member
Posts: 684
Joined: 2004-09-16, 19:30 UTC
Location: Sinzig (Rhein), Germany

Post by *van Dusen »

Hi menet,
menet wrote:[...] What about proposing your tool in TOTALCMD.NET ? [...]
Icfu was so kind to host my scripts. He offers to update them, when I send him new versions. I'll contact Icfu and will ask him to make SetFolderDate_1.3.1 available on his webspace.

Regards, van Dusen
User avatar
van Dusen
Power Member
Power Member
Posts: 684
Joined: 2004-09-16, 19:30 UTC
Location: Sinzig (Rhein), Germany

Post by *van Dusen »

sqa_wizard wrote:Wow, great work ! Does all it should and much more ... :D
Thank you! :)
User avatar
petermad
Power Member
Power Member
Posts: 16021
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2van Dusen
I can only agree - Great work! and fast too. Now it works right out of the box :D
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Good !

Post by *Clo »

2van Dusen

:) Hello !

• Nice tool, thanks ! This version works well, here the previous one crashed immediately @ start up.

- Tiny language detail :
7=Exp.Rég.
…should be used in French (less abbreviated, so easier to understand).
- Currently, it's not translated. But the control is a bit too narrow, needs room for let's say, 3 characters more…

:mrgreen: VG
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
Post Reply