[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gettext] Hardcoded escaping
From: |
Daiki Ueno |
Subject: |
Re: [bug-gettext] Hardcoded escaping |
Date: |
Fri, 30 Oct 2015 10:36:42 +0900 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Serj Lavrin <address@hidden> writes:
> ```
> gettext('My magic ain\'t working string')
> ```
> Not big deal — now that works.
> But then comes into play `xgettext`. During extraction `xgettext` will get
> string as it is — with
> escaped single quote.
For the record, this is not the case. xgettext recognizes character
escapes and canonicalize strings before writing. So the output
shouldn't contain escaped single quote:
$ cat a.js
gettext('My magic ain\'t working string')
$ xgettext -L JavaScript --no-location --omit-header -o - a.js
msgid "My magic ain't working string"
msgstr ""
Regards,
--
Daiki Ueno