[Qt] don't allow translation of our example btc address #4208

pull Diapolo wants to merge 1 commits into bitcoin:master from Diapolo:no_tr_example_address changing 4 files +6 −5
  1. Diapolo commented at 1:23 PM on May 21, 2014: none

    No description provided.

  2. Diapolo referenced this in commit 6fcdad787f on May 21, 2014
  3. in src/qt/guiutil.cpp:None in 788f2e1df8 outdated
      85 | @@ -86,7 +86,7 @@ void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent)
      86 |  
      87 |      widget->setFont(bitcoinAddressFont());
      88 |  #if QT_VERSION >= 0x040700
      89 | -    widget->setPlaceholderText(QObject::tr("Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)"));
      90 | +    widget->setPlaceholderText(QObject::tr("Enter a Bitcoin address") + getExampleBitcoinAddressString());
    


    laanwj commented at 1:27 PM on May 21, 2014:

    Seems like the correct direction, though I'd personally prefer

    widget->setPlaceholderText(QObject::tr("Enter a Bitcoin address (e.g. %1)").arg(BITCOIN_EXAMPLE_ADDRESS));
    

    This makes it clearer to the translators what the entire message is, instead of having to translate a fragment like 'e,g,'.


    Diapolo commented at 1:30 PM on May 21, 2014:

    As this seems to be the only once place left where we need to set the example address, I agree :).


    Diapolo commented at 1:38 PM on May 21, 2014:

    @laanwj Updated :).

  4. ghost commented at 9:41 PM on May 21, 2014: none

    Yes, much better. This is good use of placeholders.

  5. wtogami commented at 12:30 AM on May 22, 2014: contributor

    Do not merge until after 0.9.2 is released.

  6. laanwj commented at 1:51 AM on May 22, 2014: member

    @wtogami well we can merge, no problem, we just can't update the English translations from master. I'm not going to do that until there is some solution in place to make Transifex work with two different branches for example my proposal in #4006.

  7. wtogami commented at 2:01 AM on May 22, 2014: contributor

    Transifex auto-grabs English strings from https://raw.github.com/bitcoin/bitcoin/master/src/qt/locale/bitcoin_en.ts I assume you mean merging string changes is OK as long as bitcoin_en.ts is not modified?

  8. laanwj commented at 2:03 AM on May 22, 2014: member

    That's exactly what I mean by not updating the English translation.

  9. grue0 commented at 2:52 AM on June 2, 2014: none

    This does not localize well with other non-Latin languages, since "e.g." is left untranslated.

  10. laanwj commented at 1:23 PM on June 2, 2014: member

    @gruez No it isn't? It uses QObject::tr("Enter a Bitcoin address (e.g. %1)"). so the entire sentence apart from the bitcoin address can be translated.

  11. Diapolo commented at 3:52 PM on June 5, 2014: none

    @laanwj To understand, you block this until official 0.9.2 is out? But AFAIK there were also string change-related pulls merged, e.g. the one which allows max orphan block size.

  12. laanwj commented at 4:11 PM on June 5, 2014: member

    @Diapolo No, not really. Once this is tested it can be merged IMO. We're blocking English language updates for now (so of bitcoin_en.ts). Strings in the source code in master can be changed, no problem.

  13. [Qt] don't allow translation of our example btc address 6a5c124b84
  14. Diapolo commented at 1:25 PM on June 23, 2014: none

    I fixed a merge-conflict, if @BitcoinPullTester is happy this can get in IMHO.

  15. in src/qt/signverifymessagedialog.cpp:None in 6a5c124b84
      26 | @@ -27,7 +27,6 @@ SignVerifyMessageDialog::SignVerifyMessageDialog(QWidget *parent) :
      27 |  
      28 |  #if QT_VERSION >= 0x040700
      29 |      ui->signatureOut_SM->setPlaceholderText(tr("Click \"Sign Message\" to generate signature"));
      30 | -    ui->addressIn_VM->setPlaceholderText(tr("Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)"));
    


    laanwj commented at 1:56 PM on June 23, 2014:

    Keep this placeholder text please (minus the address)


    Diapolo commented at 6:42 AM on June 24, 2014:

    This is done via GUIUtil::setupAddressWidget(ui->addressIn_VM, this);.


    laanwj commented at 10:42 AM on June 27, 2014:

    OK

  16. BitcoinPullTester commented at 2:18 PM on June 23, 2014: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4208_6a5c124b849ac1e9e5cfb99e72ae483eeb3e8cad/ for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  17. Diapolo commented at 9:03 AM on June 27, 2014: none

    @laanwj Guess this can be merged now also?

  18. laanwj merged this on Jun 27, 2014
  19. laanwj closed this on Jun 27, 2014

  20. laanwj referenced this in commit 4684c883bb on Jun 27, 2014
  21. Diapolo deleted the branch on Jun 27, 2014
  22. DrahtBot locked this on Sep 8, 2021

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-21 18:15 UTC

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