summaryrefslogtreecommitdiffstats
path: root/src/gui_xim.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-01 21:59:18 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-01 21:59:18 +0000
commit9a846fbaa569b3690d70606f2a86e97f77a05496 (patch)
treecbe5304927fe21586593c94342e4f023aa3e0837 /src/gui_xim.c
parentb34689010a587e85ff724051f276513a15c634d0 (diff)
patch 8.2.3977: error messages are spread outv8.2.3977
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
Diffstat (limited to 'src/gui_xim.c')
-rw-r--r--src/gui_xim.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/gui_xim.c b/src/gui_xim.c
index 4bd1a2eedf..28d354ced3 100644
--- a/src/gui_xim.c
+++ b/src/gui_xim.c
@@ -1324,15 +1324,11 @@ xim_set_preedit(void)
XNLineSpace, line_space,
NULL);
if (XSetICValues(xic, XNPreeditAttributes, attr_list, NULL))
- emsg(_("E284: Cannot set IC values"));
+ emsg(_(e_cannot_set_ic_values));
XFree(attr_list);
}
}
-# if defined(FEAT_GUI_X11)
-static char e_xim[] = N_("E285: Failed to create input context");
-# endif
-
# if defined(FEAT_GUI_X11) || defined(PROTO)
# if defined(XtSpecificationRelease) && XtSpecificationRelease >= 6 && !defined(SUN_SYSTEM)
# define USE_X11R6_XIM
@@ -1483,7 +1479,7 @@ xim_real_init(Window x11_window, Display *x11_display)
if (p_verbose > 0)
{
verbose_enter();
- emsg(_("E286: Failed to open input method"));
+ emsg(_(e_failed_to_open_input_method));
verbose_leave();
}
return FALSE;
@@ -1496,13 +1492,13 @@ xim_real_init(Window x11_window, Display *x11_display)
destroy_cb.callback = xim_destroy_cb;
destroy_cb.client_data = NULL;
if (XSetIMValues(xim, XNDestroyCallback, &destroy_cb, NULL))
- emsg(_("E287: Warning: Could not set destroy callback to IM"));
+ emsg(_(e_warning_could_not_set_destroy_callback_to_im));
}
# endif
if (XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL) || !xim_styles)
{
- emsg(_("E288: input method doesn't support any style"));
+ emsg(_(e_input_method_doesnt_support_any_style));
XCloseIM(xim);
return FALSE;
}
@@ -1561,7 +1557,7 @@ xim_real_init(Window x11_window, Display *x11_display)
if (p_verbose > 0)
{
verbose_enter();
- emsg(_("E289: input method doesn't support my preedit type"));
+ emsg(_(e_input_method_doesnt_support_my_preedit_type));
verbose_leave();
}
XCloseIM(xim);
@@ -1625,7 +1621,7 @@ xim_real_init(Window x11_window, Display *x11_display)
else
{
if (!is_not_a_term())
- emsg(_(e_xim));
+ emsg(_(e_failed_to_create_input_context));
XCloseIM(xim);
return FALSE;
}