XDG "Desktop" item not translated on Live CD

Bug #885086 reported by Märt Põder
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Triaged
Medium
Unassigned
casper (Ubuntu)
In Progress
Medium
Gunnar Hjalmarsson
xdg-user-dirs (Ubuntu)
Opinion
Undecided
Unassigned

Bug Description

When I switch the language on my Oneiric Live CD, other XDG directories are translated except the "Desktop" item. When I have a look inside ~/.config/user-dirs.dirs, the string is untranslated (other strings in the file are translated all right). If I run xdg-user-dirs-update, ~/.config/user-dirs.dirs is updated to the correct translation. So I suppose that the default Live CD user is created by some not-localized hackish solution.

If this seems not so important, since installed systems have the "Desktop" directory translated all right (at least I hope so, because my system has), it certainly affects all Ubuntu localized Live-CDs and makes them fail the basic "translated or not surface check".

Related branches

Revision history for this message
Gabor Kelemen (kelemeng) wrote :

I can see this too.
I found the following facts:
- if you run xdg-user-dirs-update after removing the .config/user-dirs.dirs file, it regenerates it without translating the ~/Desktop name, but everything else is translated.
- if you run xdg-user-dirs-update --force, the ~/Desktop name is translated too.
- /etc/X11/Xsession.d/60xdg-user-dirs-update runs xdg-user-dirs-update without the --force option.

Changed in ubuntu-translations:
status: New → Triaged
importance: Undecided → Medium
Changed in xdg-user-dirs (Ubuntu):
status: New → Confirmed
summary: - XDG "Desktop" item not translated on Oneric Live CD
+ XDG "Desktop" item not translated on Live CD
tags: added: i18n
Revision history for this message
Rüdiger Kupper (ruediger.kupper) wrote :

I see this behavior in a regular install of Raring, *not* using a live cd:

Observation:

If a user has no ~/.config/user-dirs.dirs, it will be created at login (or by calling "xdg-user-dirs-update"). However, this translates ony some of the names to the current locale. In my case (German locale), for example it translates

Music -> Musik
Pictures -> Bilder

however, the following names will *not* get translated:

Desktop
Templates
Public

These names will only get translated by calling "xdg-user-dirs-update --force". I believe that partial translation of names is a bug.
Could someone please confirm that this happens in a regular install of raring?

Steps to reproduce:
1. delete your ~/.config/user-dirs.dirs and ~/.config/user-dirs.locale
2. change to the German locale using the system menu
3. log out and log in
4. cat ~/.config/user-dirs.dirs and observe that only some of the names have been translated to German

Revision history for this message
Yousuf 'Jay' Philips (philipz85) wrote :

Still happens in 20.04 and 21.04.

Was filed upstream in Xfce but they confirmed it was an Ubuntu bug.
https://gitlab.xfce.org/xfce/thunar/-/issues/537

Revision history for this message
Yousuf 'Jay' Philips (philipz85) wrote :
Revision history for this message
Yousuf 'Jay' Philips (philipz85) wrote :
Revision history for this message
Yousuf 'Jay' Philips (philipz85) wrote :
Revision history for this message
Yousuf 'Jay' Philips (philipz85) wrote :
Revision history for this message
Yousuf 'Jay' Philips (philipz85) wrote :

Though this issue only mentions about it during the Live CD, it also happens on an installed system.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Hi Yousuf,

I see nothing weird when looking at an updated Ubuntu 21.04. Can you please run these commands:

ls ~

cat ~/.config/user-dirs.dirs

and show us in a comment here what they output.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Correction: I do see it in the live session, and I think the explanation is that the ~/Desktop directory is created before xdg-user-dirs-update is executed via autostart, and that in turn is because the ubiquity.desktop file (for starting the installation) is located there.

One way to fix it may be to change the installer (casper?) so ubiquity.desktop is placed in "xdg-user-dir DESKTOP" only after it has been created via xdg-user-dirs-update.

However, if I complete a non-English installation, the ~/Desktop folder is translated properly for me. So @Yousuf, if you see it on an installed system, please provide details.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

I submitted a merge proposal, which I think fixes the live session issue.

Changed in xdg-user-dirs (Ubuntu):
status: Confirmed → Opinion
Changed in casper (Ubuntu):
assignee: nobody → Gunnar Hjalmarsson (gunnarhj)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/885086

tags: added: iso-testing
Revision history for this message
Yousuf 'Jay' Philips (philipz85) wrote :

I tested and after installation the Desktop folder was translated.

Revision history for this message
Yousuf 'Jay' Philips (philipz85) wrote :
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Good, then we can keep focusing on the live session.

Revision history for this message
Brian Murray (brian-murray) wrote :

I'm unsubscribing the sponsors team as there seems to be an active discussion regarding the merge proposal and that should be resolved before anything is uploaded.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.