Blue Vision (3 Viewers)

ge2301

Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,741
    3,501
    Stuttgart
    Home Country
    Germany Germany
    I've attached the strings_de.xml (also it probably would be better to do this on transiflex... :oops: )

    Agree
    I have never heard about Transiflex. Could somebody explain me what it is and how translations should be handled basically?
    If somebody is experiened and would support, I would be very grateful :)
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,565
    3,946
    Lehmden
    Home Country
    Germany Germany
    Hi.Transifex (sorry for the typo above) is an online service that provides localisation services for projects. MP2 is one of those projects, that are registered at Transifex... It's free for Open Source Projects (afaik) and MP2 is translated by community members via Transifex.
    https://www.transifex.com/
    You need to have an account there and an invitation (iirr) then you can translate the project into every language you want. It's a long time since I was there the last time, so I'm not sure how this is working exactly any more... Those typical strings_en.xml are normally files that came from Transifex
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    I'm trying to add some more media info logos, so I need a list of common values. Who ever is able to do this query, please post your results of video encodings.

    This SQL query
    SQL:
    select distinct videoencoding from m_videoitem order by 1
    does show for me:
    Code:
    AVC
    DivX 5
    MPEG-2 Video
    Sorenson H263
    V_MPEGH/ISO/HEVC
    XviD
    Can you post your results, please? I need as many different types as possible to create matching filenames.

    You see that HEVC type will cause issues due to "/" in name. So I will add a converter to replace non-valid characters from filenames.

    @Developers and @Testers can you please help here?
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Next issue: audio formats.
    SQL:
    select distinct audioencoding from m_videoitem order by 1
    gives me:
    Code:
    AAC LC
    AAC LC, AC3
    AC3
    AC3, DTS
    AC3, MP3
    AC3, Vorbis
    DTS
    DTS, AC3
    MP2
    MP3
    MPEG-1 Audio layer 2
    MPEG-1 Audio layer 2, AC3
    MPEG-1 Audio layer 2, AC3, AC3+
    Here we need more work, i.e. adding a kind of string splitter converter. Need to check what would work best for those cases.
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,565
    3,946
    Lehmden
    Home Country
    Germany Germany
    Hi.
    Here is my query result for video:
    Zwischenablage-2.jpg


    And here for audio:
    Zwischenablage-3.jpg


    Hope the screenshots from SQLiteExpert are OK. If you need it as text I will repeat this in shell window.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Thanks! I have added / copied the logos so they will fit the MP2 style encoding types.

    I've also added 2 new converters:
    1. SafeFilenameConverter --> Works like StringFormatConverter, but replaces all invalid file name characters by "_"
    2. StringSplitConverter --> Converts a list like "MP2, AC3" into a List<String>{"MP2", "AC3"} which a ListView can bind to. This allows you to create list of strings.
    @ge2301: I already added an example ListViewStyle for AudioEncodings, can you try to add it in a good way to CP screen?

    Example for 1): only other converter name (SafeFilenameConverter)
    XML:
      <Image Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Stretch" Stretch="Uniform" Width="300" >
      <Image.Source>
      <Binding Path="VideoEncoding" Converter="{StaticResource SafeFilenameConverter}" ConverterParameter="{}Medialogos\video\{0}.png"/>
      </Image.Source>
      </Image>

    Example for 2):
    XML:
      <ListView Grid.Row="1" Grid.RowSpan="5" Grid.Column="2" x:Name="AudioLanguageList" ItemsSource="{Binding Path=AudioEncoding, Converter={StaticResource StringSplitConverter}}"
      HorizontalAlignment="Center" VerticalAlignment="Stretch"
      Style="{ThemeResource AudioEncodingListViewStyle}" Margin="10,5,10,5" />
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,741
    3,501
    Stuttgart
    Home Country
    Germany Germany
    @ge2301: I already added an example ListViewStyle for AudioEncodings, can you try to add it in a good way to CP screen?
    Sure, I can do. But it might be difficult until tomorrow evening :( I'll move to another apartment and have to do lot of paper work with there location service after work. I'll try tonight, but need to convince my wife later ;)
     

    Users who are viewing this thread

    Top Bottom