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:
Philip Withnall 2023-11-29 13:39:58 +00:00
parent 0d268c4825
commit c4b47c708d

View File

@ -4253,7 +4253,7 @@ g_win32_app_info_get_name (GAppInfo *appinfo)
else if (info->app && info->app->canonical_name_u8)
return info->app->canonical_name_u8;
else
return P_("Unnamed");
return _("Unnamed");
}
static const char *
@ -5213,11 +5213,11 @@ g_win32_app_info_launch_internal (GWin32AppInfo *info,
{
if (info->app->is_uwp || info->handler == NULL)
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));
else if (info->handler->verbs->len == 0)
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),
info->handler->handler_id_folded);