2024-11-18, 17:39
Quote:xml:
msgctxt "#31395"
msgid "Resolution Media Flag Color"
msgstr ""
(for the sake of argument, assume in Kodi's main files, even though it is my personal file) > The string does not show up, however, when I switch it to:
xml:
msgctxt "#31395"
msgid "Resolution Media Flag Color"
msgstr "Resolution Media Flag Color"
Then the string shows up. When I right click to see what its definition should be, it should just take me there, regardless of what file it is no?
This occurs often from what I've seen where Kodi's main language has the string in msgid, but not msgstr and if not, then I add it to my local file for operation.
I'm not sure I understand, are you saying the definition only shows up if both msgid and msgstr have values? Because the only value I return is msgid, so it shouldn't matter if msgstr is empty.
Could you give an example of a Kodi string that fails please, so I can test.
Quote:Is it possible for it to navigate to Kodi's definition? And if it is not a normal operation most would want, make it a settings option to enable it for those that may want it?
The problem is the extension has no possible way to know where the Kodi po files are located. In order to decorate string from the Kodi po files I download a copy from the main Kodi github page to match against, however this isn't a VSCode document and thus can't be used to match definitions against.