How to edit the logout entry on main menu

Please post all general support questions for LXDE here.
Locked
gqqnbig
Posts: 3
Joined: Tue Jul 12, 2011 12:53 am

How to edit the logout entry on main menu

Post by gqqnbig »

The main menu contains logout(or log off; I'm not using an English interface) entry, run entry, Games submenu, Internet submenu, Accessories submenu, etc.

I'd like to edit the logout entry, change the word "logout" to "leave".

So How could I achieve this?
ueltume
Posts: 3
Joined: Sat Jul 09, 2011 9:43 pm

Re: How to edit the logout entry on main menu

Post by ueltume »

Read this thread. Copy the code and run it somehow. I do not know how to but when you do find out tell me and others. http://forum.lxde.org/viewtopic.php?f=8&t=31189
Motheroard: G41M-ES2L w/ 2.60 Ghz 2-core proc., 2 GB RAM, & 1 GB Vid RAM
Debian 6 STABLE w/: slim lxde-core libdvdnav4&read4 gstreamerbad&ugly reportbug-ng chromium gecko-mediaplayer p7zip transmission epdfview openoffice bleachbit claws-mail
secipolla
Posts: 18
Joined: Mon Jun 28, 2010 2:50 am

Re: How to edit the logout entry on main menu

Post by secipolla »

Edit /usr/share/applications/lxde-logout.desktop
Suppose you're Spanish, you would add a Spanish name below the English one:

Code: Select all

Name=Logout
Name[es]=Salir
For your language, use the appropriate language code.

-EDIT- sorry, I read your question better. Just change

Code: Select all

Name[pt_BR}=Desconectar
to

Code: Select all

Name[pt_BR}=Sair
amjjawad
Posts: 304
Joined: Mon Aug 29, 2011 1:51 am
Contact:

Re: How to edit the logout entry on main menu

Post by amjjawad »

secipolla wrote:Edit /usr/share/applications/lxde-logout.desktop
Suppose you're Spanish, you would add a Spanish name below the English one:

Code: Select all

Name=Logout
Name[es]=Salir
For your language, use the appropriate language code.

-EDIT- sorry, I read your question better. Just change

Code: Select all

Name[pt_BR}=Desconectar
to

Code: Select all

Name[pt_BR}=Sair
For those who are using Lubuntu, command will be:

Code: Select all

sudo leafpad /usr/share/applications/lubuntu-logout.desktop
The only "logout" file I found was: lubuntu-logout.desktop

This is the content:

Code: Select all

[Desktop Entry]
Name=Shutdown
Name[zh_TW]=關機
Comment=Shutdown or Reboot
Icon=system-shutdown-panel
Exec=lubuntu-logout
NoDisplay=true
However, when I change the name "Shutdown" to something else, it would just change the name that will be shown when the mouse pointer be on the "Shutdown" icon on the LXPanal.

I'm very interested to know how can I change the default names but not sure how to find that file?
Feel Free to contact me: http://amjjawad.net
rockdoctor
Posts: 116
Joined: Tue Nov 11, 2008 4:51 pm

Re: How to edit the logout entry on main menu

Post by rockdoctor »

In Fedora, the lxde-logout.desktop file causes the execution of the script /usr/bin/lxde-logout which executes the binary file lxsession-logout. However, it appears that we're dealing with a translatable string here (I found the file
/usr/share/local/usr/share/locale/en_GB/LC_MESSAGES/lxsession.moe/en_GB/LC_MESSAGES/lxsession.mo but nothing for en_US). I'm just guessing here, but perhaps copying the British English file to /usr/share/locale/en_US/LC_MESSAGES and editing all occurrences of the word 'Logout' ??
Geology - It's not rocket science, it's rock science!
amjjawad
Posts: 304
Joined: Mon Aug 29, 2011 1:51 am
Contact:

Re: How to edit the logout entry on main menu

Post by amjjawad »

rockdoctor wrote:In Fedora, the lxde-logout.desktop file causes the execution of the script /usr/bin/lxde-logout which executes the binary file lxsession-logout. However, it appears that we're dealing with a translatable string here (I found the file
/usr/share/local/usr/share/locale/en_GB/LC_MESSAGES/lxsession.moe/en_GB/LC_MESSAGES/lxsession.mo but nothing for en_US). I'm just guessing here, but perhaps copying the British English file to /usr/share/locale/en_US/LC_MESSAGES and editing all occurrences of the word 'Logout' ??
When I opened that file, I found some weird symbols inside and it was like one or two words only, just rubbish couldn't understand what was that.
Perhaps we're talking about the wrong file?

I have Lubuntu 11.04.
Feel Free to contact me: http://amjjawad.net
Locked