You are not logged in.

#1 2011-02-13 17:38:28

Daerun
Member
Registered: 2011-02-07
Posts: 84

[SOLVED] Change folder names to my locale language

I've noticed the desktop folder at /home is named in english "Desktop", and I'd like it (and any other that can be created in the future) change to my locale language, which obviously is not english. How can I perform that? I'm guessing manual change may not be a good idea.

Last edited by Daerun (2011-02-13 21:41:18)

Offline

#2 2011-02-13 18:12:20

jac
Member
From: /home/jac
Registered: 2009-05-19
Posts: 431
Website

Re: [SOLVED] Change folder names to my locale language

Search for "user-dirs" and "user-dirs.dirs". I just made my own user-dirs.dirs like this:
Edit2: Look at the example file, mine was apparently bad/outdated
But it looks like there is a tool called xdg-user-dirs in the top of the search results and in [community] you might want to look into.

Edit: Heh, looking at the default file mentioned on the xdg-user-dirs page I see these are supposed to be relative pathnames... That makes things more robust for the future smile

Last edited by jac (2011-02-13 18:16:39)

Offline

#3 2011-02-13 21:36:36

Daerun
Member
Registered: 2011-02-07
Posts: 84

Re: [SOLVED] Change folder names to my locale language

Thanks, it worked! smile I don't know how you did it, but here is how I did it:


1- After installing xdg-user-dirs, edit the file "user-dirs.defaults":

sudo gedit /etc/xdg/user-dirs.defaults (I used gedit, but needless to say, any text editor is ok)

It looks like this:

DESKTOP=Desktop
DOWNLOAD=Download
TEMPLATES=Templates
.
.
.
And so on... You just need to rename the values to your desired language, like:

DESKTOP=Bureaublad



2- Then, create a file called "user-dirs.dirs" in your home ./config folder

gedit ~/.config/user-dirs.dirs (no sudo)

And type in the following lines:

XDG_DESKTOP_DIR="$HOME/your_edited_desktop_name"

Where you can replace DESKTOP with any value you edited in the previous setp, and "your_edited_folder_name" with the value you gave it. For example:

XDG_DOWNLOAD_DIR="$HOME/your_edited_download_name"
XDG_TEMPLATE_DIR="$HOME/your_edited_template_name"

The old folders with the old names remain in your home, so remember to move any file you had in them before deleting anything, specially if you edited the Desktop, as the change occurs inmediately and you may not notice.

Last edited by Daerun (2011-02-13 21:38:48)

Offline

Board footer

Powered by FluxBB