Bug 2265872 - garcon-4.18-fedora-menus.patch adds category Administration which doesnt have any translation
Summary: garcon-4.18-fedora-menus.patch adds category Administration which doesnt have...
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: garcon
Version: epel9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-02-25 05:18 UTC by Aleksej Korn
Modified: 2025-01-25 08:56 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
screenshot of an issue (59.39 KB, image/png)
2024-02-25 05:18 UTC, Aleksej Korn
no flags Details

Description Aleksej Korn 2024-02-25 05:18:58 UTC
Created attachment 2018619 [details]
screenshot of an issue

Description of problem:
garcon-4.18-fedora-menus.patch adds category Administration which doesnt have any translation and is not default freedesktop category

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Set any non English GUI language
2. Have firewall-config (for example) installed. firewall-config goes into Administration category

Actual results:
Not translated

Expected results:
Translation

Additional info:
I tried to create Administration.desktop and xfce-administration.desktop files containing single translation for my language, it didnt work

[Desktop Entry]
Name[ru]=Администрирование
Name=Administration
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
Icon=preferences-other
Type=Directory

Comment 1 Aleksej Korn 2024-02-25 05:47:02 UTC
.desktop file name for that category is SystemConfig.directory

Comment 2 Aleksej Korn 2024-02-25 07:31:11 UTC
https://pastebin.com/mhxaWGhi

here i compiled translations from Docuwiki translation page - it has menu entry "administration"
There are not all translations, but still better than none. 
Lines started with # are ones that lack translation

Comment 3 Aleksej Korn 2024-02-25 18:32:58 UTC
despite what i put into .desktop file posted on pastebin, icon probably should be "emblem-system", since preferences-other doesnt work very well with alternative iconpacks like papirus

Comment 4 Aleksej Korn 2024-02-27 02:33:41 UTC
Installed Rocky Linux 8, and it turns out garcon for el8 DOES have this file + 1 additional file.

SystemConfig.directory (Administration)  https://pastebin.com/pg22JRZ2
SystemConfig-More.directory (More System Settings) https://pastebin.com/stw6kK7R

Please copy those to el9 garcon too.

Comment 5 Orion Poplawski 2024-03-01 04:53:13 UTC
So, garcon does not have this file.  /usr/share/desktop-directories/SystemConfig.directory is provided by the redhat-menus package.  This package is present in RHEL8 but not in RHEL9.

Some history - garcon used to depend on redhat-menus, but dropped it because we didn't want to be dependent on possible changes in that package (see bz#750380) and in it's place provided xfce-documentation.directory (now Documentation.directory).  But I'm guessing that we really should also provide an Administration.directory file as well copied from some favorite menus package.

Thoughts?

Comment 6 Kevin Fenzi 2024-03-04 18:13:36 UTC
Yeah, I guess so... I don't think I have time to do this anytime soon, but if you want to, feel free...

Comment 7 Aleksej Korn 2025-01-25 08:56:43 UTC
Latest version of Garcon (garcon-4.20.0-2.fc42.src.rpm) still has this issue.
How to fix it:
1. Save directory files into source folder SystemConfig.directory (Administration)  https://pastebin.com/pg22JRZ2 and SystemConfig-More.directory (More System Settings) https://pastebin.com/stw6kK7R
2. Edit spec file:
spec file already provides additional "Documentationdirectory", so i just added 2 more Source files and added installation for those 2

Source1:        Documentation.directory
Source2:        SystemConfig.directory
Source3:        SystemConfig-More.directory

%find_lang %{name}
install -pm 644 %{SOURCE1} %{buildroot}%{_datadir}/desktop-directories
install -pm 644 %{SOURCE2} %{buildroot}%{_datadir}/desktop-directories
install -pm 644 %{SOURCE3} %{buildroot}%{_datadir}/desktop-directories


Full spec file: https://pastebin.com/J4zEJZ1c


Note You need to log in before you can comment on or make changes to this bug.