Posts: 87
Joined: Jul 2017
Reputation:
0
Is there a guide somewhere that will tell me how to override the strings in the context menu? If not can someone explain how?
Basically the way I'm using Favourites is to maintain a list of series (eg The Saint, Homeland) that we're currently watching and I'd like to replace the references to "Favourites" with "Watching". Changing the main menu was a doddle but I've tried copying the entry from the system strings.po to the skin one, and altering the system strings.po (which I'd prefer not to do) with zero success "Add to favourites" stays stubbornly as just that.
Posts: 87
Joined: Jul 2017
Reputation:
0
OK, its in there but how do I get it to use a different string?
I've edited msgstr in C:\Program Files\Kodi\addons\resource.language.en_gb\resources\strings.po, I also copied the two entries in the system strings.po and placed in AppData\Roaming\Kodi\addons\skin.experimental\language\resource.language.en_gb\strings.po both with changing msgctxt to a new value and leaving it alone.
I'm obviously doing something wrong.
Posts: 21,141
Joined: Apr 2017
Reputation:
1,466
Which skin are you using?
Posts: 87
Joined: Jul 2017
Reputation:
0
Estuary with a few small mods - End Time added back, larger fonts for the blurb, film duration not file size, TV menu items reordered to put Recordings first
Posts: 3,533
Joined: Jan 2011
Reputation:
376
pkscout
Team-Kodi Member
Posts: 3,533
If you haven't yet, try restarting Kodi. The language strings are all loaded at startup, so if you change things while Kodi is running, you won't see those changes until you restart.
Posts: 87
Joined: Jul 2017
Reputation:
0
Thanks for the suggestion but that's home.xml which, unless I'm missing something, does not cover the strings used in the context menu
Posts: 87
Joined: Jul 2017
Reputation:
0
Restarted and rebooted (just in case). Also done a contents search of the SSD to see in "Add to favourites" is any other file - and no.
Posts: 87
Joined: Jul 2017
Reputation:
0
Tried that folder with different versions of string.po with no success
Posts: 87
Joined: Jul 2017
Reputation:
0
Thanks - that works but 2 points:
I have to alter the version in Program Files which means it will get overwritten on update - or so I believe
and from the wiki
Take note, in Kodi, these are used as follows:
msgctxt "#label_id"
msgid label_text
msgstr translation
label_text defines the English text for the label.
translation is empty for "en_GB" labels, and the translation for other languages with msgid retaining the English text.
The important thing is that you cannot refer to the label with msgid in the settings.py file, you need to use the label_id which must be encoded in msgctxt as above.
which from my reading and understanding of it (obviously wrong) meant I should change the translation