Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Use Japanese text in "clickable desktop"

    App Development
    2
    5
    176
    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
      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.

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

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

        T 1 Reply Last reply Reply Quote 0
        • T
          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.

          lduboeuf 1 Reply Last reply Reply Quote 0
          • lduboeuf
            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
              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
              • First post
                Last post