Important -  addon devs: language file formatting (and more...)
#1
over the years, several language format related changes have been made in kodi.
but since none of those changes were mandatory, many addons haven't been adjusted to them.

we'd like to ask you to make those changes to your addon as well, so we can phase out the old formats in the future.
to aid you in converting some bits and to pieces to the new format, there's an addon available that will get the job done for you:
script.language-convert-0.0.3.zip


this addon will make the following changes:

- in your addon.xml it will update all 'lang' attributes
example: <description lang="en"> to <description lang="en_GB">

- if you are using strings.xml language files, they will be converted to strings.po files

- language folder names will be converted to the current format *
example: English to resource.language.en_gb


PLEASE MAKE A BACKUP OF YOUR ADDON BEFORE RUNNING THIS SCRIPT!


* some addons include languages which are not supported by kodi, those language files will be removed by the addon
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#2
Now all my addons don't display any text? kodi 17.6
Kodi addons: Lanik repo
Reply
#3
OK I think I found the reason - it generated lines like

msgctxt "

and it should be

msgctxt "#

D.
Kodi addons: Lanik repo
Reply
#4
thanx for the heads-up!
fixed in v0.0.2
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#5
In the gettext po file header, should the "language" entry conform to the ll_CC format?  It seems like just the two-letter ll is accepted.

scott s.
.
maintainer of skin  Aeon MQ5 mods for post-Gotham Kodi releases:
Krypton
Leia
Reply
#6
(2018-06-16, 01:28)scott967 Wrote: In the gettext po file header, should the "language" entry conform to the ll_CC format?  It seems like just the two-letter ll is accepted.

scott s.
.
 both should work afaik...

the Estuary skin uses ll_CC for instance: https://github.com/xbmc/xbmc/blob/master...ngs.po#L16
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#7
What's the oldest version of Kodi that supports the newer language file format?  I'm just trying to figure out to which of the repo-script branches I need to submit updates and what minimum version of xbmc.addon I should list in the dependencies.  I did some Google searching, and I *think* the new format works as far back as Frodo, but I want to make sure.
Providing a debug log: http://kodi.wiki/view/Log_file/Easy

Add-ons I maintain:
Artist Slideshow: Add-on:Artist_Slideshow (wiki)
SpeedFan Information Display: Add-on:SpeedFan_Information_Display (wiki)
Reply
#8
New format supported since 15.x
My repository: repository.vlmaksime
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
addon devs: language file formatting (and more...)00