Bug 26907 - Desktop directory not translated by xdg-user-dirs-update in French
Summary: Desktop directory not translated by xdg-user-dirs-update in French
Status: RESOLVED DUPLICATE of bug 23929
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Low enhancement
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-06 21:58 CEST by Aurelien Oudelet
Modified: 2020-07-20 22:08 CEST (History)
2 users (show)

See Also:
Source RPM: xdg-user-dirs-0.17-4.mga8.src.rpm
CVE:
Status comment: For ERRATA


Attachments

Description Aurelien Oudelet 2020-07-06 21:58:01 CEST
Description of problem:
In Mageia 8, Classical ISO install, French locale selected,

Desktop directory not translated into French "Bureau".

~/.config/user-dirs.dirs is like:
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run.
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
# 
XDG_DESKTOP_DIR="$HOME/Desktop"     <=== Translation bug
XDG_DOWNLOAD_DIR="$HOME/Téléchargements"
XDG_TEMPLATES_DIR="$HOME/Modèles"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Musique"
XDG_PICTURES_DIR="$HOME/Images"
XDG_VIDEOS_DIR="$HOME/Vidéos"

Regards,
Comment 1 David GEIGER 2020-07-07 11:44:05 CEST
I think this should be reported upstream and I think it is not a mageia specific issue.

https://freedesktop.org/wiki/Software/xdg-user-dirs/

CC: (none) => geiger.david68210

Comment 2 Aurelien Oudelet 2020-07-07 13:39:38 CEST
(In reply to David GEIGER from comment #1)
> I think this should be reported upstream and I think it is not a mageia
> specific issue.
> 
> https://freedesktop.org/wiki/Software/xdg-user-dirs/

Humm,
It seems related to files like org.kde.trash.desktop and register.desktop in ~/Desktop.

In KDE Neon (18.04), Kubuntu, OpenSUSE Leap 15.2, there is no such file and Desktop directory is correctly translated.

Also, in "/usr/share/locale/fr/LC_MESSAGES/xdg-user-dirs.mo", Desktop is correctly translated into "Bureau". I don't know what is wrong.
Comment 3 Aurelien Oudelet 2020-07-07 13:44:59 CEST
After checking upstream package,
po file (fr.po) has correct strings translated.
Comment 4 Martin Whitaker 2020-07-07 17:47:17 CEST
See bug 23929. If there's anything in ~/Desktop, xdg-user-dirs-update will not rename it. It's an upstream design choice.

CC: (none) => mageia

Comment 5 Aurelien Oudelet 2020-07-07 23:26:37 CEST
(In reply to Martin Whitaker from comment #4)
> See bug 23929. If there's anything in ~/Desktop, xdg-user-dirs-update will
> not rename it. It's an upstream design choice.

Here you mention an upstream's design choice if directory is not empty. OK, so WON'T FIX?.

But, if default KDE Neon 18.04 and Kubuntu don't have both any files in ~/Desktop folder, OpenSUSE Leap 15.2 has 2 files: trash.desktop and home.desktop AND directory name is correctly translated in all systems.
Sound crazy.

Priority: Normal => Low
Severity: normal => enhancement

Comment 6 Lewis Smith 2020-07-20 22:06:04 CEST
(In reply to Martin Whitaker from comment #4)
> See bug 23929. If there's anything in ~/Desktop, xdg-user-dirs-update will
> not rename it. It's an upstream design choice.
Thanks for the pointer. These two bugs do indeed look identical, so making this one a duplicate of 23929:
"The folder Skrivbord is named Desktop in $HOME with a Swedish locale system setting"
This looks like something for ERRATA.

*** This bug has been marked as a duplicate of bug 23929 ***

Status: NEW => RESOLVED
Status comment: (none) => For ERRATA
Resolution: (none) => DUPLICATE

Comment 7 Aurelien Oudelet 2020-07-20 22:08:35 CEST
+1

Note You need to log in before you can comment on or make changes to this bug.