mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 20:46:14 +01:00
gwin32appinfo: Use correct gettext macro
`P_()` is for pspec strings — it gave us the option to split them out to a separate translation domain. `_()` is for normal strings. Spotted by Sophie Herold: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3411#note_1733329 Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
parent
0d268c4825
commit
c4b47c708d
@ -4253,7 +4253,7 @@ g_win32_app_info_get_name (GAppInfo *appinfo)
|
|||||||
else if (info->app && info->app->canonical_name_u8)
|
else if (info->app && info->app->canonical_name_u8)
|
||||||
return info->app->canonical_name_u8;
|
return info->app->canonical_name_u8;
|
||||||
else
|
else
|
||||||
return P_("Unnamed");
|
return _("Unnamed");
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
@ -5213,11 +5213,11 @@ g_win32_app_info_launch_internal (GWin32AppInfo *info,
|
|||||||
{
|
{
|
||||||
if (info->app->is_uwp || info->handler == NULL)
|
if (info->app->is_uwp || info->handler == NULL)
|
||||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
||||||
P_("The app ‘%s’ in the application object has no verbs"),
|
_("The app ‘%s’ in the application object has no verbs"),
|
||||||
g_win32_appinfo_application_get_some_name (info->app));
|
g_win32_appinfo_application_get_some_name (info->app));
|
||||||
else if (info->handler->verbs->len == 0)
|
else if (info->handler->verbs->len == 0)
|
||||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
||||||
P_("The app ‘%s’ and the handler ‘%s’ in the application object have no verbs"),
|
_("The app ‘%s’ and the handler ‘%s’ in the application object have no verbs"),
|
||||||
g_win32_appinfo_application_get_some_name (info->app),
|
g_win32_appinfo_application_get_some_name (info->app),
|
||||||
info->handler->handler_id_folded);
|
info->handler->handler_id_folded);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user