! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
"Trash" name not localized by LightDM's "Language menu" applet
Status:
RESOLVED: MOVED

Comments

Description René Genz 2017-11-14 17:07:00 CET
I do know if this is the right component to file the bug against.

Xfce does not honor the user setting set by the "Languages menu" applet in LightDM to localize the name of "Trash" .
The applet writes to the file:
$ cat ~/.dmrc
[Desktop]
Language=en_US.utf8
Session=xfce


Removing the applet from LightDM menu (f.e. with `lightdm-gtk-greeter-settings`) prevents overwriting. Changing permissions of the file does not.


Everything is localized, except for "Trash". It uses the German name "Papierkorb".
This affects the icon on the desktop as well as the icon in the sidebar of `thunar` at "Places".

The system default setting is used:
$ cat /etc/locale.conf
LANG=de_DE.utf8


You must restart the computer to make it recognize changes to the file.

This file is ignored:
$ cat .config/user-dirs.locale 
en_US

Editing this file did not help:
~/.config/xfce4/desktop/icons.screen0-1584-*.rc


The issue is reproducable on Parabola and Fedora 26 both used with LightDM and Xfce.
$ pacman -Q thunar
thunar 1.6.12-1

$ dnf list thunar
Thunar.x86_64  1.6.12-1.fc26  @updates-testing



A fix for the problem is the following user setting. Logout is sufficient:
$ cat ~/.pam_environment 
LANG=en_US.utf8

I have not checked the code of Xfce. Maybe this proposal is bad:
put the following logical part before the use of "~/.pam_environment":
if "~/.dmrc" is present, use its "Language" setting
Comment 1 Andre Miranda editbugs 2017-11-14 19:45:40 CET
Probably related to Bug #13409, if you're able build, please try Thunar from master or xfce-4.12 branch,
Comment 2 René Genz 2017-11-15 15:50:14 CET
Note: I built only on Fedora 26. Versions according to: thunar -- Help -- About
F26: 1.6.12
Git: 1.6.12git-a63b1732
 
Git-compiled 'master' version of `thunar` picks up language setting from /etc/locale.conf. Unfortunately, afterwards it does not obey changes to /etc/locale.conf or any user related settings!


Please, keep in mind that it might be due to my bad compilation.
I cloned the dependency chain as explained at:
https://docs.xfce.org/xfce/building

Then executed in terminal:
export PREFIX="/opt/xfce4"
export PKG_CONFIG_PATH="${PREFIX}/lib/pkgconfig:$PKG_CONFIG_PATH"
export CFLAGS="-O2 -pipe"

# and repeated for each subfolder
# did not use '--disable-debug' for xfce4-dev-tools
./autogen.sh --prefix=${PREFIX} --disable-debug && make && sudo make install && echo $?


At 'xfconf' `./autogen.sh` printed the following message, but did not stop! So I continued without other problems.
--8<--
...
checking for perl modules: ExtUtils::Depends, ExtUtils::PkgConfig, Glib... no

*** Required perl modules not found to build perl bindings.  Requirements are:
***
***     ExtUtils::Depends    0.300
***     ExtUtils::PkgConfig  1.000
***     Glib                 1.020
***
*** Please install the required dependencies and run ./configure again.

checking for ...
--8<--

Judging from the behaviour of `./autogen.sh` the perl module do not seem to be required, because it continued without problems.
If they are required, `./autogen.sh` should stop immediately and not continue.




I would like to comment on the compilation process. If you think these changes are worth a patch, I can prepare one. Shall I attach it to this issue?

https://git.xfce.org/xfce/thunar/tree/README#n19

on Fedora 26 and Parabola:
`xfconf-query` is a binary, not a package.
Package name would be 'xfconf'.
Maybe write "and the executable file `xfconf`"?



https://git.xfce.org/xfce/thunar/tree/README#n27

Wich INSTALL file? I cannot find it.
Found build information here: https://docs.xfce.org/xfce/building
In the process I sawy that 'INSTALL' was created by `./autogen`.
Maybe write "The file 'INSTALL' (created by `./autogen.sh`) ..."?



https://docs.xfce.org/xfce/building#build_requirements

'Coffee' as in the brew or "patience" or a package?
On Fedora 26 it is called: 'coffee-script'
On Parabola it is called: coffeescript
Maybe write "executable files `pkgconf` and `coffee`"?



On the same website in the sentence:
"You need to make sure the PKG_CONFIG_PATH variable include the path ..."
Please, append an "s" to "include".
Comment 3 Andre Miranda editbugs 2017-11-19 02:05:03 CET
Sorry, but I wasn't able to enable language selection in LightDM neither reproduce this bug with LXDM.
Where is the non-translated "Trash" label, the desktop or Thunar's sidebar?

Also I don't think that message is related to the problem, but if you'd like to investigate feel free to file another bug.

Regarding the comments on the building process:
- I agree with the first comment
- Sure, why not
- Neither, it was supposed to be joke I guess =)
- Surprisingly I have no permission to edit this page, I just asked, I'll fix this as soon as possible.

Please file a bug with a patch for the first and second comments.
Comment 4 René Genz 2017-11-26 23:38:25 CET
Which distribution do you use?

For me both locations (icon on the desktop as well as the icon in the sidebar of `thunar` at "Places") are not translated.


To enable language selection:
1. check available languages:
$ locale -a
C
de_DE.utf8
en_US.utf8
POSIX

If you see only C, POSIX, en_US.utf8 then you must add the language support.

On Parabola:
$ vim /etc/locale.gen
# this file defines order and languages in log in screen in 'Languages menu' applet in LightDM; enable "de_DE.UTF-8" and "en_US.UTF-8"

$ sudo locale-gen
# update available locales

$ vim /etc/locale.conf
# set "LANG=de_DE.utf8"
# 'LANG' sets default value for 'Languages menu' in LightDM


2. install GUI program to modify LightDM settings

On Parabola:
$ sudo packman -S lightdm-gtk-greeter-settings


3. enable "Language menu"
- start "LightDM GTK+ Greeter settings" (`/bin/bash /usr/bin/lightdm-gtk-greeter-settings-pkexec`)

- go to "Panel" tab
- Redefine indicators: |ON|
- click on [+]
- |x| Indicator: |Languages menu|
- [OK]
- [Save]

- I cannot test at the moment: if this works right away or if you have to reboot computer or restart LightDM service (and lose current session!)




I will file a bug with a patch for first and second comment in a few days.
Comment 5 Andre Miranda editbugs 2017-12-02 21:36:49 CET
I'm using Arch and even following your instructions I can't make LightDM display the language selector (I have about 10 locales generated). Using LXDM, I'm able to switch languages, but this problem doesn't occur.

Running a Xubuntu 17.04 VM I have en_US, de_DE and pt_BR uncommented in locale.gen, but running locale-gen generates all english variants and LightDM doesn't allow me select neither German nor Portuguese. When I select en_GB, Trash becomes Rubbish Bin in desktop and thunar as expected.

I'm starting to suspect this might be a LightDM issue.
Comment 6 Git Bot editbugs 2020-05-26 23:32:44 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/thunar/-/issues/178.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #14005

Reported by:
René Genz
Reported on: 2017-11-14
Last modified on: 2020-05-26

People

Assignee:
Xfce Bug Triage
CC List:
3 users

Version

Version:
1.6.12

Attachments

Additional information