- i18n
- update 'Game Controller DB'
- favorites
Ludo is a work in progress libretro frontend written in go.
It is able to launch most non GL libretro cores.
It works on OSX, Linux, Linux ARM and Windows. You can download releases here
- GLFW 3.3
- OpenGL >= 2.1
- OpenAL
You can execute the following command and follow the instructions about exporting PKG_CONFIG
brew install openal-soft
sudo apt-get install libopenal-dev xorg-dev golang
You need to enable the experimental VC4 OpenGL support (Full KMS) in raspi-config.
sudo apt-get install libopenal-dev xorg-dev
sudo apk add musl-dev gcc openal-soft-dev libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev mesa-dev
Setup openal headers and dll in mingw-w64 include
and lib
folders.
git clone --recursive https://github.com/libretro/ludo.git
cd ludo
go build
For more detailed build steps, please refer to our continuous delivery config.
./ludo
The goi18n command manages message files used by the i18n package.
go install -v github.com/nicksnyder/go-i18n/v2/goi18n@latest
goi18n -help
Use goi18n extract
to extract all i18n.Message struct literals in Go source files to a message file for translation.
# active.en.toml
[PersonCats]
description = "The number of cats a person has"
one = "{{.Name}} has {{.Count}} cat."
other = "{{.Name}} has {{.Count}} cats."
-
Create an empty message file for the language that you want to add (e.g.
translate.es.toml
). -
Run
goi18n merge active.en.toml translate.es.toml
to populatetranslate.es.toml
with the messages to be translated.# translate.es.toml [HelloPerson] hash = "sha1-5b49bfdad81fedaeefb224b0ffc2acc58b09cff5" other = "Hello {{.Name}}"
-
After
translate.es.toml
has been translated, rename it toactive.es.toml
.# active.es.toml [HelloPerson] hash = "sha1-5b49bfdad81fedaeefb224b0ffc2acc58b09cff5" other = "Hola {{.Name}}"
-
Load
active.es.toml
into your bundle.bundle.RegisterUnmarshalFunc("toml", toml.Unmarshal) bundle.LoadMessageFile("active.es.toml")
If you have added new messages to your program:
- Run
goi18n extract
to updateactive.en.toml
with the new messages. - Run
goi18n merge active.*.toml
to generate updatedtranslate.*.toml
files. - Translate all the messages in the
translate.*.toml
files. - Run
goi18n merge active.*.toml translate.*.toml
to merge the translated messages into the active message files.
goi18n extract -outdir ./i18n/ && cd ./i18n/ && goi18n merge active.*.toml
#....translate -> all translate.*.toml
goi18n merge active.*.toml translate.*.toml && cd ../
go-i18n is available under the MIT license.