Plugin Translation / General translation

Discussion in 'Plugin Development' started by Smeulf, January 12, 2011.

  1. Smeulf
    • Team MediaPortal

    Smeulf Test Group

    Joined:
    October 27, 2010
    Messages:
    672
    Likes Received:
    227
    Location:
    France
    Ratings:
    +228 / 0
    Home Country:
    France France
    Show System Specs
    Hi everyone,

    After talking to Albert, he told me the translation of MP2 will should be done with a "Language plugin".



    So I created a folder in the plugin directory, created a "plugin.xml" file info it, and created a sub folder "Language" containing a "strings_fr.xml", copied from \Plugins\SkinBase\Language\strings_en.xml file.

    When I put this string_fr.xml file into the SkinBase language directory, there's no problem, I can see my translations. But when it is only in the "French" plugin directory, nothing appends. The string remains as default.

    So my question is :

    Did I miss understood Albert, and the translation is "per plugin" and have to be in the same language plugin as the default language of the plugin, or is it my plugin that is wrong ? Or should it be done in an other way ?

    Can you have a look at the joined files ?

    Thanks in advance.

    Smeulf.
     

    Attached Files:

    • French.zip
      File size:
      873 bytes
      Uploaded:
      January 12, 2011
      Views:
      81
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Albert
    • Premium Supporter

    Albert MP2 Developer

    Joined:
    February 18, 2008
    Messages:
    1,297
    Likes Received:
    1,125
    Gender:
    Male
    Occupation:
    Dipl.-Inform.
    Location:
    Freiburg im Breisgau, Germany
    Ratings:
    +1,130 / 1
    Home Country:
    Germany Germany
    AW: Plugin Translation / General translation

    Ah, I see that you created a new GUID for plugin ID, very good.
    But the name is "Weather", I guess you copied it from the weather plugin. IIRC, the plugin's name must match it's directory name, so it should be "French" here. You should see a warning or an error in the log output which tells you that your plugin cannot be loaded.

    To answer your question: No, you're absolutely right; your translated strings should work if your plugin gets "accepted" by the plugin manager.
     
    • Like Like x 1
  4. Smeulf
    • Team MediaPortal

    Smeulf Test Group

    Joined:
    October 27, 2010
    Messages:
    672
    Likes Received:
    227
    Location:
    France
    Ratings:
    +228 / 0
    Home Country:
    France France
    Show System Specs
    Works mutch better with your bugfix.

    So now, I just have to start the translation, and I'll finish just when MP2 will be ready to be Alpha, without the need of the string management tool :p

    Btw, some news about this tool ?
     
    • Like Like x 2
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!