Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Linefeed in a c4d_strings.str

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 253 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      On 06/07/2015 at 06:45, xxxxxxxx wrote:

      Hi all,

      i try to format a MessageWindow.

      so I open the window with

        
      c4d.gui.MessageDialog(res.string('IDC_DIRECTORY_ERROR', directory))   
      

      and in the c4d_strings.str I have:

        
      IDC_DIRECTORY_ERROR "Die Verzeichnisangabe '#' ist falsch. \n Bitte w\u00E4hlen Sie ein Verzeichnis.";   
      

      But the \n does not generate a new line.
      Can anybody please tell me where I'm wrong?

      And maybe: Is there a way to replace german "Ä" or "Ö" or "Ü" automatic?

      Thanks a lot

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 06/07/2015 at 12:35, xxxxxxxx wrote:

        For a new line use the pipe character '|' (without the apostrophes) instead of \n.

        Can't help with the German chars, sorry.

        Steve

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 06/07/2015 at 12:56, xxxxxxxx wrote:

          You can check out the Unicode Escape Tool in my Devtools Plugin, it will translate the special characters
          into a unicode escape sequence.

          https://github.com/nr-plugins/devtools

          1 Reply Last reply Reply Quote 0
          • First post
            Last post