Edit Skin Layout?
#16
(2017-04-03, 12:59)ruhanin Wrote: Can anybody please tell me how do i modify the Home Menu Category Names in XML File?
i tried changing in Home.xml File but its not getting changed On the Main Home Screen. I don't want to use Estuary MOD Skin
I want to change TV-Live TV and TV Shows-TV Serials.
left panel category names appearing on the main screen can be changed directly in the home.xml file (\addons\skin.estuary\xml\home.xml) or, more elegantly, in the language strings.po file (for english - \addons\resource.language.en_gb\resources\strings.po)...

to make the changes directly in the home.xml file, scroll down to around line 800 and look for <item></item> blocks that contain <label>$localize[reference number]</label> code, for example:

<item>
<label>$LOCALIZE[342]</label>
<onclick condition="Library.HasContent(movies)">ActivateWindow(Videos,videodb://movies/titles/,return)</onclick>
<onclick condition="!Library.HasContent(movies)">ActivateWindow(Videos,sources://video/,return)</onclick>
<property name="menu_id">$NUMBER[5000]</property>
<thumb>icons/sidemenu/movies.png</thumb>
<property name="id">movies</property>
<visible>!Skin.HasSetting(HomeMenuNoMovieButton)</visible>
</item>

here you can change the name of any of the categories appearing on the left side of the main menu by changing the content of of the <label></label> code as follows (be sure to save file and restart kodi):

<item>
<label>your new category name here</label>
<onclick condition="Library.HasContent(movies)">ActivateWindow(Videos,videodb://movies/titles/,return)</onclick>
<onclick condition="!Library.HasContent(movies)">ActivateWindow(Videos,sources://video/,return)</onclick>
<property name="menu_id">$NUMBER[5000]</property>
<thumb>icons/sidemenu/movies.png</thumb>
<property name="id">movies</property>
<visible>!Skin.HasSetting(HomeMenuNoMovieButton)</visible>
</item>

in this area of the home.xml file you can also change the icon appearing to the left of the category name, delete the icon, add a new category, or delete a category....

here's the entire block of code in the home.xml file that relates to the left hand panel category names, again, starting at around line 800... immediately above this block of code there is additional code you can play with that determines the panel layout, including focus animation, position, etc...

Code:
<content>
<item>
<label>$LOCALIZE[342]</label>
<onclick condition="Library.HasContent(movies)">ActivateWindow(Videos,videodb://movies/titles/,return)</onclick>
<onclick condition="!Library.HasContent(movies)">ActivateWindow(Videos,sources://video/,return)</onclick>
<property name="menu_id">$NUMBER[5000]</property>
<thumb>icons/sidemenu/movies.png</thumb>
<property name="id">movies</property>
<visible>!Skin.HasSetting(HomeMenuNoMovieButton)</visible>
</item>
<item>
<label>$LOCALIZE[20343]</label>
<onclick condition="Library.HasContent(tvshows)">ActivateWindow(Videos,videodb://tvshows/titles/,return)</onclick>
<onclick condition="!Library.HasContent(tvshows)">ActivateWindow(Videos,sources://video/,return)</onclick>
<property name="menu_id">$NUMBER[6000]</property>
<thumb>icons/sidemenu/tv.png</thumb>
<property name="id">tvshows</property>
<visible>!Skin.HasSetting(HomeMenuNoTVShowButton)</visible>
</item>
<item>
<label>$LOCALIZE[2]</label>
<onclick>ActivateWindow(Music,root,return)</onclick>
<property name="menu_id">$NUMBER[7000]</property>
<thumb>icons/sidemenu/music.png</thumb>
<property name="id">music</property>
<visible>!Skin.HasSetting(HomeMenuNoMusicButton)</visible>
</item>
<item>
<label>$LOCALIZE[427]</label>
<onclick>PlayDisc</onclick>
<property name="menu_id">$NUMBER[21000]</property>
<thumb>icons/sidemenu/disc.png</thumb>
<property name="id">disc</property>
<visible>System.HasMediaDVD</visible>
</item>
<item>
<label>$LOCALIZE[20389]</label>
<property name="menu_id">$NUMBER[16000]</property>
<onclick>ActivateWindow(Videos,musicvideos,return)</onclick>
<thumb>icons/sidemenu/musicvideos.png</thumb>
<property name="id">musicvideos</property>
<visible>!Skin.HasSetting(HomeMenuNoMusicVideoButton)</visible>
</item>
<item>
<label>$LOCALIZE[19020]</label>
<property name="menu_id">$NUMBER[12000]</property>
<onclick>ActivateWindow(TVChannels)</onclick>
<thumb>icons/sidemenu/livetv.png</thumb>
<property name="id">livetv</property>
<visible>!Skin.HasSetting(HomeMenuNoTVButton)</visible>
</item>
<item>
<label>$LOCALIZE[19021]</label>
<property name="menu_id">$NUMBER[13000]</property>
<onclick>ActivateWindow(RadioChannels)</onclick>
<thumb>icons/sidemenu/radio.png</thumb>
<property name="id">radio</property>
<visible>!Skin.HasSetting(HomeMenuNoRadioButton)</visible>
</item>
<item>
<label>$LOCALIZE[24001]</label>
<property name="menu_id">$NUMBER[8000]</property>
<onclick>ActivateWindow(1100)</onclick>
<thumb>icons/sidemenu/addons.png</thumb>
<property name="id">addons</property>
<visible>!Skin.HasSetting(HomeMenuNoProgramsButton)</visible>
</item>
<item>
<label>$LOCALIZE[1]</label>
<onclick>ActivateWindow(Pictures)</onclick>
<property name="menu_id">$NUMBER[4000]</property>
<thumb>icons/sidemenu/pictures.png</thumb>
<property name="id">pictures</property>
<visible>!Skin.HasSetting(HomeMenuNoPicturesButton)</visible>
</item>
<item>
<label>$LOCALIZE[3]</label>
<onclick>ActivateWindow(Videos,root)</onclick>
<property name="menu_id">$NUMBER[11000]</property>
<thumb>icons/sidemenu/videos.png</thumb>
<property name="id">video</property>
<visible>!Skin.HasSetting(HomeMenuNoVideosButton)</visible>
</item>
<item>
<label>$LOCALIZE[10134]</label>
<onclick>ActivateWindow(favourites)</onclick>
<property name="menu_id">$NUMBER[14000]</property>
<thumb>icons/sidemenu/favourites.png</thumb>
<property name="id">favorites</property>
<visible>!Skin.HasSetting(HomeMenuNoFavButton)</visible>
</item>
<item>
<label>$LOCALIZE[8]</label>
<onclick condition="!String.IsEmpty(Weather.Plugin)">ActivateWindow(Weather)</onclick>
<onclick condition="String.IsEmpty(Weather.Plugin)">ReplaceWindow(servicesettings,weather)</onclick>
<property name="menu_id">$NUMBER[15000]</property>
<thumb>icons/sidemenu/weather.png</thumb>
<property name="id">weather</property>
<visible>!Skin.HasSetting(HomeMenuNoWeatherButton)</visible>
</item>
</content>

if you want to approach this more elegantly, then you would make your changes to the language file as mentioned earlier, not to the home.xml file... to do this you would use the reference number that appears in the <label></label> brackets, for example you would use 24001 in the <label>$LOCALIZE[24001]</label> bracket and then find this reference number in the language file as follows:

#: xbmc/filesystem/AddonsDirectory.cpp
#: addons/skin.estuary/1080i/Includes.xml
#: addons/skin.estuary/1080i/SkinSettings.xml
#: addons/skin.estuary/1080i/Home.xml
msgctxt "#24001"
msgid "Add-ons"

msgstr ""

then you would change the msgid name to whatever name you wanted, as follows:

#: xbmc/filesystem/AddonsDirectory.cpp
#: addons/skin.estuary/1080i/Includes.xml
#: addons/skin.estuary/1080i/SkinSettings.xml
#: addons/skin.estuary/1080i/Home.xml
msgctxt "#24001"
msgid "your ne category name here"

msgstr ""


disclaimer: i'm new to this stuff and am only offering what has worked for me, and can't guarantee that it's the correct way to do it!
Reply


Messages In This Thread
Edit Skin Layout? - by aeneas1 - 2017-02-03, 09:18
RE: Edit Skin Layout? - by DarrenHill - 2017-02-03, 11:04
RE: Edit Skin Layout? - by krisu - 2017-02-03, 16:54
RE: Edit Skin Layout? - by Gracus - 2017-02-03, 17:04
RE: Edit Skin Layout? - by aeneas1 - 2017-02-03, 22:50
RE: Edit Skin Layout? - by aeneas1 - 2017-02-03, 22:45
RE: Edit Skin Layout? - by Andrew-M - 2017-02-04, 12:32
RE: Edit Skin Layout? - by aeneas1 - 2017-02-04, 13:23
RE: Edit Skin Layout? - by ruhanin - 2017-04-03, 12:15
RE: Edit Skin Layout? - by aeneas1 - 2017-02-05, 23:05
RE: Edit Skin Layout? - by k_zeon - 2017-02-07, 20:40
RE: Edit Skin Layout? - by ralves58 - 2017-05-19, 17:25
RE: Edit Skin Layout? - by aeneas1 - 2017-05-19, 18:13
RE: Edit Skin Layout? - by ralves58 - 2017-05-22, 10:00
RE: Edit Skin Layout? - by aeneas1 - 2017-05-22, 11:45
RE: Edit Skin Layout? - by jjd-uk - 2017-02-06, 00:42
RE: Edit Skin Layout? - by aeneas1 - 2017-02-07, 09:00
RE: Edit Skin Layout? - by docwra - 2017-02-07, 10:43
RE: Edit Skin Layout? - by ruhanin - 2017-04-03, 12:59
RE: Edit Skin Layout? - by aeneas1 - 2017-04-04, 09:20
RE: Edit Skin Layout? - by ruhanin - 2017-04-04, 12:36
RE: Edit Skin Layout? - by aeneas1 - 2017-04-04, 19:13
RE: Edit Skin Layout? - by ruhanin - 2017-04-05, 09:00
Re: Edit Skin Layout? - by ralves58 - 2017-05-23, 08:39
RE: Edit Skin Layout? - by aeneas1 - 2017-05-23, 09:12
RE: Edit Skin Layout? - by ralves58 - 2017-05-23, 21:59
RE: Edit Skin Layout? - by Karellen - 2017-05-23, 22:16
RE: Edit Skin Layout? - by Pisomojado - 2017-06-03, 21:00
RE: Edit Skin Layout? - by enigmaa - 2017-06-11, 08:29
RE: Edit Skin Layout? - by aeneas1 - 2017-06-11, 17:05
RE: Edit Skin Layout? - by enigmaa - 2017-06-14, 19:37
RE: Edit Skin Layout? - by aeneas1 - 2017-06-27, 11:45
RE: Edit Skin Layout? - by plvlad - 2018-03-14, 15:55
Logout Mark Read Team Forum Stats Members Help
Edit Skin Layout?0