Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

Quotation marks in string resources

 Post Reply Post Reply
Author
Message
Miro View Drop Down
Member
Member
Avatar

Joined: 2015 Feb 11
Online Status: Offline
Posts: 26
Post Options Post Options   Quote Miro Quote  Post ReplyReply Direct Link To This Post Topic: Quotation marks in string resources
    Posted: 2017 Apr 20 at 2:36am

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.
Back to Top
S_Bach View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2011 Jun 27
Online Status: Offline
Posts: 1286
Post Options Post Options   Quote S_Bach Quote  Post ReplyReply Direct Link To This Post Posted: 2017 Apr 21 at 4:54am
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
SDK Support Engineer
Back to Top
Miro View Drop Down
Member
Member
Avatar

Joined: 2015 Feb 11
Online Status: Offline
Posts: 26
Post Options Post Options   Quote Miro Quote  Post ReplyReply Direct Link To This Post Posted: 2017 Apr 21 at 6:52am
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.
Back to Top
wbeh View Drop Down
Member
Member


Joined: 2009 Sep 12
Location: Germany
Online Status: Offline
Posts: 242
Post Options Post Options   Quote wbeh Quote  Post ReplyReply Direct Link To This Post Posted: 2017 Apr 21 at 7:41am
Originally posted by Miro

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.



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

Edited by wbeh - 2017 Apr 21 at 9:42am
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.125 seconds.