Greeter does not pick up the language/translations

Bug #1507705 reported by ProsjektX
36
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Switchboard Locale Plug
Fix Released
Medium
Marvin Beckers

Bug Description

This bug seems to be a duplicate, or linked, to the closed issue https://bugs.launchpad.net/pantheon-greeter/+bug/1363715.

It seems that Greeter is not picking up the translations as set by the LANG variable(?) correctly, or it is the locale plug that does not set the variable correctly..?

Anyway, some examples. after applying "Set system language" in the locale plug for German, Norwegian and Spanish a "cat /etc/default/locale" gives this:
* LANG=de_DE.utf8
* LANG=nb.utf8 : locale -a does not list an option in this format
* LANG=es.utf8 : --same

Where Greeter only picks up translations when LANG is in this format:
* LANG=de_DE.UTF-8
* LANG=nb_NO.UTF-8
* LANG=es_ES.UTF-8

Related branches

ProsjektX (prosjektx)
description: updated
ProsjektX (prosjektx)
tags: added: internationalization
Changed in pantheon-greeter:
status: New → Confirmed
status: Confirmed → New
Maxim Taranov (png2378)
Changed in pantheon-greeter:
status: New → Confirmed
Revision history for this message
Maxim Taranov (png2378) wrote :

Well, I checked it with Russian and it works if I manually set `LANG=ru_RU.utf8` or `LANG=ru_RU.UTF-8` in /etc/default/locale, but don't work with `LANG=ru.utf8` (string by default).

English work correctly with `LANG=en_US.utf8` by default and without manually editing.

I found it: https://bazaar.launchpad.net/~elementary-apps/switchboard-plug-locale/trunk/view/head:/src/Widgets/LocaleSetting.vala#L269

The problem is that for languages like Russian there is no region. Maybe blame the file /usr/share/language-tools/language-options

Revision history for this message
Maxim Taranov (png2378) wrote :
Maxim Taranov (png2378)
affects: pantheon-greeter → switchboard-plug-locale
Maxim Taranov (png2378)
Changed in switchboard-plug-locale:
assignee: nobody → Djaler (djaler1)
Yuly Nesterov (inpr1se)
Changed in switchboard-plug-locale:
status: Confirmed → In Progress
Marvin Beckers (embik)
Changed in switchboard-plug-locale:
importance: Undecided → Medium
Marvin Beckers (embik)
Changed in switchboard-plug-locale:
assignee: Djaler (djaler1) → Marvin Beckers (embik)
RabbitBot (rabbitbot-a)
Changed in switchboard-plug-locale:
status: In Progress → Fix Committed
Changed in switchboard-plug-locale:
milestone: none → loki-alpha1
Maxim Taranov (png2378)
Changed in switchboard-plug-locale:
status: Fix Committed → Fix Released
Cody Garver (codygarver)
Changed in switchboard-plug-locale:
milestone: loki-alpha1 → loki-beta1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.