Old 20th January 2010, 13:48   #1
DrO
 
Join Date: Sep 2003
Posts: 27,880
Language Pack Tool & Example Project

The following provides a build tool for generating a language file for plug-in's and an example project of how to use Winamp's api_language interface which is used in Winamp's localisation support with 5.5+ clients.

http://daz.ne1.net/lng_generator
http://daz.ne1.net/gen_lang_example


If there are things which are not clear then please post back and i'll answer / amend an issues & details as applicable.

Now go out and start localising your plug-ins. Plus the example project shows a few things which all Winamp plug-ins should be implementing to ensure better compatability with newer client versions (especially now Winamp is a unicode app).

-daz
DrO is offline   Reply With Quote
Old 15th June 2010, 21:41   #2
DrO
 
Join Date: Sep 2003
Posts: 27,880
Winamp Plug-in Language File Generator v2.0 [15/06/2010]
  • Fixed issues copying unicode TEXT resources and standard DIALOG resources via /build
  • Added functions for translators - /diff, /hashit, /hashup, /ini_tx, /wlz and /zipup
  • Fixed issues copying unicode TEXT resources and standard DIALOG resources via /build
  • Fixed issues with some command-line handling which could cause invalid actions to be attempted or not followed
  • Changed /build to accept an option /folder= parameter to make it more flexible as per the new commands also added
This is a two teir update for both plug-in developers with the /build change and also the additional commands for translators to make things a bit more unified. See http://nunzioweb.com/daz/lng_generator/ for some more information about the changes and how to make use of the commands, etc.

-daz
DrO is offline   Reply With Quote
Old 21st June 2010, 12:41   #3
DrO
 
Join Date: Sep 2003
Posts: 27,880
Winamp Plug-in Language File Generator v2.1.1 [21/06/2010]
  • Added /filename= parameter to the /build command
  • Fixed duplicated text and better clarified some of the help message output
  • Fixed wlz and archive files could remain locked in use sometimes
  • Fixed some of the actions not using the resource language type already present (mainly affected HASH section updates)
  • Changed /hashit to backup the original wlz file (my_original.wlz) and create the updated file with the original filename (my.wlz) instead of my.wlz.wlz as with v2.0
  • Fixed /zipup failing due to internal buffers not being correctly set in some cases
Small update to fix a few things i've found since the 2.0 release.

-daz
DrO is offline   Reply With Quote
Old 21st June 2010, 12:49   #4
Pawel
Moderator
 
Pawel's Avatar
 
Join Date: Aug 2004
Location: Poland
Posts: 503
Send a message via ICQ to Pawel
Dro,
Thanks for update.
-Pawel
Pawel is offline   Reply With Quote
Old 29th June 2010, 20:06   #5
DrO
 
Join Date: Sep 2003
Posts: 27,880
Winamp Plug-in Language File Generator v2.2 [29/06/2010]
  • Fixed /wlz not copying dialog resources correctly in all cases - is now bit perfect in copying
  • Fixed /diff not working correctly in all scenarios (related to /wlz fixes)
  • Added auto-updating of known entries in wlz_list.ini (will preserve any custom added aspects)
  • Updated wlz_list.ini (fixes issues with some official plugins not being handled or guid being out of date)
  • Added /use_wa_ver switch to the /wlz command to append the Winamp version on the end of the working folder
  • Added /exclude_img switch to the /diff command to ignore RT_BITMAP resources when comparing against a wlz
  • Changed /wlz to compress the created hash zip instead of using store (the wlz is still created with store)
  • Changed some of the text output to clarify or make things clearer as to what has changed
  • Updated /help to be able to display just the help for single commands e.g. /help /wlz
A bigger update this time which should resolve most of the quirks in the translator options of this tool. There may be one or two more v2.x updates otherwise work will start (after i've had a well earned break i think) on v3 of the tool. Also thanks to Pawel for suggestions and reporting issues (though i'm sure i'll be getting more reports, heh).

-daz
DrO is offline   Reply With Quote
Old 24th June 2013, 20:45   #6
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,930
Send a message via Skype™ to thinktink
I'm experimenting with LiveWire to see if I can "languageafy" it. So far I've only done the skinned window strings. I'm attempting to make a German (de-de) translation file but the only way I can get it to work is to put it inside the "Winamp-de-de.wlz" archive.

Without modifying an existing language pack file, how does the whole [individual plugin]-to-[language file] thing work?
thinktink is offline   Reply With Quote
Old 24th June 2013, 20:51   #7
DrO
 
Join Date: Sep 2003
Posts: 27,880
you need to make a de-de folder in the lang folder and put the lng file in there which the language pack loader will look at once it's processed the extracted wlz.

though i'm starting to think i may go back on something i was quite staunch about and allow for loading a folder-only language pack (like we do with skins).
DrO is offline   Reply With Quote
Old 24th June 2013, 21:17   #8
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,930
Send a message via Skype™ to thinktink
Quote:
Originally Posted by DrO View Post
you need to make a de-de folder in the lang folder and put the lng file in there which the language pack loader will look at once it's processed the extracted wlz.

...
Thanks, that got it.
thinktink is offline   Reply With Quote
Old 19th August 2014, 22:14   #9
Pawel
Moderator
 
Pawel's Avatar
 
Join Date: Aug 2004
Location: Poland
Posts: 503
Send a message via ICQ to Pawel
DrO, could you upload latest, stable Language File Generator here?
Unfortunatelly this page not exists anymore: http://daz.ne1.net/lng_generator

I found on my disk something like this:
Winamp Plug-in Language File Generator v2.3 BETA 3
Built: Sat Dec 7 16:38:26 2013
by Darren Owen aka DrO
Latest version available from http://daz.ne1.net/lng_generator


I remember we were testing this, however I don't remember results
I hope there is a stable exe, as I am going to update my translation tool finally and publish it with my Winamp Tools package (and it uses of course this great small app).
-Pawel
Pawel is offline   Reply With Quote
Old 19th August 2014, 22:18   #10
DrO
 
Join Date: Sep 2003
Posts: 27,880
i don't know what would be classified as stable and with other things going on, it's going to be a while before i can realistically start to look into anything to do with lng_generator again.

also the links don't work as that hasn't been a working link for a while and anything would be on http://winampplugins.co.uk/ instead (when things are eventually returned - or it'll make it onto some sort of official download instead of via my own site).
DrO is offline   Reply With Quote
Old 19th August 2014, 22:24   #11
Pawel
Moderator
 
Pawel's Avatar
 
Join Date: Aug 2004
Location: Poland
Posts: 503
Send a message via ICQ to Pawel
OK, then I will use what I have.
Hope, someday you wil find time and will work again on it. As I belive, Winamp under Radionomy will be even better. And yes, I know it need time. A lot of time.
-Pawel
Pawel is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump