Posts: 1,842
Joined: Jul 2012
Reputation:
68
Is there a way to have settings.xml in Matrix show raw help text which is not yet in strings.po? It is a nice feature but during development it takes two steps to getting it looking right.
Martin
Posts: 5,184
Joined: Jan 2009
Reputation:
131
Right now there isn't. To convert old-style add-on settings (which support this) to core-style add-on settings there's a workaround for this in CAddonSettings but it's not present for core-style settings. I agree that it can be a bit cumbersome during development but in the end all of your label and help strings must be translatable. If we would allow this "shortcut" it would increase the chance of someone forgetting to replace those strings with translatable labels / IDs.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 5,184
Joined: Jan 2009
Reputation:
131
I'm no expert on strings.po
so I have no idea if the order matters but normally msgctxt
can be anything and usually not a number I don't think that order matters. In this case it just makes it easier to avoid using the name number / ID twice.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 3,901
Joined: Sep 2013
Reputation:
358
AFAIK, the No. in msgctxt
is the string ID used by Kodi to localize the language with either $LOCALIZE[string ID]
in skins, or g_localizeStrings.Get(string ID)
in core.
Learning Linux the hard way !!
Posts: 1,842
Joined: Jul 2012
Reputation:
68
2020-03-26, 15:15
(This post was last modified: 2020-03-26, 15:22 by emveepee.)
I just tried with the H and that didn't work since it gets scanned to the same number. I will keep them out of order but instead of adding 10000 I will add 500. I am at 172 now, but that should be ok.
I also noted that if you use a number outside the range 33000 thru 33999 the addon will use the common value
Martin
Posts: 5,184
Joined: Jan 2009
Reputation:
131
Kodi requires it to be a number but in general the gettext PO format doesn't require it to be a number. That's why I reasoned that it doesn't have to be in order.
And yes there's a limited range of available IDs for add-ons.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 1,842
Joined: Jul 2012
Reputation:
68
On a hunch I removed the label and the integer values show up so that solves this issue.
Martin
Posts: 1,842
Joined: Jul 2012
Reputation:
68
If I have the same id in multiple categories or in the same category I end up with user settings.xml with duplicate id's stored. Is this is the expected behavior?
If so is there any way to update the same id with different controls with different options (in my case a PVR backend with multiple backends).
Martin