FreeCAD / FreeCAD-translations

Repository tracking localization issues and progress
5 stars 3 forks source link

Incorrect using of Qt related translations. #282

Open Kuzma30 opened 8 months ago

Kuzma30 commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago
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 commented 8 months ago

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. :wink:

Kuzma30 commented 8 months ago

This string are from Qt.

kaktusus commented 8 months ago

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

kaktusus commented 4 months ago

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.