UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Use Japanese text in "clickable desktop"

    Scheduled Pinned Locked Moved App Development
    5 Posts 2 Posters 693 Views 1 Watching
    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.
      • T Offline
        tkgon
        last edited by

        Hello. I just tried to create a sample app that contains Japanese text. I am able to have the text display properly on my Ubuntu Mobile device, but on the clickable desktop preview the Japanese text shows up garbled.

        Is there a way to install Japanese fonts (or whatever is needed) on the clickable desktop?

        If it is of any help, for I use clickable 7.1.0. I tried with both HTML5 and Python/QML.

        lduboeufL 1 Reply Last reply Reply Quote 0
        • lduboeufL Offline
          lduboeuf @tkgon
          last edited by

          @tkgon are you using i18n.tr() for your strings ?

          T 1 Reply Last reply Reply Quote 0
          • T Offline
            tkgon @lduboeuf
            last edited by

            @lduboeuf Thanks for the answer. Yes, I do use i18n.tr(...). Trying it without this, results to the same thing. But as mentioned, the display is fine on my actual device. I guess, the clickable desktop environment lacks some fonts or so.

            lduboeufL 1 Reply Last reply Reply Quote 0
            • lduboeufL Offline
              lduboeuf @tkgon
              last edited by

              @tkgon yes probably, you can add the dependencies in your clickable file i guess with "dependencies_target"

              T 1 Reply Last reply Reply Quote 0
              • T Offline
                tkgon @lduboeuf
                last edited by tkgon

                @lduboeuf I was able to solve it via clickable.yaml config file. For reference my config file:

                clickable_minimum_required: "7"
                builder: pure-qml-cmake
                kill: qmlscene
                dependencies_target:
                - language-pack-ja
                - japan*
                

                Documentation for config file

                Maybe the dependencies can be optimized, but for now it does the job.
                Again thanks @lduboeuf

                1 Reply Last reply Reply Quote 1

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post