mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-08 02:14:53 -04:00
First attempt at i18n using gettext
This commit is contained in:
parent
44923349f3
commit
06058d7518
45 changed files with 1236 additions and 356 deletions
|
@ -319,11 +319,13 @@ INTERNAL int utf8_to_unicode(struct zint_symbol *symbol, const unsigned char sou
|
|||
} while (bpos < *length && state != 0 && state != 12);
|
||||
|
||||
if (state != 0) {
|
||||
strcpy(symbol->errtxt, "240: Corrupt Unicode data");
|
||||
symbol->err_origin = 240;
|
||||
strcpy(symbol->errtxt, _("Corrupt Unicode data"));
|
||||
return ZINT_ERROR_INVALID_DATA;
|
||||
}
|
||||
if (disallow_4byte && codepoint > 0xffff) {
|
||||
strcpy(symbol->errtxt, "242: Unicode sequences of more than 3 bytes not supported");
|
||||
symbol->err_origin = 242;
|
||||
strcpy(symbol->errtxt, _("Unicode sequences of more than 3 bytes not supported"));
|
||||
return ZINT_ERROR_INVALID_DATA;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue