• 1
  • 10
  • 11
  • 12(current)
  • 13
  • 14
  • 22
Release KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting
Thx, will test it on Tuesday when I'm back at home.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
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?
Reply
(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?
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
The visibilty condition of that context menu entry was broken indeed. Should be fixed with https://github.com/phil65/SublimeKodi/co...1841a129c1
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
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.
Reply
you mean when calling "check labels" from command palette?
Not sure if the API allows that in a nice manner.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
No worries, I've finished moving them all now anyway.

Thanks.
Reply
Added a custom syntax highlighting file for Kodi Skin XMLs.
If all works fine then you should get blue-colored VAR/INFO/LOCALIZE references.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
...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)
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
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
Reply
(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?
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
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
Reply
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 ?
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
No way of checking where the var is coming from?
Reply
(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
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
  • 1
  • 10
  • 11
  • 12(current)
  • 13
  • 14
  • 22

Logout Mark Read Team Forum Stats Members Help
KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting1