Kodi Community Forum

Full Version: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Thx, will test it on Tuesday when I'm back at home.
Thought I'd give this a go again as I want to start work on moving labels to strings.po (thankfully the latest build runs fine) but I can't find how to move label to language file in the context menu.

Image

Awesome work by the way.

EDIT: Just remembered you told me it was ctrl+shift+m.

EDIT2: I guess the next question is can I speed this process up somehow?
(2015-05-24, 11:39)Hitcher Wrote: [ -> ]Thought I'd give this a go again as I want to start work on moving labels to strings.po (thankfully the latest build runs fine) but I can't find how to move label to language file in the context menu.

Image

Awesome work by the way.

EDIT: Just remembered you told me it was ctrl+shift+m.

EDIT2: I guess the next question is can I speed this process up somehow?

so ctrl+shift+m works for you?
The visibilty condition of that context menu entry was broken indeed. Should be fixed with https://github.com/phil65/SublimeKodi/co...1841a129c1
All good now thanks. Smile

One thing that would be useful when checking labels would be that the label gets selected when you press enter.
you mean when calling "check labels" from command palette?
Not sure if the API allows that in a nice manner.
No worries, I've finished moving them all now anyway.

Thanks.
Added a custom syntax highlighting file for Kodi Skin XMLs.
If all works fine then you should get blue-colored VAR/INFO/LOCALIZE references.
...and also added support for Include/Font/Var names in autocompletion. (so if you press crtl+space then you can quickly search and insert the include /var name)
Just found out that strings in variables aren't picked up (no surrounding labels tags I guess).

(2015-05-24, 21:23)b711 Wrote: [ -> ]@Hitcher: Many thanks for moving the strings into the language file. I prepared a first draft of a German language file (strings.po), which is generally based on the German translation of the confluence skin and was completed where necessary, but I tried to meet the length of the original strings, which - however - was not always possible. So some German strings are not fitting into the respective boxes just like expected in an earlier post. Since I do not know how to attach 'strings.po' to a post, send me a PM if someone is interested in testing the draft German translation.

However, it seems as if not yet all strings have been moved, e.g. "Watch Now" in the detailed view of a film or "TV Show Information" as well as the explanation/help entries of the Skin-Options on the right side of the menu
(2015-05-24, 23:02)Hitcher Wrote: [ -> ]Just found out that strings in variables aren't picked up (no surrounding labels tags I guess).

(2015-05-24, 21:23)b711 Wrote: [ -> ]@Hitcher: Many thanks for moving the strings into the language file. I prepared a first draft of a German language file (strings.po), which is generally based on the German translation of the confluence skin and was completed where necessary, but I tried to meet the length of the original strings, which - however - was not always possible. So some German strings are not fitting into the respective boxes just like expected in an earlier post. Since I do not know how to attach 'strings.po' to a post, send me a PM if someone is interested in testing the draft German translation.

However, it seems as if not yet all strings have been moved, e.g. "Watch Now" in the detailed view of a film or "TV Show Information" as well as the explanation/help entries of the Skin-Options on the right side of the menu

could you post the exact code of the labels which are not picked up?
Here's a few -

PHP Code:
    <variable name="RatingCountry">
        <
value condition="Stringcompare(Skin.String(RatingCountry),US)">US</value>
        <
value condition="Stringcompare(Skin.String(RatingCountry),UK)">UK</value>
        <
value condition="Stringcompare(Skin.String(RatingCountry),Germany)">Germany</value>
        <
value>US</value>
    </
variable>

    <
variable name="NextVideo">
        <
value condition="VideoPlayer.Content(episodes)">Next Episode</value>
        <
value condition="VideoPlayer.Content(movies)">Next Movie</value>
        <
value>Next Video</value>
    </
variable 

https://github.com/HitcherUK/skin.ftv/bl...iables.xml
hmm the thing is, if I would check all those too I would probably get a lot of false positives because Vars can be used for texture paths / labels / onclicks whatever. Not sure if I will be able to get that right 100%.

As an idea: Perhaps checkin all values which only contain a-z, A-Z, 0-9 and whitespace ?
No way of checking where the var is coming from?
(2015-05-24, 23:22)Hitcher Wrote: [ -> ]No way of checking where the var is coming from?
In theory yes, but hard to do. Some pure text-based recognition would be much easier to implement.
But feel free to put it on issues list, will give it a go then when I feel adventurous Smile
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22