mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-30 11:42:54 +03:00
* glibcompat.c: Move Q_ back ...
* util.c: ... here. Q_ is not defined by just including glib.h. The glib implementation doesn't strip prefix from translations, so it's not suitable for us. Finally, it makes man2hlp depend on libintl. Reported by Leonard den Ottolander <leonard@den.ottolander.nl>
This commit is contained in:
parent
a0aa9fd9d4
commit
7b3b03f9db
@ -1,3 +1,12 @@
|
||||
2005-11-02 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* glibcompat.c: Move Q_ back ...
|
||||
* util.c: ... here. Q_ is not defined by just including glib.h.
|
||||
The glib implementation doesn't strip prefix from translations,
|
||||
so it's not suitable for us. Finally, it makes man2hlp depend
|
||||
on libintl.
|
||||
Reported by Leonard den Ottolander <leonard@den.ottolander.nl>
|
||||
|
||||
2005-11-02 Egmont Koblinger <egmont@uhulinux.hu>
|
||||
|
||||
* main.c (directory_history_add): Fix invalid directory preselection on
|
||||
|
@ -111,14 +111,3 @@ g_strlcpy (gchar *dest,
|
||||
|
||||
#endif /* GLIB_MAJOR_VERSION < 2 */
|
||||
|
||||
#ifndef Q_
|
||||
const char *
|
||||
Q_ (const char *s)
|
||||
{
|
||||
const char *result, *sep;
|
||||
|
||||
result = _(s);
|
||||
sep = strchr(result, '|');
|
||||
return (sep != NULL) ? sep + 1 : result;
|
||||
}
|
||||
#endif /* ! Q_ */
|
||||
|
@ -35,8 +35,4 @@ g_slist_delete_link (GSList *list, GSList *link)
|
||||
|
||||
#endif /* GLIB_MAJOR_VERSION < 2 */
|
||||
|
||||
#ifndef Q_
|
||||
const char *Q_ (const char *s);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
11
src/util.c
11
src/util.c
@ -1507,3 +1507,14 @@ ascii_alpha_to_cntrl (int ch)
|
||||
}
|
||||
return ch;
|
||||
}
|
||||
|
||||
const char *
|
||||
Q_ (const char *s)
|
||||
{
|
||||
const char *result, *sep;
|
||||
|
||||
result = _(s);
|
||||
sep = strchr(result, '|');
|
||||
return (sep != NULL) ? sep + 1 : result;
|
||||
}
|
||||
|
||||
|
@ -261,4 +261,7 @@ void save_file_position (const char *filename, long line, long column);
|
||||
* else returns the argument. */
|
||||
extern int ascii_alpha_to_cntrl (int ch);
|
||||
|
||||
#undef Q_
|
||||
const char *Q_ (const char *s);
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user