The problem with the localization of software after upgrading Ubuntu 15.04 to 15.10

Asked by qub

I installed Ubuntu 15.04 and use the English localization of the system. However, sometimes I need to run the program Geany using Russian localization. What would start Geany in the Russian locale, I wrote in the terminal the following command:

LANG="ru_RU.UTF-8" geany

And it worked. But after upgrading Ubuntu version 15.04 to 15.10, this feature has stopped working. Why did this happen, I need to work this possibility?

My locale command output:
----
locale

LANG=en_US.UTF-8
LANGUAGE=en_US
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=ru_RU.UTF-8
LC_TIME=ru_RU.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=ru_RU.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=ru_RU.UTF-8
LC_NAME=ru_RU.UTF-8
LC_ADDRESS=ru_RU.UTF-8
LC_TELEPHONE=ru_RU.UTF-8
LC_MEASUREMENT=ru_RU.UTF-8
LC_IDENTIFICATION=ru_RU.UTF-8
LC_ALL=

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Does Geany run but in the wrong locale, or does it just not load at all?

Is there any output to the terminal?

If you make a fresh Ubuntu user and login as it then use the same method is it OK?

Revision history for this message
qub (qub-box) said :
#2

Geany started with English interface, ie, in the wrong location.

When you run in the terminal there is no output

Under another user all the same.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Open system settings - language support and verify whether English and Russian language packages are correctly installed.

Revision history for this message
qub (qub-box) said :
#4

I checked out what languages are installed, and there was the English and Russian languages. I even reinstalled all of the packages for the English and Russian language and rebooted the PC, but none of it did not help. How to run Geany in English and runs.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

What do you get if you open a terminal window and issue the commands

LANG=ru_RU.UTF-8 geany
LANG=ru_RU geany
LANG=ru geany

Does any of these commands work as desired, or do you see any error messages related to language settings?

Revision history for this message
qub (qub-box) said :
#6

In all three cases, Geany opened with an English interface

In the first case (LANG=ru_RU.UTF-8 geany) there is no output at terminal

In the second (LANG=ru_RU geany) and third (LANG=ru geany) case the same message is displayed in the terminal

(process:3660): Gtk-WARNING **: Locale not supported by C library.
 Using the fallback 'C' locale.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

What is the output of the command

ls -l /usr/share/locale/ru/LC_MESSAGES/geany.mo

Revision history for this message
qub (qub-box) said :
#8

The problem is not only Geany, but also in other GTK applications. Geany, I took as an example, which has a transfer file on the Russian language.

ls -l /usr/share/locale/ru/LC_MESSAGES/geany.mo
--------------------------------------------------------------------
-rw-r--r-- 1 root root 138168 июля 13 2015 /usr/share/locale/ru/LC_MESSAGES/geany.mo

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

Ok, if the problem also occurs with other software, then the root cause probably is not with geany, but somewhere else.

What is the output of

locale -a
locale
sudo locale-gen

Revision history for this message
qub (qub-box) said :
#10

locale -a
-----------
C
C.UTF-8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
POSIX
ru_RU.utf8
ru_UA.utf8
----------------
locale
---------
LANG=en_US.UTF-8
LANGUAGE=en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=ru_RU.UTF-8
LC_TIME=ru_RU.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=ru_RU.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=ru_RU.UTF-8
LC_NAME=ru_RU.UTF-8
LC_ADDRESS=ru_RU.UTF-8
LC_TELEPHONE=ru_RU.UTF-8
LC_MEASUREMENT=ru_RU.UTF-8
LC_IDENTIFICATION=ru_RU.UTF-8
LC_ALL=
---------------------------------------------------
sudo locale-gen
---------------------------
Generating locales...
  en_AG.UTF-8... up-to-date
  en_AU.UTF-8... up-to-date
  en_BW.UTF-8... up-to-date
  en_CA.UTF-8... up-to-date
  en_DK.UTF-8... up-to-date
  en_GB.UTF-8... up-to-date
  en_HK.UTF-8... up-to-date
  en_IE.UTF-8... up-to-date
  en_IN.UTF-8... up-to-date
  en_NG.UTF-8... up-to-date
  en_NZ.UTF-8... up-to-date
  en_PH.UTF-8... up-to-date
  en_SG.UTF-8... up-to-date
  en_US.UTF-8... up-to-date
  en_ZA.UTF-8... up-to-date
  en_ZM.UTF-8... up-to-date
  en_ZW.UTF-8... up-to-date
  ru_RU.UTF-8... done
  ru_UA.UTF-8... done
Generation complete.
---------------------------------------

Just as root it works.

I did so, in the terminal command executed

su - and LANG=ru_RU.UTF-8 geany

Then Geany opened in Russian, probably something with the rights under the mine and other users without root privileges.

Prompt where to dig further?

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

The Russian locale configuration file was not up-to-date, and the locale-gen has updated it. This should have helped.

If it still does not work, what is the output of

ls -l /usr/lib/locale/ru*/*

Revision history for this message
qub (qub-box) said :
#12

locale-gen has not helped, as well, and opens in the English language.

ls -l /usr/lib/locale/ru*/*
ls: cannot access /usr/lib/locale/ru*/*: No such file or directory

-----------------------------------------------------------------------------------------

ls -l /usr/lib/locale/
total 8292
drwxr-xr-x 3 root root 4096 апр. 22 2015 C.UTF-8
-rw-r--r-- 1 root root 8486416 февр. 11 22:26 locale-archive

Revision history for this message
Launchpad Janitor (janitor) said :
#13

This question was expired because it remained in the 'Open' state without activity for the last 15 days.