Tdesktop: Fwd: use locale setting

Created on 11 May 2017  路  5Comments  路  Source: telegramdesktop/tdesktop

Salvo Tomaselli writes on https://bugs.debian.org/861861

> The UI has a setting to pick the locale, but really it should just read whatever locale the session is using and apply that, if the translation is available, rather than having me manually do that.

How to reproduce

Launch Telegram with non-English locale, but supported by Telegram Desktop. For example, via command: LANG=it_IT.UTF-8 ~/path/to/Telegram.

Expected behaviour

Telegram should be started in Italian language.

Actual behaviour

Telegram is started in English language.

Configuration

Operating system: Debian 9.0 GNU/Linux 4.9.0
Version of Telegram Desktop: 1.0.29

Most helpful comment

By the way, gettext, the most popular translation system in Unix, is guided by the following rules to determine a current language.
https://www.gnu.org/software/gettext/manual/html_node/gettext_2.html#Locale-Environment-Variables

All 5 comments

@mymedia2 The LANG env variable is a standard for translation in Linux?

I don't know exactly, but I also tested it on a clear system with Italian default locale.

Generally speaking, usually LC_MESSAGES environment variable is responsible for language of user interface. Besides there are LANG and LANGUAGE for this propose.

By the way, gettext, the most popular translation system in Unix, is guided by the following rules to determine a current language.
https://www.gnu.org/software/gettext/manual/html_node/gettext_2.html#Locale-Environment-Variables

2941 ?

Well, It's really duplicate of #2941

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

abhyrz picture abhyrz  路  3Comments

luisalvarado picture luisalvarado  路  3Comments

matteotumiati picture matteotumiati  路  3Comments

LeonTheOriginal picture LeonTheOriginal  路  3Comments