HISE Logo Forum
    • Categories
    • Register
    • Login

    Hard Coded String Literals

    Scheduled Pinned Locked Moved Feature Requests
    4 Posts 3 Posters 276 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.
    • clevername27C
      clevername27
      last edited by

      Hard-Coded string literals bad. Please move to file. I can help.

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @clevername27
        last edited by

        I wouldn‘t put this too high on my priority list but if you are motivated to do this I can think of a system and then just give you the instructions on doing so, then you can grep the codebases for literals and move them to the centralized location.

        I‘ll try to factor in the support for translations so that we don‘t have to change this again if we want to support this at some point (but that might be a bit too much work for now)

        d.healeyD clevername27C 2 Replies Last reply Reply Quote 1
        • d.healeyD
          d.healey @Christoph Hart
          last edited by

          @Christoph-Hart For translations I've been using Crowdin for my app. For me it was quite simple, just one json file per locale with the English strings alongside their translated version. Probably a more robust method is to use a fixed ID rather than a string, but my app is very simple compared to something like HISE so not much of an issue - https://github.com/davidhealey/waistline/tree/master/www/assets/locales

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          1 Reply Last reply Reply Quote 0
          • clevername27C
            clevername27 @Christoph Hart
            last edited by

            @Christoph-Hart Sure, I'm motivated. Cheers.

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

            19

            Online

            1.8k

            Users

            12.0k

            Topics

            104.8k

            Posts