QLocale day of the week not translated on qt application

Bug #1252243 reported by Giulian Gonçalves Vivan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qt4-x11 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hello

I installed an Ubuntu 12.04 using Portuguese Brazil as default language but seems that the QLocale class is not working.

With the attached code snippet (calls 'name()' and 'dayName(1)' from 'QLocale::system()') the expected output would be:

"pt_BR"
"segunda-feira"

But the actual output is:

"pt_BR"
"Monday"

I also tested the same code snippet on other versions of Ubuntu and it worked as expected (tested on 10.04 and 13.10). Also installing libqtcore4 from Ubuntu 12.10 the same snippet starts to work as expected.

* To test the code snippet:

qmake
make
./test_locale

* Required commands outputs

lsb_release -rd
Description: Ubuntu 12.04.3 LTS
Release: 12.04

apt-cache policy libqtcore4
libqtcore4:
  Instalado: 4:4.8.1-0ubuntu4.4
  Candidato: 4:4.8.1-0ubuntu4.4
  Tabela de versão:
 *** 4:4.8.1-0ubuntu4.4 0
        500 http://br.archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main i386 Packages
        100 /var/lib/dpkg/status
     4:4.8.1-0ubuntu4 0
        500 http://br.archive.ubuntu.com/ubuntu/ precise/main i386 Packages

Revision history for this message
Giulian Gonçalves Vivan (giulian) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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