Results 1 to 10 of 10

Thread: RRTranslate

  1. #1
    Low Bitrate
    Join Date
    Oct 2010
    Location
    Ivry-Sur-Seine (France)
    Posts
    71

    RRTranslate

    V1 available (link at the bottom of this post)

    I had the idea of this plugin when creating my skin. I developed my skin in French but want to make it available on this forum (English).
    Rather than make available two skins I decided to do 1 skin with 1 plugin.

    This plugin allows you to translate your skin.
    It includes:
    a configuration file (translate.ini)
    a variables file ("skin name".ini, this allows the plugin to work with multiple skin)
    dll plugin (of course)

    It should also have in your skin folder a folder containing the language folders. (example: carwings\languages\English\)
    Each language folder must have mandatory an image file(representing the national flag), a .lng file(containing all define for the translation of labels, this file will be included in your skin) with the same name that language folder (example: english.jpg and english.lng)
    Optionally an image file for the banner of waiting(transparent or not, example: waiting.png) and a folder "images" (containing all images to be replaced in the translation).

    How does this plugin:
    1. when choosing the language, it displays the waiting banner if the option "waitimage" is true.
    2. Settings users variables (translate_language & translate_languageinc).
    3. if the option "images" is true, it copies the images from the folder images in the folder language.
    4. if the option "languagevar" is true, it sets the variables defined in the file "skin name".ini with respect from the file .lng.
    5. remove the waiting banner, if "waitimage" is true.
    6. reload the skin

    I use the "images" option because it may be that in your skin there have images with text (example: CARWINGS menu, back or more button)
    The "languagevar" option is used in order to position the variables to be used in exectbl.ini or other because it is not possible to use the define in exectbl.ini.
    example: in my skin I use the wifiman plugin, in exectbl.ini I have "ONWIFIMAN_CONNECTED","setvar;CONFIRMLABEL;tex t in french||MENU;wifi_popup.skin"
    I don't use define as incompatible with exectbl I therefore requires a variable will be set with my plugin "ONWIFIMAN_CONNECTED","setvar;CONFIRMLABEL;$VARIAB LE$||MENU;wifi_popup.skin",
    in "skin name".ini I have VARIABLE=DEF and in my french.lng I have /DEFINE DEF text in french and in english.lng /DEFINE DEF text in english
    Attached Images Attached Images      
    Attached Files Attached Files
    Last edited by shaken94; 12-06-2011 at 04:16 PM.

  2. #2
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,769
    It's a cool initiative but what is the difference with this plugin ?
    rrlanguage-net-the-multi-language-for-carwings_dynamic_lite.html

  3. #3
    Low Bitrate
    Join Date
    Oct 2010
    Location
    Ivry-Sur-Seine (France)
    Posts
    71
    The difference is that it also copies the images.
    Many skins used buttons in the images with text and it is impossible to translate without repeating the image. Therefore it was a set of french and english images.

    French:
    la différence est que celui-ci copie également les images.
    Beaucoup de skins utilise des boutons dans les images avec du texte et cela est impossible à traduire sans refaire l'image. Donc avec celui-ci on a un jeu d'image anglais et francais.

  4. #4
    Low Bitrate
    Join Date
    Oct 2010
    Location
    Ivry-Sur-Seine (France)
    Posts
    71
    it only needs the documentation and I post the first version

  5. #5
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,769
    Cool !!

  6. #6
    Low Bitrate
    Join Date
    Oct 2010
    Location
    Ivry-Sur-Seine (France)
    Posts
    71
    I'm sorry but i can't post the first version, my laptop died and all my sources are on it. So I search a solution to retrieve my sources. I think to take my HDD from my laptop and put it on my carpc then copy all sources on usb key, to work on PI at my house.

    Sorry again.
    Thanx

  7. #7
    Low Bitrate
    Join Date
    Oct 2010
    Location
    Ivry-Sur-Seine (France)
    Posts
    71
    ok I was able to repair the PC and get my source code. So I post a first version of RRTranslate.
    Feel free to play with and to list the bugs that you might find. Or improvements you think.

    Link to download the PI in the first post

    Thanx
    Last edited by shaken94; 12-05-2011 at 04:09 PM.

  8. #8
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,769
    The INC,Include\Iconbuttons.txt file is not into your example :-) !

  9. #9
    Low Bitrate
    Join Date
    Oct 2010
    Location
    Ivry-Sur-Seine (France)
    Posts
    71
    Ok thanx,
    I updated the setup but this line can be removed.

  10. #10
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,769
    Ok .

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •