WMC design for MP2 skin (1 Viewer)

Status
Not open for further replies.

henso

Development Group
  • Team MediaPortal
  • February 16, 2012
    2,173
    736
    Denmark Denmark
    Country flag
    @ge2301
    The ARTIST label seems to be taken from the occupation type of the ParsonAspect. Is taht correct? If yes, shouldn't it be localized?
     

    ge2301

    MP2 Design
  • Team MediaPortal
  • January 11, 2014
    6,622
    2,387
    Stuttgart
    Germany Germany
    Country flag

    henso

    Development Group
  • Team MediaPortal
  • February 16, 2012
    2,173
    736
    Denmark Denmark
    Country flag
    Is it not because their occupation is artist?
    Yes, it is but it is more of an type ID than it is a label. It's to identify what type of person the data is for. You can see the different types of persons here.
    You could use those "ID"'s for writing the localized text in the label.
     

    ge2301

    MP2 Design
  • Team MediaPortal
  • January 11, 2014
    6,622
    2,387
    Stuttgart
    Germany Germany
    Country flag
    Ok, that explains the capital letters ;). I'll add a localized label based on the property of occupation.
    I localized, but there are 2 small issues for which I need a dev hint:
    • It seems I can not place strings (ACTOR, ...) directly into the ExpressionMultiValueConverter. Shall I add further bindings for each one with "Binding Souce=..."?
    • And I have problems to bind localization content [Media.xxx]. Instead of the localized text the LabelName with brackets is shown.
    XML:
                <Label FontSize="{ThemeResource SmallFontSize}" Color="{ThemeResource MenuTextBackground}" Opacity="1.3">
                  <Label.Content>
                    <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}"
                                  ConverterParameter="{}{0} == ARTIST ? {1} : ({0} == ACTOR ? {2} : ({0} == WRITER ? {3} : ({0} == DIRECTOR ? {4} : ({0} == COMPOSER ? {5}))))">
                      <Binding Path="Occupation"/>
                      <Binding Source="[Media.ArtistOccupationName]"/>
                      <Binding Source="[Media.ActorOccupationName]"/>
                      <Binding Source="[Media.WriterOccupationName]"/>
                      <Binding Source="[Media.DirectorOccupationName]"/>
                      <Binding Source="[Media.ComposerOccupationName]"/>
                    </MultiBinding>
                  </Label.Content>
                </Label>
    Edit: Following does also not bring any result
    XML:
                <Label FontSize="{ThemeResource SmallFontSize}" Color="{ThemeResource MenuTextBackground}" Opacity="1.3">
                  <Label.Content>
                    <MultiBinding Converter="{StaticResource ExpressionMultiValueConverter}"
                                  ConverterParameter="{}{0} == {1} ? {6} : ({0} == {2} ? {7} : ({0} == {3} ? {8} : ({0} == {4} ? {9} : ({0} == {5} ? {10}))))">
                      <Binding Path="Occupation"/>
                      <Binding Source="ARTIST"/>
                      <Binding Source="ACTOR"/>
                      <Binding Source="WRITER"/>
                      <Binding Source="DIRECTOR"/>
                      <Binding Source="COMPOSER"/>
                      <Binding Source="[Media.ArtistOccupationName]"/>
                      <Binding Source="[Media.ActorOccupationName]"/>
                      <Binding Source="[Media.WriterOccupationName]"/>
                      <Binding Source="[Media.DirectorOccupationName]"/>
                      <Binding Source="[Media.ComposerOccupationName]"/>
                    </MultiBinding>
                  </Label.Content>
                </Label>
     
    Last edited:
    Status
    Not open for further replies.

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    N Migrating from WMC Newcomers Forum 43
    T [solved] Coming from WMC and completely lost General 6
    P WMC on Windows 7 migrating to Media Portal on Windows 10 Newcomers Forum 5
    1 [Pending] Feature Request: TV-Recording - more intelligence - like WMC please Feature Requests 9
    D [fixed] Image browser crashing in Folder View (WMC skin) 2.2 Archive 10
    P WMC Skin full screen/EPG Skins and Design 3
    B [MP2-744] WMC home content focus improvements Archive 55
    ajs [fixed] 5029: Add the ability to choose the type of pause for designers in the slideshow MediaPortal 1 4
    ge2301 New forum design together with change to XF2.x Online Facilities 4
    JJDoherty Designing & implementing a new skin... Skins and Design 8
    M.Hulot Fragen zu FSK-Angaben/Symbole + Cover-Design-Darstellung Allgemeines Supportforum 9
    mp2-ulrich [solved] MP 2.2.3 spielt nur manche Sender Allgemeines Support- und Diskussionsforum 2
    H MP2 database won't keep in synch with recordings General 8
    H [solved] MP2 Wiedergabe von Aufnahmen und Live TV geht nicht Allgemeines Support- und Diskussionsforum 6
    ge2301 [WiP] MP2Web - A platform independent web client for MP2 MediaPortal 2 68
    F Problems with new install of MP2 Newcomers Forum 3
    catalpa Bug MP2-837 Allgemeines Support- und Diskussionsforum 2
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    bigboss97 Does anyone has a SoundGraph imon remote file for MP2 to share? General 0
    ge2301 Android based client for MP2 MediaPortal 2 3
    R MP2 GUI Issues General 7
    P [solved] MP2 new install, 2 x hdhomerun tuners, client on same PC unable to view TV & recordings Newcomers Forum 8
    Lichloathe MP2 importing keyart instead of poster General 0
    Lichloathe Trakt for MP2 question General 7
    C Streaming/transcoding MP2 vs MP1? General 1
    Similar threads

























    Top Bottom