GithubHelp home page GithubHelp logo

jackiexie168 / eslocalizetool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from benjenq/eslocalizetool

0.0 0.0 0.0 8.63 MB

A powerful tool to localized the ES (EmulationStation) source code.

Python 99.74% C 0.04% CMake 0.22%

eslocalizetool's Introduction

EmulationStation Source Code Localized Tool

A powerful tool to localized the ES (EmulationStation) source code. Easy to use and support the lastest ES source code.

screenshot of ESLocaleTool

Precheck ES source code compile environment

Only for Linux base.

  • Download dependencies of packages.
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install git
sudo apt-get install libsdl2-dev libfreeimage-dev libfreetype6-dev libcurl4-openssl-dev rapidjson-dev \
  libasound2-dev libgles2-mesa-dev build-essential cmake fonts-droid-fallback libvlc-dev \
  libvlccore-dev vlc-bin
  • Resolve dependencies of libraries.
sudo apt-get install -y libboost-system-dev libboost-filesystem-dev libboost-date-time-dev libboost-locale-dev libfreeimage-dev libfreetype6-dev libeigen3-dev libcurl4-openssl-dev libasound2-dev cmake libsdl2-dev gettext

Suggestion : You must confirm if it's possible to compile ES source code in your system. Please check Retropie official tutorial.

Prepare for this Tool

This tool was based on python 3 and support cross-platform.

  • Install Python 3 runtime on your system. Python version >= 3.8+ recommend.
  • Install PyQt5 via your favorite method, ex:

For Windows / macOS users:

pip install -v pyqt5

or For Linux base users:

sudo apt install python3-pyqt5 
  • Download this code:
git clone https://github.com/benjenq/ESLocalizeTool.git
  • Launch.
cd ESLocalizeTool
python3 ESLocalize_ui.py

How to use

  • Download ES source code from Retropie official repository on Github.

  • Choose ES source code folder.

  • Click Start localization process button. The process will go through in few seconds. (Not more then 5 seconds usually.)

  • When the process finished, it will popup ES compiled command scripts. Choose what you need (Linux / Raspberry) and click Copy.

  • If you check Overwrite source ?, you can direct to ES source code folder. Just paste the scripts to compile ES.

  • If you don't check Overwrite source ?, you will got a new folder name output in the same location as ES source code folder (NOT under ES source code folder). It's all modified ES source code. You can compare the different, or just overwrite back to ES source code mamually.

<workspace folder>
    |--- EmulationStation
    |--- output

Demo of ESLocaleTool

Notice : Although it support cross-flatform, but you must compile ES code in linux base OS.

  • When ES compile finished, you will got a new binary file emulationstation in EmulationStation source code folder. Just run or copy this binary to the default location (/opt/retropie/supplementary/emulationstation/):
sudo cp ./emulationstation /opt/retropie/supplementary/emulationstation/
sudo cp -r locale /opt/retropie/supplementary/emulationstation/

Console mode (Command line mode)

You can also run this tool by console mode:

python3 ESLocalize_cmd.py

It works for your os without desktop environment.

Supplemental Instruction

  1. You can use pyinstaller command to create direct executable file:
pyinstaller ESLocalied_ui.spec

or download executable file from Release tab.

  1. When localization process finished, A file reports.txt created ( located in the ES source directory when check Overwrite source ? or under output folder). You could see from reports.txt which code of files has been modified.

Author

benjenq

Credits

Thanks to:

  • flyinghead - For source code reference & the French translations.
  • heloisa - For the Portuguese (Brazilian) and Spanish (Spain) translations.
  • wakaya - For the Japanese translations and for the instructions on how to use the localized EmulationStation.
  • hiulit - For the Catalan and Spanish (Spain) translations.
  • Taranchul - For the German translations.
  • Unknown - For the Italian translations.
  • losernator - For the Korean translations.

eslocalizetool's People

Contributors

benjenq avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.