Quotation marks in string resources
-
On 20/04/2017 at 02:36, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R18 demo
Platform: Windows ; Mac ; Mac OSX ;
Language(s) :---------
Hello,
can somebody please tell me whether it is possible and how to put quotation marks into a string in .str resource file?I tried this:
STRINGTABLE { ID_HELLO "Hello \"world\" !"; }
and also this:
STRINGTABLE { ID_HELLO "Hello \u0022world\u0022 !"; }
but Cinema keeps showing Error on startup and then ignores the resource file. (I'm testing french translation of my plugin).
Thank you.
-
On 21/04/2017 at 04:54, xxxxxxxx wrote:
Hello,
indeed it seems that \u0022 is not accepted or that the resulting quotation mark is interpreted as the end of the string. So far it seems that only \u0027 for an apostrophe works. Maybe this can be used instead.
best wishes,
Sebastian -
On 21/04/2017 at 06:52, xxxxxxxx wrote:
Thank you for answer.
Apostrophe works also just like single character ' so there is no need to use \u0027. I tried double apostrophes and they do look like quotation mark (at least in default font).I was looking for some escape sequence for quotation mark but if it is not possible then I will change the text.
-
On 21/04/2017 at 07:41, xxxxxxxx wrote:
Originally posted by xxxxxxxx
<ADDRESS>
User Information:
Cinema 4D Version: R18 demo
Platform: Windows ; Mac ;
Mac OSX ;
Language(s) :---------
</ADDRESS> Hello,can somebody please tell me whether it is possible and how to put quotation marks into a string in .str resource file?I tried this:STRINGTABLE{ ID_HELLO "Hello \"world\" !";}
and also this:
STRINGTABLE{ ID_HELLO "Hello \u0022world\u0022 !";}
but Cinema keeps showing Error on startup and then ignores the resource file. (I'm testing french translation of my plugin).Thank you.
I haven't checked it, but as Cinema is using unicode, you could try to switch to preferred "typographic" quotation marks instead - see https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
Best regards,
Wilfried