ZyX wrote:
> # HG changeset patch
> # User ZyX <[email protected]>
> # Date 1371238936 -14400
> # Fri Jun 14 23:42:16 2013 +0400
> # Branch python-fixes
> # Node ID abcf5d9458ee826516c1051cfd14d279b1097174
> # Parent b9d4dfa09951d4fb75972df34802675edf24a17e
> Make macros do translation of exception messages
>
> Reason: it will be easy to delete/restore translating
Unfortunately this breaks all translations. E.g.:
@@ -120,7 +122,7 @@
}
else
{
- PyErr_SetString(PyExc_TypeError, _("object must be string"));
+ PyErr_SET_STRING(PyExc_TypeError, "object must be string");
return NULL;
}
This string will not be translated. It should have been:
+ PyErr_SET_STRING(PyExc_TypeError, N_("object must be string"));
The N_() macro marks a string as translatable.
I'll include this patch now, since otherwise there will be problems with
all following patches. But please fix this ASAP.
--
GOD: That is your purpose Arthur ... the Quest for the Holy Grail ...
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.