Time of the tv shows right to left - hebrew (1 Viewer)

logictester

Portal Member
December 25, 2006
39
0
45
Home Country
Israel Israel
TV-Server Version:
MediaPortal Version: 2.2.0 + SVN
MediaPortal Skin: Blue Two
Windows Version: Vista 32bit
CPU Type: AMD 3500+
HDD: WD 200GB
Memory: 2Gb DDR
Motherboard: MSI
Motherboard Chipset:
Motherboard Bios:
Video Card: ATI X1150
Video Card Driver: Omega 7.2
Sound Card: Realtek HD Audio
Sound Card AC3:
Sound Card Driver:
1. TV Card: Hauppauge 150
1. TV Card Type: Analog
1. TV Card Driver: 2.6xx
2. TV Card:
2. TV Card Type:
2. TV Card Driver:
3. TV Card:
3. TV Card Type:
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec:
MPEG2 Audio Codec:
Satelite/CableTV Provider: YES
HTPC Case: Leantek
Cooling: Coolermaster fans
Power Supply:
Remote: MCE version 2
TV: Metz, Hyundai
TV - HTPC Connection: Component

Hello,

In any skin - when using hebrew as a language - the time of tv shows in the channel info screen is shown right to left - supposed to be - 17:50 - and it shows 05:71, evrything else is displayed correctly

Thank you
 

rtv

Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    Please supply a screenshot about what you refer to as "channel info screen".
     

    logictester

    Portal Member
    December 25, 2006
    39
    0
    45
    Home Country
    Israel Israel
    Hi
    Thanks for your reply
    here are the images - one from blue two and one from revision skins (green is correct, red is incorrect)
     

    logictester

    Portal Member
    December 25, 2006
    39
    0
    45
    Home Country
    Israel Israel
    Hello

    Any progress on this? could you maybe point me to where the txt is need to be changed

    Thanks again
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    In TVOSD.cs there's a function: "void ShowPrograms()"

    Code:
            // On TV Now
            if (tbOnTvNow != null)
            {
              strTime = String.Format("{0} ", prog.StartTime.ToString("t", CultureInfo.CurrentCulture.DateTimeFormat));
              tbOnTvNow.Label = strTime + prog.Title;
              GUIPropertyManager.SetProperty("#TV.View.start", strTime);
    
              strTime = String.Format("{0} ", prog.EndTime.ToString("t", CultureInfo.CurrentCulture.DateTimeFormat));
              GUIPropertyManager.SetProperty("#TV.View.stop", strTime);
              GUIPropertyManager.SetProperty("#TV.View.remaining", Utils.SecondsToHMSString(prog.EndTime - prog.StartTime));
            }

    if you e.g. edit the line to "tbOnTvNow.Label = prog.Title;" you will remove the faulty time.

    Then you could edit the skin, add a new "label" control with "#TV.View.start" and "#TV.View.stop" to use the times of the progressbar on top.

    I currently cannot think of a solution which will keep everything as before and fixes your issue without breaking every other skin out there :oops:
     

    logictester

    Portal Member
    December 25, 2006
    39
    0
    45
    Home Country
    Israel Israel
    ok, could you please point me to where do i find the .cs file?
     

    alonz

    Portal Member
    May 11, 2007
    29
    0
    Home Country
    Israel Israel
    HELLO
    being Hebrew user myself and after logictester ask for my help in this issue this is what i got

    this is not skin but issue the skin area that are responsible to the configuration in this part of mp is inside the skin folder in the file TVOSD.xml

    <control>
    <description>On tv NOW</description>
    <id>36</id>
    <type>textbox</type>
    <width>474</width>
    <height>24</height>
    <posX>882</posX>
    <posY>662</posY>
    <align>left</align>
    <font>font14</font>
    <textcolor>ccffffff</textcolor>
    <animation effect="fade" time="200">visiblechange</animation>
    <animation effect="fade" time="200">windowopen</animation>
    </control>
    <control>
    <description>On tv NEXT</description>
    <id>37</id>
    <type>textbox</type>
    <width>474</width>
    <height>24</height>
    <posX>882</posX>
    <posY>690</posY>
    <align>left</align>
    <font>font14</font>
    <textcolor>ccffffff</textcolor>
    <animation effect="fade" time="200">visiblechange</animation>
    <animation effect="fade" time="200">windowopen</animation>
    </control>
    <control>

    you can see that the section id of On tv NOW and On tv NEXT are 36 and 37
    the text that come to this part is configured in the source code as rtv said in GUITVOSD.cs

    you can find it here http://mediaportal.svn.sourceforge....rtal/WindowPlugins/GUITV/GUITVOSD.cs?view=log

    you can see there that what feeding 36 and 37 are

    [SkinControlAttribute(36)]
    protected GUITextControl tbOnTvNow = null;
    [SkinControlAttribute(37)]
    protected GUITextControl tbOnTvNext = null;

    and later in the code you can see the code that rtv post
    now for what i tested the problem is cause by Hebrew characters combining with the time cause it to flip

    since i'm not a programmer and don't have any C++ editor/compiler what i did was to change the skin in the part above to not take it's data from the code \
    i changed the id number the title and add a label just like rtv suggested
    for example

    <control>
    <description>On tv</description>
    <id>46</id>
    <type>textbox</type>
    <width>474</width>
    <height>24</height>
    <posX>882</posX>
    <posY>662</posY>
    <align>left</align>
    <font>font14</font>
    <label>#TV.View.title #TV.View.start</label>
    <textcolor>ccffffff</textcolor>
    <animation effect="fade" time="200">visiblechange</animation>
    <animation effect="fade" time="200">windowopen</animation>
    </control>
    <control>
    <description>On tv later</description>
    <id>47</id>
    <type>textbox</type>
    <width>474</width>
    <height>24</height>
    <posX>882</posX>
    <posY>690</posY>
    <align>left</align>
    <font>font14</font>
    <label>#TV.View.title #TV.View.stop</label>
    <textcolor>ccffffff</textcolor>
    <animation effect="fade" time="200">visiblechange</animation>
    <animation effect="fade" time="200">windowopen</animation>
    </control>
    <control>


    now by reversing the order of "#TV.View.title #TV.View.start" instead of "strTime + prog.Title" that came from the source now the output look normal except the time is in the left side instead of the right

    16:00 test
    instead of
    test 16:00

    of course it there is a another problem, if the program name containing number it will give wired result like

    2 16:00 חלק
    instead of חלק 2 16:00


    but i guess it better than nothing

    another option is to disable the #TV.View.start all together since in most skins its display anyway in another part of the screen

    now i have small request for the developers among you
    can you please compile the relevant dll with a small changes to the GUITVOSD.cs
    one version with tbOnTvNow.Label = strTime + prog.Title;
    and another version with tbOnTvNow.Label = prog.Title;
    and upload the dll file for the hebrew users (both of us :) )
    thanks

    or if someone of the developer have another idea on how to fix it in a better way that will be great
     

    alonz

    Portal Member
    May 11, 2007
    29
    0
    Home Country
    Israel Israel
    no i figured out that my solution is not quite good
    cause by disabling the the tbOnTvNow.Label and using label in the skin the name of the show is not dynamic any more
    it will only show the name of the program thats now playing but if i move the next program i can see the description of the next program but the name of the current show

    so the solution will have to come form the source code and not from the skin workaround

    can someone please compile the GUITVOSD.cs
    with tbOnTvNow.Label = strTime + prog.Title;
    and another version with tbOnTvNow.Label = prog.Title;

    please :(
     

    logictester

    Portal Member
    December 25, 2006
    39
    0
    45
    Home Country
    Israel Israel
    pretty please?
    and alonz - thanks for your help - hope someone will compile it for us :)
     

    Users who are viewing this thread

    Top Bottom