Bug 381859 - Krita uses pt-pt language instead pt-br
Summary: Krita uses pt-pt language instead pt-br
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Translation (show other bugs)
Version: 3.3.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-01 11:50 UTC by Patrick Silva
Modified: 2017-11-27 09:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Krita in Brazilian Portuguese (168.19 KB, image/png)
2017-11-26 14:44 UTC, Halla Rempt
Details
Krita in Brazilian Portuguese (94.93 KB, image/png)
2017-11-27 09:56 UTC, Halla Rempt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2017-07-01 11:50:57 UTC
My system language is pt-br but krita uses pt-pt.
I need change to another language, restart krita, change to pt-br and restart krita again.
Comment 1 wolthera 2017-07-01 13:31:57 UTC
Probably this means that European Portuguese is set as the fallback language for Brazilian Portuguese, and that we don't have a Brazilian Portuguese translation to begin with. Or is there and Krita isn't automatically selecting it?
Comment 2 Patrick Silva 2017-07-01 14:25:57 UTC
pt-br translation is available, but krita uses pt-pt by default even if my system language is pt-br.
Although pt-pt language, "change app language" from settings menu says pt-br is active. I need change to another language, restart krita, select pt-br in "change app language" and restart krita again to finally use the correct language.
Comment 3 Patrick Silva 2017-08-28 18:31:36 UTC
krita 3.2.1 has the same bug.
Comment 4 Halla Rempt 2017-11-26 14:44:45 UTC
Created attachment 109063 [details]
Krita in Brazilian Portuguese

I'm not sure I can distinguish between pt and pt_BR strings. If I set my desktop to to pt_BR and start the Krita 3.3.2 appimage, I says it's in pt_BR. In case that combobox is wrong, is there a word that I can use to see whether the right translation file is loaded?
Comment 5 Halla Rempt 2017-11-26 14:45:22 UTC
Settting to needinfo: if you can confirm that my screenshot is correct, then I can only guess that this is a problem with arch linux and/or its krita packages.
Comment 6 Patrick Silva 2017-11-26 15:03:02 UTC
"Ficheiro" in the upper left corner indicates pt language.
In pt-br is "Arquivo".
Comment 7 Halla Rempt 2017-11-26 15:19:40 UTC
Okay, it looks like the pt_BR file has the correct translation:

#. i18n: ectx: property (title), widget (QMenu, menuFile)
#: krita/krita4.xmlgui:9 libs/widgetutils/xmlgui/ui_standards.xmlgui:5
#: plugins/extensions/pykrita/plugin/krita/sceditor/mainwindow.ui:28
#, kde-format
msgid "&File"
msgstr "&Arquivo"
Comment 8 Halla Rempt 2017-11-27 09:56:57 UTC
Created attachment 109077 [details]
Krita in Brazilian Portuguese

Looks like I got it fixed :-)
Comment 9 Halla Rempt 2017-11-27 09:57:17 UTC
Git commit adeeab654f993c9fdb5b891f9fe197cbedfc2623 by Boudewijn Rempt.
Committed on 27/11/2017 at 09:55.
Pushed by rempt into branch 'master'.

Use name, not bcp47Name to select the language for Krita

This fixes selection languages specialized for a country.

M  +4    -3    krita/main.cc

https://commits.kde.org/krita/adeeab654f993c9fdb5b891f9fe197cbedfc2623