Lines Matching refs:translation
154 /* See whether there is a translation. */
155 const char *translation = gettext (name);
157 if (translation != name)
159 /* See whether the translation contains the original name. */
160 if (mbsstr_trimmed_wordbounded (translation, name))
161 return translation;
166 XNMALLOC (strlen (translation) + 2 + strlen (name) + 1 + 1, char);
168 sprintf (result, "%s (%s)", translation, name);
184 /* See whether there is a translation. */
185 const char *translation = gettext (name_ascii);
245 /* See whether we have a translation. Some translators have not understood
247 translator provided a no-op translation, we ignore it. */
248 if (strcmp (translation, name_ascii) != 0)
250 /* See whether the translation contains the original name. */
251 if (mbsstr_trimmed_wordbounded (translation, name_ascii)
253 && mbsstr_trimmed_wordbounded (translation, name_converted))
255 && mbsstr_trimmed_wordbounded (translation, name_converted_translit)))
261 return translation;
267 XNMALLOC (strlen (translation) + 2 + strlen (name) + 1 + 1, char);
269 sprintf (result, "%s (%s)", translation, name);