[RELEASE] XBMC language file download tool, for Transifex translations

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
alanwww1 Offline
Team-Kodi Member
Posts: 1,364
Joined: Nov 2008
Reputation: 33
Location: Hungary
Exclamation  [RELEASE] XBMC language file download tool, for Transifex translations
Post: #1
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
(This post was last modified: 2013-01-02 00:10 by alanwww1.)
find quote
alanwww1 Offline
Team-Kodi Member
Posts: 1,364
Joined: Nov 2008
Reputation: 33
Location: Hungary
Post: #2
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

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
ruuk Offline
Team-Kodi Member
Posts: 1,645
Joined: Aug 2005
Reputation: 187
Location: Bremerton, WA USA
Post: #3
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.

[Image: sig.jpg]
find quote
Martijn Offline
Team Kodi
Posts: 11,921
Joined: Jul 2011
Reputation: 170
Location: Dawn of time
Post: #4
(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

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
ruuk Offline
Team-Kodi Member
Posts: 1,645
Joined: Aug 2005
Reputation: 187
Location: Bremerton, WA USA
Post: #5
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!

[Image: sig.jpg]
(This post was last modified: 2013-04-14 20:03 by ruuk.)
find quote
realtebo Offline
Senior Member
Posts: 165
Joined: Apr 2013
Reputation: 0
Post: #6
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
(This post was last modified: 2013-11-08 22:50 by realtebo.)
find quote
malte Offline
Skilled Python Coder
Posts: 1,351
Joined: Jan 2010
Reputation: 28
Location: Germany
Post: #7
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?
find quote
rob_webset Offline
Posting Freak
Posts: 772
Joined: Sep 2013
Reputation: 21
Post: #8
(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
find quote