Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect using of Qt related translations. #282

Open
Kuzma30 opened this issue Oct 27, 2023 · 6 comments
Open

Incorrect using of Qt related translations. #282

Kuzma30 opened this issue Oct 27, 2023 · 6 comments

Comments

@Kuzma30
Copy link

Kuzma30 commented Oct 27, 2023

When I select English as interface language I get UA strings on dialogs for OK, CLOSE and etc.
My locale

LANG=uk_UA.UTF-8
LANGUAGE=uk:en
LC_CTYPE="uk_UA.UTF-8"
LC_NUMERIC=uk_UA.UTF-8
LC_TIME=uk_UA.UTF-8
LC_COLLATE="uk_UA.UTF-8"
LC_MONETARY=uk_UA.UTF-8
LC_MESSAGES="uk_UA.UTF-8"
LC_PAPER=uk_UA.UTF-8
LC_NAME=uk_UA.UTF-8
LC_ADDRESS=uk_UA.UTF-8
LC_TELEPHONE=uk_UA.UTF-8
LC_MEASUREMENT=uk_UA.UTF-8
LC_IDENTIFICATION=uk_UA.UTF-8
LC_ALL=

зображення

Also, when I select RU language, I also see UA string for Qt messages.

@kaktusus
Copy link
Contributor

GUI language replacement without restarting the program.

image
You can see here that not all labels have been overloaded.

Here the view after restarting the program.

image

@Kuzma30
Copy link
Author

Kuzma30 commented Oct 28, 2023

OS: Ubuntu 22.04.3 LTS (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.34792 (Git)
Build type: Release
Branch: master
Hash: 410d4f9f6acb56cf84f1117dd39a595bcd551f15
Python 3.10.12, Qt 5.15.3, Coin 4.0.0, Vtk 7.1.1, OCC 7.8.0.dev
Locale: Ukrainian/Ukraine (uk_UA)
Installed mods: 
  * Assembly3.backup1662458597.0858872
  * POV-Ray-Rendering
  * kicadStepUpMod.backup1662458646.5781207
  * kicadStepUpMod 10.15.1
  * Assembly3 0.12.0

I try several times with and without restart program. Also delete config directory.
but still have UA messages with english language selected
зображення
PS. Need fix "Copy to clipboard" output format.
It produce text with [code] but when I put it here I need manually edit this to ```

@kaktusus
Copy link
Contributor

kaktusus commented Oct 28, 2023

It produce text with [code] but when I put it here I need manually edit this to ```

This is prepared for pasting into the forum that's why the [code] [/code] tags are there.

This situation is strange.
it certainly won't change anything, but I have to ask. Is your directory for local translations empty?

Are these strings not from QT?
if so, tell me if you have an alternative window manager language installed on your linux.

ps. I'm glad you're back after such a long period of absence. 😉

@Kuzma30
Copy link
Author

Kuzma30 commented Oct 28, 2023

This string are from Qt.

@kaktusus
Copy link
Contributor

So QT "doesn't know" it can use another language besides UA?
Have you observed a similar anomaly in another application?

@kaktusus
Copy link
Contributor

kaktusus commented Mar 5, 2024

I spoke with colleague Kuzma30 and suggested him a solution.
If I remember correctly, the problem was related to the configuration of his OS and was solved.
It involves using dpkg-reconfigure locales and adding support for additional languages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants