Closed proninyaroslav closed 7 months ago
I can confirm this issue.
Unfortunately even when this string is translated, the original text is still shown for some reason.
this string isn't in the Russian translation and
xgettext
also doesn't see it (I runmake potfile
command):
That's unrelated because:
make potfile
generates po/dashtodock.pot (template for translators) where you can find this string.@proninyaroslav @xalt7x Because "Show Details" uses the default translation of the Gnome Shell.But the text of the Gnome Shell menu item is "App Details"
@proninyaroslav So you can modify _('Show Details') to __('Show Details') in line 1151 of the appIcons.js and build it yourself, I tried it and it works!
@krystal-cao This is more likely a workaround than a solution. If it uses GNOME translation then why is it only English? In the original GNOME Dock this line is translated.
@proninyaroslav I'm guessing that the text on the line of the original GNOME Dock has been changed from 'Show Details' to 'App Details' since some version. 'App Details' is translated in the original GNOME Dock. 'Show Details' is not translated in the original GNOME Dock. So 'Show Details' is only English.If it uses Gnome translation, then the original text must be the same. You could also change ('Show Details') to ('App Details') and try building it!
@krystal-cao Yes, it works. Thank you. I created a PR https://github.com/micheleg/dash-to-dock/pull/2117
@krystal-cao , thanks for finding it!
@proninyaroslav ,
I'd like to have it fixed as well but IMO the better approach would be to get rid of some custom overrides (e.g. "Show Details", "Failed to launch", "Launch using Integrated Graphics Card", "Launch using Discrete Graphics Card" etc.) if "Dash to Dock" can just re-use original strings from the GNOME Shell.
It should prevent such breakages and preserve consistency with the GNOME upstream decisions/translations.
AFAIK, "Dash to Panel" doesn't have this issue.
@xalt7x
A cursory examination of Dash To Panel showed that they use AppMenu
from Shell with minimal customization (only hiding some menu items based on settings). I'm not very familiar with gettext
, but it seems to me that it is impossible to simply reuse the translation, since you need to know the source string (in this case App Details
): https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/appMenu.js#L86. Maybe we should just take AppMenu
as a basis and extend the class by adding custom things, but it is unknown how this will affect the future compatibility of the extension with Shell.
In the Dash To Dock menu the "Show Details" item in English, and for example this string isn't in the Russian translation and
xgettext
also doesn't see it (I runmake potfile
command):But in the original GNOME Dock the "Show Details" item is translated: