Translation look-up logic improvements for Qt UI #591

pull laanwj wants to merge 1 commits into bitcoin:master from laanwj:translation_lookup_logic changing 3 files +27 −13
  1. laanwj commented at 12:07 PM on October 23, 2011: member

    Improve translation look-up logic. This properly handles cases where a translation is available for the language but not for the specific territory (ie, "es_AR" now falls back on "es" not the default "en_US").

    • use wildcard for TRANSLATIONS in bitcoin-qt.pro to automatically build all translations present in src/qt/locale (thanks @tcatm)
    • first load translations/<language>.qm, then translations/<language>_<TERRITORY>.qm, so that territory-specific translations take precedence, but the fallback is on the base language if no territory-specific translation exists
  2. Translation lookup logic improvements
    - use wildcard for TRANSLATIONS in bitcoin-qt.pro to automatically build all translations present in src/qt/locale (thanks @tcatm)
    - first load translations/<language>.qm, then translations/<language>_<TERRITORY>.qm, so that territory-specific translations take precedence, but the fallback is on the base language if no territory-specific translation exists.
    5c92622ad6
  3. gavinandresen referenced this in commit cf908574cf on Oct 24, 2011
  4. gavinandresen merged this on Oct 24, 2011
  5. gavinandresen closed this on Oct 24, 2011

  6. coblee referenced this in commit 113ddedb2b on Jul 17, 2012
  7. laanwj deleted the branch on Apr 9, 2014
  8. ptschip referenced this in commit 97c13afb78 on May 17, 2017
  9. sipa referenced this in commit cc05fa919a on Mar 30, 2019
  10. sipa referenced this in commit 1e32413e52 on Mar 30, 2019
  11. sipa referenced this in commit 54245985fb on Mar 31, 2019
  12. sipa referenced this in commit 3fe71bbd95 on Apr 2, 2019
  13. LongShao007 referenced this in commit 3d9a3d2063 on Jul 15, 2019
  14. LongShao007 referenced this in commit 8af66f3427 on Jul 15, 2019
  15. LongShao007 referenced this in commit 807f206f73 on Jul 15, 2019
  16. fjahr referenced this in commit 85d0e1bcce on Jul 24, 2019
  17. kallewoof referenced this in commit b89a64c36b on Oct 4, 2019
  18. kallewoof referenced this in commit c866f52e2a on Oct 4, 2019
  19. backpacker69 referenced this in commit ef89673ace on Mar 28, 2021
  20. rajarshimaitra referenced this in commit 4953744dc8 on Aug 5, 2021
  21. DrahtBot locked this on Sep 8, 2021
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me