Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [ui] i18n of lengthy tooltip with interspersed stylesheet markup
Forum Updated to NodeBB v4.3 + New Features

[ui] i18n of lengthy tooltip with interspersed stylesheet markup

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 174 Views
  • 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.
  • O Offline
    O Offline
    okellogg
    wrote on last edited by okellogg
    #1

    UI files support stylesheet markup in texts. Sometimes toolTip texts may be quite lengthy and contain a lot of interspersed markup.
    Changing a detail in such a text will lead to the text becoming fuzzy in the PO files extracted for translation.
    It then becomes hard for the translators to spot the location(s) of modification in the text, especially with all the distracting markup mixed in.

    My idea would be to extend the tooltip property syntax to permit more than one <string> . The user could then divide the text into markup entries <string notr="true"> and translatable entries <string>. The POT-file extractor program would only forward the translatable entries to the POT file.
    I am aware that it is a rather heavy solution because it requires added magic for reassembling the total text from the <string notr="true"> parts and the translated parts.

    Perhaps there is an easier way?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved