Locales with country codes use English if the country code is different #1061

issue ghost opened this issue on April 8, 2012
  1. ghost commented at 6:34 PM on April 8, 2012: none

    When I checked bitcoin-qt 0.6.0 on Ubuntu 10.04 after switching GNOME 2.30's language settings to fr_CA and fr_BE, I remarked that for some reason the fall-back language wasn't fr_FR but English. So a Belgian French speaker would have to use the application in English. IMHO, for Bitcoin the differences between countries are negligible if not entirely irrelevant so it would make sense to rename French (France) to French only on Transifex. It might also make sense to generally include locales with a country code only if they reach a given percentage of completion, especially if Qt insists on choosing English as the fall-back language rather than the same language with a different country code (right now there's a fr_CA at only 3%...).

    Edit: I added French with no country code on Transifex, so feel free to delete French (France).

  2. Diapolo commented at 9:37 PM on April 8, 2012: none

    You can always help in making the translations better via: https://www.transifex.net/projects/p/bitcoin/resource/tx/

  3. laanwj commented at 9:00 AM on April 9, 2012: member

    The lookup mechanism works like this when handling translation request from English to language 'xx_YY':

    1. use message from 'xx_YY' if it exists
    2. use message from 'xx' if it exists
    3. fall back to defined message in source code (which is English)

    Hence, I think it is a good suggestion to rename French (France) to just French.

  4. Diapolo commented at 9:12 AM on April 9, 2012: none

    This would be a good thing for all "major" translations, I dunno if there are more like the french one.

  5. ghost commented at 1:38 PM on April 9, 2012: none

    I can confirm what Iaanwj said, I tested it on my side: compiling from source after adding bitcoin_fr.ts (with no country code) and declaring the file in src/qt/bitcoin.qrc and then starting with ./bitcoin-qt -lang=fr_CA launches Bitcoin Wallet in French and not in English.

    In other words making sure that there's a locale with no country code seems to have fixed the issue. I will copy the current French translation and add it with no country code to make sure the issue will be resolved for the next version. Feel free to delete French (France) to make my life easier -- I'm the one who contributed it on Transifex so no worries about inconsistencies.

    Many thanks to gmaxwell and sipa for their help with compiling on IRC.

    Diapolo wrote:

    This would be a good thing for all "major" translations, I dunno if there are more like the french one.

    Yes, right now at least Spanish, Portuguese and Greek (also spoken in Cyprus) are in the same case. Given possible particularities of each language, it would probably be a good idea to confirm this with respective translators and possibly add a guideline on Transifex advising to create a language with no country code if appropriate.

  6. Diapolo commented at 7:03 AM on July 18, 2012: none

    As Bitcoin-Qt now has a working language selection in the options, I would suggest to close this. I see no possibility to force translators to keep in mind to use a base lang, when e.g. creating a new translation.

  7. Diapolo commented at 10:03 PM on August 30, 2012: none

    @cardpuncher Anything to add, if not can you close this?

  8. ghost commented at 11:56 AM on January 30, 2013: none

    Indeed, the language selection makes this issue irrelevant.

  9. unknown closed this on Jan 30, 2013

  10. suprnurd referenced this in commit d537610047 on Dec 5, 2017
  11. suprnurd referenced this in commit 94e38e3184 on Dec 5, 2017
  12. MarcoFalke 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-17 15:16 UTC

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