Problem translating Lunar Pup's Right-click Menu (Solved)

Language Packs


Moderator: Forum moderators

Post Reply
User avatar
AntonioPt
Posts: 184
Joined: Wed Aug 11, 2021 7:41 pm
Has thanked: 83 times
Been thanked: 33 times

Problem translating Lunar Pup's Right-click Menu (Solved)

Post by AntonioPt »

Hello Everyone,

So i got an issue trying to translate the Right Click Menu of the Apps 99% is done missing 1% lol and my issue is where the file if exist or what is the script that generate that menu since the text Leave and Help im not able to translate no matter what i know that all the info is extracted from usr/share/desktop-directories and the files in usr/share/sss do the extra work thxx to script fixmenus but sill no luck with that one.

hope you guys get it what i mean and thxx in advance

Attachments
photo_2024-05-14_19-51-38.jpg
photo_2024-05-14_19-51-38.jpg (100.91 KiB) Viewed 428 times

Why astronauts use Linux
Because you can't open windows in space

HerrBert
Posts: 340
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 17 times
Been thanked: 114 times

Re: Problem translating the Right-click Menu

Post by HerrBert »

AntonioPt wrote: Wed May 15, 2024 2:50 pm

Hello Everyone,

So i got an issue trying to translate the Right Click Menu of the Apps 99% is done missing 1% lol and my issue is where the file if exist or what is the script that generate that menu since the text Leave and Help im not able to translate no matter what i know that all the info is extracted from usr/share/desktop-directories and the files in usr/share/sss do the extra work thxx to script fixmenus but sill no luck with that one.

hope you guys get it what i mean and thxx in advance

There are two issues with Help and Leave menu items in later versions of traditional Puppies:
1. They are hardcoded in /etc/xdg/templates/_root_.jwmrc for the tray menu button
2. They are gettexted in /usr/local/jwm_config/menu_build_main for the right click menu
I don't recall the TEXTDOMAIN for jwm-xdgmenu, so you have to do some search...

User avatar
AntonioPt
Posts: 184
Joined: Wed Aug 11, 2021 7:41 pm
Has thanked: 83 times
Been thanked: 33 times

Re: Problem translating the Right-click Menu

Post by AntonioPt »

HerrBert wrote: Wed May 15, 2024 8:17 pm
AntonioPt wrote: Wed May 15, 2024 2:50 pm

Hello Everyone,

So i got an issue trying to translate the Right Click Menu of the Apps 99% is done missing 1% lol and my issue is where the file if exist or what is the script that generate that menu since the text Leave and Help im not able to translate no matter what i know that all the info is extracted from usr/share/desktop-directories and the files in usr/share/sss do the extra work thxx to script fixmenus but sill no luck with that one.

hope you guys get it what i mean and thxx in advance

There are two issues with Help and Leave menu items in later versions of traditional Puppies:
1. They are hardcoded in /etc/xdg/templates/_root_.jwmrc for the tray menu button
2. They are gettexted in /usr/local/jwm_config/menu_build_main for the right click menu
I don't recall the TEXTDOMAIN for jwm-xdgmenu, so you have to do some search...

Hello @HerrBert
/etc/xdg/templates/_root_.jwmrc its for main menu and i got Translation so this aint the issue
/usr/local/jwm_config/menu_build_main just do echo doesn't create no extra file,... and i have manager to make a mo for it but still no luck but if i run menu_build_main i see translation in the terminal so im gonna guess it has to be some else

Why astronauts use Linux
Because you can't open windows in space

HerrBert
Posts: 340
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 17 times
Been thanked: 114 times

Re: Problem translating Lunar Pup's Right-click Menu

Post by HerrBert »

@AntonioPt
I was barking up the wrong tree...
/usr/local/jwm_config/menu_build_main is missing TEXTDOMAIN
If i add

Code: Select all

msgid "Help"
msgstr "Hilfe"

msgid "Leave"
msgstr "Beenden"

to /usr/share/locale/de/LC_MESSAGES/jwm.mo
and add TEXTDOMAIN=jwm to /usr/local/jwm_config/menu_build_main i get this:

jwm_right-click.jpg
jwm_right-click.jpg (23.02 KiB) Viewed 318 times

[edit] This was done for testing... I think the right location for the translation should be in jwm_config.mo

User avatar
AntonioPt
Posts: 184
Joined: Wed Aug 11, 2021 7:41 pm
Has thanked: 83 times
Been thanked: 33 times

Re: Problem translating Lunar Pup's Right-click Menu

Post by AntonioPt »

Hello, @HerrBert,
Thankyou i see that your mo is called jwm.mo and not the script name this was my mistake

Why astronauts use Linux
Because you can't open windows in space

User avatar
AntonioPt
Posts: 184
Joined: Wed Aug 11, 2021 7:41 pm
Has thanked: 83 times
Been thanked: 33 times

Re: Problem translating Lunar Pup's Right-click Menu

Post by AntonioPt »

So last couple days i have been trying to understand how could i translate
100% the right click menu ( apps not of ROX) and thxx to HerrBert finaly got it :)

so in order work as it should this list of scripts menu_build_* "at least" must have this
export TEXTDOMAIN=jwm_config
export OUTPUT_CHARSET=UTF-8

and then the jwm_config.po all the gettext that all scripts have
Gonna share here my small translation in Portugues and US default
Hope it helps all and thxx every single one that i have been talking in the last days to see if i could fix this

Attachments
cmi_4c3554e5.jpg
cmi_4c3554e5.jpg (15.72 KiB) Viewed 252 times
cmi_2c379ed3.jpg
cmi_2c379ed3.jpg (28.52 KiB) Viewed 252 times

Why astronauts use Linux
Because you can't open windows in space

User avatar
AntonioPt
Posts: 184
Joined: Wed Aug 11, 2021 7:41 pm
Has thanked: 83 times
Been thanked: 33 times

Re: Problem translating Lunar Pup's Right-click Menu (Solved)

Post by AntonioPt »

@HerrBert by any change do you know how to change the tooltips from the Top menu ?

Attachments
VirtualBox_MultiPups_04_06_2024_09_15_41.png
VirtualBox_MultiPups_04_06_2024_09_15_41.png (47.57 KiB) Viewed 137 times

Why astronauts use Linux
Because you can't open windows in space

HerrBert
Posts: 340
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 17 times
Been thanked: 114 times

Re: Problem translating Lunar Pup's Right-click Menu (Solved)

Post by HerrBert »

@AntonioPt
From what i recall, in s15pup64 only function buttons are gettexted if trays are edited using /usr/local/jwm_config/tray
The program buttons are not gettexted and do not take translations of .desktop files into account.
You have to edit the jwmrc-tray files and translate the popups manually.
[edit]btw, most items in the shown tray will probably be defaultapplications. Their .desktop files aren't translated either

User avatar
AntonioPt
Posts: 184
Joined: Wed Aug 11, 2021 7:41 pm
Has thanked: 83 times
Been thanked: 33 times

Re: Problem translating Lunar Pup's Right-click Menu (Solved)

Post by AntonioPt »

HerrBert wrote: Tue Jun 04, 2024 1:18 pm

@AntonioPt
From what i recall, in s15pup64 only function buttons are gettexted if trays are edited using /usr/local/jwm_config/tray
The program buttons are not gettexted and do not take translations of .desktop files into account.
You have to edit the jwmrc-tray files and translate the popups manually.
[edit]btw, most items in the shown tray will probably be defaultapplications. Their .desktop files aren't translated either

Hello @HerrBert i found the issue thank you anyway, the files "jwmrc-*" are usr/share/jwm/tray_templates and then they are replace and its all in English there is 2 options replace the templates and put it in Portuguese or find a different way that i'm gonna look if i come with a solution and again thxx

Why astronauts use Linux
Because you can't open windows in space

Post Reply

Return to “Internationalization”