RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    EmulationStation localization (translation)

    Scheduled Pinned Locked Moved Ideas and Development
    emulationstatiolocalizationlanguageuser interface
    305 Posts 62 Posters 128.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • FlyingheadF
      Flyinghead @darknior
      last edited by

      Try to run it directly from the build directory:
      LANG=fr_FR.UTF-8 ./emulationstation

      darkniorD 1 Reply Last reply Reply Quote 0
      • darkniorD
        darknior @Flyinghead
        last edited by

        @flyinghead said in EmulationStation localization (translation):

        LANG=fr_FR.UTF-8 ./emulationstation

        I try to do it and WOAW it works really fine, so excellent to see ES in french lol

        After i close it, copy the LOCALE dir from build directory and now it works fine too.
        Your work is really perfect, i really wish it will be add as official on the Es-DEV git.

        I think it can ba a good idea to add a langage selection in UI SETTINGS to let the user force what he want. But using linux locale LANG by default is really a good idea :)

        Will you make a pull request on git ?

        Life is game, just play it !

        1 Reply Last reply Reply Quote 0
        • hiulitH
          hiulit @Flyinghead
          last edited by

          @flyinghead How can we add other languages?

          My little contributions to the RetroPie project:

          • Shell-Script-Boilerplate
          • Fun-Facts-Splashscreens
          • Limit-Last-Played-Games
          darkniorD FlyingheadF 2 Replies Last reply Reply Quote 0
          • darkniorD
            darknior @hiulit
            last edited by darknior

            @hiulit I tink by adding some new .po files like here https://github.com/flyinghead/EmulationStation/tree/master/locale/lang/fr/LC_MESSAGES

            And change "fr" to "de", "it", "es", "ru" ...

            In action :

            Life is game, just play it !

            1 Reply Last reply Reply Quote 1
            • FlyingheadF
              Flyinghead @hiulit
              last edited by

              @hiulit @darknior is right: create a new directory for the language, for example locale/lang/de/LC_MESSAGES then create a new emulationstation2.po file in it with the new language. Compile and you're done.

              1 Reply Last reply Reply Quote 1
              • darkniorD
                darknior @Flyinghead
                last edited by

                @flyinghead said in EmulationStation localization (translation):

                I used boost::locale for this implementation, although it seems the current trend is to get rid of it.

                Really thanks a lot for it :)
                But like you write you use BOOST and they try to remove it from ES source code :(
                Can you found an other solution to be sure your work will be add to the official ES ?
                Thanks

                Life is game, just play it !

                1 Reply Last reply Reply Quote 0
                • D
                  Doriann
                  last edited by

                  @darknior how to compile your emulationstation in retropie? Please help me, I do not have great knowledge.

                  darkniorD 1 Reply Last reply Reply Quote 0
                  • darkniorD
                    darknior @Doriann
                    last edited by

                    @doriann I can't explain all to you, you must know a little linux, git, and ssh.

                    You must connect your PI with SSH.
                    Use PI user, go to /home/pi create a /src/ directory
                    And :

                    git clone --recursive https://github.com/flyinghead/EmulationStation.git
                    cd EmulationStation
                    mkdir src
                    cd src
                    cmake . .
                    make
                    cd ..

                    Launch it with LANG=fr_FR.UTF-8 ./emulationstation
                    Or replace the real one in /opt/retropie/supplementary/emulationstation
                    And don't forgot the locale directory.

                    Life is game, just play it !

                    D 1 Reply Last reply Reply Quote 2
                    • D
                      Doriann @darknior
                      last edited by

                      @darknior thanks for reply. I'll try to change the language and tell you if I can. Who knows later you do not create a step-by-step tutorial. Thank you very much

                      1 Reply Last reply Reply Quote 0
                      • N
                        nofxman
                        last edited by

                        Hi everybody,

                        Thanks for the tutorial.
                        I launch the translation with LANG=fr_FR.UTF-8 ./emulationstation
                        But if I close Putty, ES returns to English.
                        I did not understand the last step for ES to stay in French.
                        Can you explain how to fix it?

                        thank you in advance

                        darkniorD 1 Reply Last reply Reply Quote 0
                        • thelostsoulT
                          thelostsoul @A12C4
                          last edited by

                          @a12c4 I am personally not really interested, but I think this is a really good idea and would be good for many players.

                          ๐Ÿ“œ RE/SET: 100 SNES Games for your RetroPie, ๐ŸŽ Share your hidden gems and insider tips

                          1 Reply Last reply Reply Quote 0
                          • darkniorD
                            darknior @nofxman
                            last edited by

                            @nofxman You only have to replace the original ES file by the new you have compiled.
                            And add this directory with french files : /tree/master/locale/lang/fr/LC_MESSAGES

                            Thanks @Flyinghead to update your fork yesterday ;)

                            Life is game, just play it !

                            H 1 Reply Last reply Reply Quote 0
                            • NeoskyriperN
                              Neoskyriper
                              last edited by

                              it would be nice to choose the language that you want in emulationstation configurations would be huge

                              1 Reply Last reply Reply Quote 0
                              • D
                                djuanes
                                last edited by

                                hi

                                Yes, I'm interested and I'm willing to help with Catalan translation.

                                NeoskyriperN 1 Reply Last reply Reply Quote 1
                                • NeoskyriperN
                                  Neoskyriper @djuanes
                                  last edited by Neoskyriper

                                  nice

                                  A12C4A 1 Reply Last reply Reply Quote 0
                                  • A12C4A
                                    A12C4 @Neoskyriper
                                    last edited by

                                    @neoskyriper He is just answering to my original message, which asked if people were interested if I add official localization support to ES.

                                    Before you ask anything related, I have nothing to do with the unofficial localization support which were posted some messages ago. Ask the author directly if you want some kind of support.

                                    Grid view wiki

                                    FlyingheadF 1 Reply Last reply Reply Quote 0
                                    • FlyingheadF
                                      Flyinghead @A12C4
                                      last edited by

                                      @a12c4 Needless to say, I'm interested in having official localization support in ES, and I'm willing to help.

                                      1 Reply Last reply Reply Quote 0
                                      • H
                                        HarioH @darknior
                                        last edited by

                                        @darknior said in EmulationStation localization (translation):

                                        You only have to replace the original ES file by the new you have compiled.
                                        And add this directory with french files : /tree/master/locale/lang/fr/LC_MESSAGES

                                        @darknior Hi, i'm stuck as @nofxman , working fine when i manually launch ES with LANG=fr_FR.UTF-8 ./emulationstation
                                        but when i replace emulationstation by my freshly compiled one, i got an error and it won't launch :-(

                                        The error :
                                        lvl0: Error - File type unknown! emulationstation: /src/EmulationStation/es-core/src/resources/Font.cpp:17: Font::FontFace::FontFace(ResourceData&&, int): Assertion `!err' failed. Aborted

                                        Any idea ?
                                        Can't i just script launch "LANG=fr_FR.UTF-8 ./emulationstation" ?

                                        And a big thank for your job @Flyinghead , i love it ;-)

                                        mituM FlyingheadF 2 Replies Last reply Reply Quote 0
                                        • mituM
                                          mitu Global Moderator @HarioH
                                          last edited by

                                          @harioh said in EmulationStation localization (translation):

                                          Can't i just script launch "LANG=fr_FR.UTF-8 ./emulationstation" ?

                                          You can modify the autostart.sh script and replace the default emulationstation program execution with the line above.

                                          1 Reply Last reply Reply Quote 0
                                          • FlyingheadF
                                            Flyinghead @HarioH
                                            last edited by

                                            @harioh You also need to copy the entire "resources" directory to /opt/retropie/supplementary/emulationstation

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.