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. Should QTranslator load more specialized translations? (es_US if es_ES is missing)
Forum Updated to NodeBB v4.3 + New Features

Should QTranslator load more specialized translations? (es_US if es_ES is missing)

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 296 Views 1 Watching
  • 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.
  • S Offline
    S Offline
    Sylvia van Os
    wrote on last edited by
    #1

    Hey everyone,

    An user created an Spanish (American) (en_US) translation for me, stored as pext_es_US.qm. This is the only Spanish translation my application now has. I noticed is that if I set my locale to es_US, it will load that translation, but if I set it to es_ES it won't. The same happens for users with an es_US locale if I rename the translation file to pext_es_ES. Renaming the file to be simply pext_es.qm will load it for all Spanish users no matter what.

    I'm just wondering if this is intended behaviour? It seems incorrect to give a Spanish user from Spain the default English translation instead of the Spanish (American) translation because I would assume the Spanish (American) translation would be easier for them?

    Should I instead rename the file to pext_es.qm and treat it as a "general Spanish translation"? Should I do the same for the pext_zh_Hant.qm translation I currently have? What's the best practice here?

    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