Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translations do not work when started from a folder that has a subfolder named `locale` #8158

Open
ghost opened this issue Feb 2, 2019 · 2 comments

Comments

@ghost
Copy link

commented Feb 2, 2019

Issue type
  • Bug report
Minetest version
Minetest 5.0.0-dev-cf8b0ed (Linux)
Using Irrlicht 1.8.4
BUILD_TYPE=Release
RUN_IN_PLACE=1
USE_GETTEXT=1
USE_SOUND=1
USE_CURL=1
USE_FREETYPE=1
USE_LUAJIT=1
STATIC_SHAREDIR="."
OS / Hardware

Operating system: Linux 4.20.4-arch1-1-ARCH x86_64
CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz

Summary

Minetest tries to get the translations from a directory named locale in the directory it was started from when a directory named locale exists there, regardless of the directory’s content.

Steps to reproduce
  1. Clone Minetest Game and build Minetest as described in the readme
  2. Set language in minetest.conf to any other language than English to see the issue
  3. cd ~
  4. Start Minetest with ./minetest/bin/minetest everything works as expected
  5. mkdir locale
  6. Start Minetest with ./minetest/bin/minetest now it defaults to English
@Cool-Pan

This comment has been minimized.

Copy link

commented Feb 22, 2019

Note the output information of cmak.
There may be an output similar to this:

-- Locale blacklist applied; Locales used: ca;cs;da;de;dv;eo;es;et;fr;hu;id;it;ja;jbo;kn;lt;ms;nb;nl;pl;pt;pt_BR;ro;ru;sl;sr_Cyrl;sv;sw;tr;uk

I don't know why there have a blacklist.
If the locale you need is also in the blacklist.

You can compile .po to .mo by yourself using poedit,
and put it in the locale folder.

@ghost

This comment has been minimized.

Copy link
Author

commented Feb 26, 2019

The locale blacklist has nothing to do with this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.