Kodi Community Forum

Full Version: [RELEASE] XBMC language file download tool, for Transifex translations
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all addon and skin developers !

As I promised, for those, who signed up for the Transifex translation program, I created a nice tool, which you can use to download fresh language files recently synced from Transifex to the XBMC-translations github repository.
This tool really does things easy. Just type in one command and you have the fresh addon.xml, changelog.txt and all the language files. There is also a batch mode, where you can use an xml file to specify a list of addons with local directories to download.

Please check the README before using it first.

Important: your local addon.xml, changelog.txt, language files will be overwritten with the fresh files. So I suggest using "git commit" with your changes first and just after that, check possible loss of strings or entries with "git diff". In case some missing string, please re-add them. This could happen if you added the string AFTER my last sync happened on the translation repo. So it is always good to check your addon's last sync time.

The addon is vailable for Linux and Windows at the moment. Windows build can be downloaded from here.

I hope the tool will be a useful help for all of you.
Who want to sign up for Transifex translations and not yet done it, just check the corresponding thread how to do it !

Cheers,
Attila/TeamXBMC
I updated the tool at the official XBMC translation github repository to version 0.82.
This includes:
  • Directory creating problems under windows (thanks @biocoder for this fix)
  • Automatic Git commit ability with usage of a commit message template, which can include the addon name and version

Note: Only use the git commit feature if you know what you are doing. Git push is not done for saftey of course.
Under windows the supported git client, is the official one at http://git-scm.com/downloads

More at the README
Download the win exe from here

Cheers, Attila
I'm new to git, but it seems to me that I can't clone the tool without cloning the whole language repository (or doing some sparse checkout thing)
Should this tool (or at least the tools directory) have their own repository?

Please let me know if I'm missing something here.

Thanks.
(2013-04-13, 21:16)ruuk Wrote: [ -> ]I'm new to git, but it seems to me that I can't clone the tool without cloning the whole language repository (or doing some sparse checkout thing)
Should this tool (or at least the tools directory) have their own repository?

Please let me know if I'm missing something here.

Thanks.

hmm i think you are quite right there Smile
it should be separate imo.
For now you can just hit the download .zip button instead of cloning the repo
Looks like you can get just the tool from alanwww1's repository at https://github.com/alanwww1/xbmc-langdload

Oh, and thanks for the tool. It works great!
Bug: If I have an english .po with author comment like

Code:
#. Used as section title in addon setting window

When I use your tool I loose all "." (dots)

Code:
# Used as section title in addon setting window
I have some issues with downloading language files atm. Here is the error I get:
Code:
HTTPHandler:curlURLToStr finished with error code: 301 from URL https://raw.github.com/xbmc/translations/master/translations/xbmc-addons/xbmc-txupdate.xml

301 is the HTTP status code for "moved permanently". When I enter above url in a browser I am redirected to "https://raw.githubusercontent.com/xbmc/translations/master/translations/xbmc-addons/xbmc-txupdate.xml".

Here is my command line:
Code:
E:\XBMC\RCB\langload\xbmc-langdload.exe xbmc-addons/script.games.rom.collection.browser E:\XBMC\RCB\langload\download

I downloaded the latest version of langdload (0.83) from here: https://github.com/xbmc/translations/raw...gdload.exe

Is there any way to get around this?
(2014-04-30, 08:19)malte Wrote: [ -> ]I have some issues with downloading language files atm. Here is the error I get:
Code:
HTTPHandler:curlURLToStr finished with error code: 301 from URL https://raw.github.com/xbmc/translations/master/translations/xbmc-addons/xbmc-txupdate.xml

301 is the HTTP status code for "moved permanently". When I enter above url in a browser I am redirected to "https://raw.githubusercontent.com/xbmc/translations/master/translations/xbmc-addons/xbmc-txupdate.xml".

Here is my command line:
Code:
E:\XBMC\RCB\langload\xbmc-langdload.exe xbmc-addons/script.games.rom.collection.browser E:\XBMC\RCB\langload\download

I downloaded the latest version of langdload (0.83) from here: https://github.com/xbmc/translations/raw...gdload.exe

Is there any way to get around this?

Issue highlighted in the following post as well:

http://forum.xbmc.org/showthread.php?tid=194562