Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Multilingual - Plugin not working

    Cinema 4D SDK
    python
    2
    4
    492
    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.
    • J
      jwzegelaar
      last edited by

      Hi Guys,

      We are making our plugin ready to be multilingual. We did the work but when we test it all non-ascii characters are not correctly displayed. This is even when we install the language on the workstation. We did the test both on Mac and Pc.

      Can you tell us what we are doing wrong please?

      Thank you.

      Here an example how Japanese looks:

      Screenshot 2023-06-14 at 15.46.45.png

      Screenshot 2023-06-14 at 16.29.19.png

      Screenshot 2023-06-14 at 16.29.55.png

      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand @jwzegelaar
        last edited by ferdinand

        Hello @jwzegelaar,

        Thank you for reaching out to us. The resource system of Cinema 4D does not support Unicode encodings directly. Strings that contain characters outside of the ASCII table must encode Unicode characters. Here is for example the start of the Japanese string definitions for the Asset Browser as they can be found in {C4D}\resource\modules\assetbrowser\strings_ja-JP.str:

        STRINGTABLE 
        {
          IDS_ASSET             "\u30A2\u30BB\u30C3\u30C8";
          IDS_ASSET_MANAGER     "\u30A2\u30BB\u30C3\u30C8\u30D6\u30E9\u30A6\u30B6";
          IDS_ASSET_MANAGER_CMD "\u30A2\u30BB\u30C3\u30C8\u30D6\u30E9\u30A6\u30B6...";
        // ...
        }
        

        This applies to both dialog and description resources. Most text editors such as VS Code offer plugins or native features to Unicode escape file contents. We recommend using such tools to produce the escaped strings for translations.

        8aeccb05-302e-4e6a-9e30-be7db68eba91-image.png

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 1
        • J
          jwzegelaar
          last edited by

          Hi Ferdinand!

          Perfect! We got it, thank you so much for the quick reply.

          1 Reply Last reply Reply Quote 0
          • J
            jwzegelaar
            last edited by jwzegelaar

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • First post
              Last post