New pluginst.inf line to show plugin version number

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Bluestar
Senior Member
Senior Member
Posts: 388
Joined: 2007-06-10, 15:26 UTC
Location: Hungary
Contact:

New pluginst.inf line to show plugin version number

Post by *Bluestar »

Hi,

I've got a simple idea from which i think Total Commander & its users (and plugin developers) could also benefit from (see the original topic here).
A lot of pluginst.inf currently looks like:
description=Sample plugin 2.0.6 (32/64): only for demonstration purposes
descriptionrus=Пример плагина 2.0.6 (32/64): только для демонстрационных целей
descriptiongrk=Δείγμα plugin 2.0.6 (32/64): μόνο για σκοπούς επίδειξης
descriptiondeu=Beispiel-Plugin 2.0.6 (32/64): nur für demonstrationszwecke
descriptionukr=Приклад плагіна 2.0.6 (32/64): тільки для демонстраційних цілей
descriptionesp=Ejemplo de plug-in 2.0.6 (32/64): sólo para fines de demostración
descriptionhun=Minta bővítmény 2.0.6 (32/64): csak demonstrációs célokra
descriptiondan=Prøve plugin 2.0.6 (32/64): kun med henblik på demonstration
... which in this case means 8 lines with redundant informations to modify for every new version, if the developer wants to update the version number correctly.

I think it would be nice if we could just define a new string in the "pluginst.inf" file like "version=2.0.6", remove the version information from all the language strings, and Total Commander could display it on the Plugin installation confirmation dialog automatically simply by reading this new value. In case it doesn't exists, it could just show "Version: unknown" (no new translation is needed, since line #1287 already contains the string "unknown" for every language file of TC). It would even be backward-compatible, since the previous versions would just ignore this new pluginst.inf line.

A nice extra advantage of this whole thing: developers would be a bit more "forced" to fill in & always update the plugin's version information, 'cause if they miss this step, TC would show "Version: unknown" (or the previous version number), and of course they would like the TC plugin-installer to display everything correctly. :wink:

Visual presentation: click here for the image.
(TC could even optionally show 32/64, in case both files - w*x and w*x64 - exists in the pack - but thats another story, the main point is the simplified displaying of the current version - btw my original conception was reading the version information without extra pluginst fields directly from the wcx/wfx etc files, but that would probably need the file to be unpacked)

What do you think about it?
User avatar
Maximus
Member
Member
Posts: 147
Joined: 2006-04-12, 10:51 UTC
Location: Ukraine
Contact:

Post by *Maximus »

I think this will be very useful feature.
User avatar
Flint
Power Member
Power Member
Posts: 3511
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

Support too.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
petermad
Power Member
Power Member
Posts: 16098
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Big Support++++
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

An alternative could be to unpack the plugin main file temporarily and use its version information.
User avatar
Bluestar
Senior Member
Senior Member
Posts: 388
Joined: 2007-06-10, 15:26 UTC
Location: Hungary
Contact:

Post by *Bluestar »

@Lefteous:
I was also thinking about that, but unfortunately most of the plug-ins doesn't have a relevant & updated versioninfo section, so this wouldn't be a very successful way.

Christian, would it be possible to extend the current plugin installer feature with such a thing, so it could handle this extra "version" key in the "pluginst.inf" files in case it exists?
» Developer of Total Updater & extDir utility.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50824
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, I will add it. Unfortunately I have already contacted all translators, so it's too late to ask for a new translation for "Version". I will probably use string Nr. 5808 for now.

However, I will leave out this "Version:" line from the dialog and not show "unknown" because the version number is often part of the name in existing inf files.
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3511
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

ghisler(Author) wrote:Unfortunately I have already contacted all translators, so it's too late to ask for a new translation for "Version". I will probably use string Nr. 5808 for now.
I would suggest to add a new line anyway, and only use 5808 if the translation for the new line is missing. I remember you did such things earlier, and it was quite a good idea.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
Bluestar
Senior Member
Senior Member
Posts: 388
Joined: 2007-06-10, 15:26 UTC
Location: Hungary
Contact:

Post by *Bluestar »

Thanks for implementing it Christian, it works like a charm! :) The used string is perfect too.

WDX for Images plugin now already contains a version string in its ini, hope more and more developers are going to follow the trend.

Regards,
Bluestar
» Developer of Total Updater & extDir utility.
User avatar
Maximus
Member
Member
Posts: 147
Joined: 2006-04-12, 10:51 UTC
Location: Ukraine
Contact:

Post by *Maximus »

2Bluestar
My tcPhonebook and AppLoader contains version string from 2011 and 2012 year :)
User avatar
Bluestar
Senior Member
Senior Member
Posts: 388
Joined: 2007-06-10, 15:26 UTC
Location: Hungary
Contact:

Post by *Bluestar »

@Maximus:
You're right I just checked it. :D You were very forward-thinking, respect. :wink:
(btw I was able to find a pretty old "wlx_apploader_0.9.5b.rar" package on my PC from 2009 which doesn't contains it yet :P)

Edit:
Checked my installdir and noticed that decClipBoardFS, DeliciousPosts, badcopy, FSClipboard and excellence also contains it.
» Developer of Total Updater & extDir utility.
Post Reply