Kodi Community Forum

Full Version: Language strings stop working correctly
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,

After upgrading to kodi18.1 some string translation stopped working.
all my translation are in `/resources/language/resource.language.en_gb`

Most of translation work fine but some strings with id like:
30080, 30139, 30110 are overwriten with id: 30082

It looks like 30082 is FIRST ACTION LABEL, and all affected are ACTION LABELS too

xml:

<setting label="30082" type="action" id="action" action="RunPlugin(plugin://plugin.video.nakamori/?cmd=wizard)" option="close"/>
<setting label="30080" type="action" id="action" action="RunPlugin(plugin://plugin.video.nakamori/?mode=32)" option="close"/>
<setting label="30139" type="action" id="action" action="RunPlugin(plugin://plugin.video.nakamori/?mode=33)" option="close"/>
<setting label="30110" type="action" id="action" action="RunPlugin(plugin://plugin.video.nakamori/?mode=31)" enable="System.HasAddon(script.module.nakamori)" option="close"/>

I filled issue: https://github.com/xbmc/xbmc/issues/15578

edit: looks like it works in k17 but k18 is more restrictive about id's - or it was label based and now its id (cached?) based
changing id's from 'action' to 'action-number' solved the issue. thanks
each setting needs to have a unique id.

only under specific circumstances, you will want re-use a setting id. and that's indeed broken currently.
https://github.com/xbmc/xbmc/issues/15252
Thanks, replacing id so each label have unique id solved problem on k18.
Looks like this is one of many things that is 'fixed' while working fine in k17.
Thanks for helping out.