--- On Tue, 5/7/11, Mélodie <meets1901@...> wrote:
> From: Mélodie <meets1901@...>
> Subject: Re: [Lxde-i18n] PCManFM Question
> To: lxde-i18n@...
> Date: Tuesday, 5 July, 2011, 21:11
> On Tue, 5 Jul 2011 18:44:19 +0100
> Kizito Birabwa <kbirabwa@...>
> > Hello friends,
> > Could you tell me where pcmanfm gets the text it uses
> for the default
> > directory names - 'Documents', 'Music', 'Pictures',
> 'Video' and 'Downloads'
> > please?
> > After localising the equivalents in xdg-user-dirs
> those names still show up
> > in English and not the new language. Also, whenever I
> select one of the
> > default entries in the left pane, the location in the
> address bar changes
> > to the localised name but pcmanfm gives me an error
> message that I made an
> > invalid selection and the right hand pane is blank.
> > Are these defaults just the names given to the
> directories when they were
> > created from /etc/skel? In which case I wonder how one
> goes about making
> > those names change when you change the current
> > Thanks in advance :-)
> > Regards,
> > Kizito
> Hi, this is not specific to pcmanfm. It's a file in the
> /home/user, and you
> can have it in /etc/skel/.config as well in order to get
> the new users
> created have the same configuration, if you wish (in
> /etc/skel beware that
> all files belong to root.root or the configurations won't
> be copied to the
> new user's directories).
> $ pwd
> $ cat user-dirs.dirs
> # 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
> # homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy
> is an
> # absolute path. No other format is supported.
> Here I have just "Desktop" and "Documents", but as I said
> you can make it fit
> your needs.
> PCLinuxOS Fr
> Le blog d'une newbie
> All of the data generated in your IT infrastructure is
> seriously valuable.
> Why? It contains a definitive record of application
> performance, security
> threats, fraudulent activity, and more. Splunk takes this
> data and makes
> sense of it. IT sense. And common sense.
> Lxde-i18n mailing list
Thanks for the help.
I am still not succeeding. Here are the contents of my ~/.config/user-dirs.dirs :
# 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.
I understand that this is not specific to pcmanfm, however this is where I am observing the trouble. pcmanfm does not display the directories with localised names but it does detect the localised names in the xdg-user-dirs message file, because it tries to go to places with localised names but fails. Whenever I try to edit the ~/.config/user-dirs.dirs file it just gets overwritten with the one shown here at each login.
The way I understand this, my system is set up so that it should already localise the directory names. I'm definitely misunderstanding something here :-o
Here are the contents of /etc/xdg/user-dirs.conf and /etc/xdg/user-dirs.default
# This controls the behaviour of xdg-user-dirs-update which is run on user login
# You can also have per-user config in ~/.config/user-dirs.conf, or specify
# the XDG_CONFIG_HOME and/or XDG_CONFIG_DIRS to override this
# This sets the filename encoding to use. You can specify an explicit
# encoding, or "locale" which means the encoding of the users locale
# will be used
# Default settings for user directories
# The values are relative pathnames from the home directory and
# will be translated on a per-path-element basis into the users locale
# Another alternative is: