Bug 459247 - Valencian translation does not work
Summary: Valencian translation does not work
Status: RESOLVED UPSTREAM
Alias: None
Product: krita
Classification: Applications
Component: Translation (show other bugs)
Version: 5.1.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-17 01:20 UTC by Antoni Bella
Modified: 2023-05-12 09:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antoni Bella 2022-09-17 01:20:38 UTC
Hi, I am the translator and I obtain Catalan translation only,

locale without GUI:

  LANG=ca_ES.UTF-8@valencia
  LANGUAGE=
  LC_CTYPE="ca_ES.UTF-8@valencia"
  ...
  LC_ALL=

locale into GUI:

  LANG=ca_ES.UTF-8
  LANGUAGE=ca@valencia:ca:en_US
  LC_CTYPE="ca_ES.UTF-8"
  ...
  LC_NUMERIC="ca_ES.UTF-8"
  LC_ALL=

KDE config:
~$ head ~/.config/plasma-localerc
[Formats]
LANG=ca_ES.UTF-8

[Translations]
LANGUAGE=ca@valencia:ca:en_US

First I weighed that this would be an external bug and I have made a query to Fontconfig: https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/327

Current terminal output:
  ~$ krita
  Fontconfig warning: ignoring ca_valencia: not a valid region tag
  Invalid profile :  "/usr/share/color/icc/colord/Crayons.icc"
  Invalid profile :  "/usr/share/color/icc/colord/x11-colors.icc"
  QObject::startTimer: Timers cannot have negative intervals
  /usr/lib/x86_64-linux-gnu/krita-python-libs/krita added to PYTHONPATH
  Warning: requested data for unknown action "KisToolEncloseAndFill"


STEPS TO REPRODUCE
1. Start the program with these locales
2. See menu item "Fitxer -> Desa" (ca) it should be "Fitxer -> Guarda" (ca@valencia)


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux 5.19.0-15-generic x86_64
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.4
Comment 1 Halla Rempt 2023-01-06 11:47:31 UTC
Does it work with the appimage? The message " Fontconfig warning: ignoring ca_valencia: not a valid region tag" comes from fontconfig, not Krita, so it might be a system issue.
Comment 2 Halla Rempt 2023-05-11 12:00:38 UTC
Should've set this to needsinfo when I asked a question.
Comment 3 Antoni Bella 2023-05-11 17:44:36 UTC
(In reply to Halla Rempt from comment #1)
> Does it work with the appimage? The message " Fontconfig warning: ignoring
> ca_valencia: not a valid region tag" comes from fontconfig, not Krita, so it
> might be a system issue.

  Hi Halla, I have a lot of work in the queue (translation and revision). First remove from apt and:

./krita-5.1.5-x86_64.appimage 
QObject::startTimer: Timers cannot have negative intervals
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
/tmp/.mount_krita-TA1dol/usr/lib/krita-python-libs/krita added to PYTHONPATH

The IGU still comes out in Catalan... Krita is the unique APP affected. As feedback, the [Valencian language is not supported in Qt](https://bugreports.qt.io/browse/QTBUG-81051). It can be that?
Comment 4 Bug Janitor Service 2023-05-12 03:46:13 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 5 Halla Rempt 2023-05-12 09:25:50 UTC
Yes, that definitely is the reason then. Thanks for finding this Qt bug!