First, just generally speaking: it's important in VoxCommando to use the editor tools provided in order to edit commands and payloads.
You should
not be opening payload XML files or your command XML in a text editor in order to edit the XML, if that's what you are doing. (I don't know if you are, but it seems like you might be based on your posts.)
These tools are also a more friendly way to view commands and payload XML files than a text editor.
The
payload XML editor can be accessed in VoxCommando's File menu, or directly within the
Command Tree Editor, by clicking on any payload XML that is already assigned to a command.
Second:
It's actually not such a big problem.
Use the Payload XML Editor to create a new payload XML file, where the Russian channel name is the
value and its equivalent English channel name is the
phrase. Save the file in your payloads folder, as "Channel_translations.xml" (see the example file that I've attached to this post).
Then replace the Kodi Live TV channel command that James provided the other day with the following:
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.1.4-->
<commandGroup open="True" name="Kodi Live TV" enabled="True" prefix="" priority="0" requiredProcess="" description="">
<command id="711" name="Switch to channel {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>PayloadXML.GetValue</cmdType>
<params>
<param>XbmcPayloads\xbmcTvChannels.xml</param>
<param>{1}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.Raw</cmdType>
<params>
<param>Player.Open</param>
<param>"item" : {"channelid" : {LastResult}}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>Switch to, Go to, Start</phrase>
<phrase>Channel</phrase>
<payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\Channel_translations.xml</payloadFromXML>
</command>
</commandGroup>
Now you can regularly generate the Kodi XML for the "xbmcTvChannels.xml" so that the channel IDs are updated as needed. As long as the Russian channel names don't change, then all this revised command does is:
1. Based on the English channel name you ask for, it will look up the Russian equivalent in your Channel_translations payload XML file.
2. It will then use the Russian channel name to look up the appropriate channel ID value in the xbmcTvChannels.xml file (which you can keep updating as needed).
3. This ID value becomes the {LastResult} that is passed to the Kodi action that navigates to the appropriate channel.