Skip to content

scripted-diff: Replace three dots with ellipsis in the UI strings - #21836

Merged
laanwj merged 1 commit into
bitcoin:masterfrom
hebasto:210502-ellipsis
May 10, 2021
Merged

laanwj merged 1 commit into
bitcoin:masterfrom
hebasto:210502-ellipsis

Conversation

@hebasto

@hebasto hebasto commented May 2, 2021

Copy link
Copy Markdown
Member

This PR is split from #21463.
The change was suggested on Transifex.com, and it does not touch LogPrint and LogPrintf calls.

The only comment on #21463 was:

Mind that these messages also end up in the log. In principle the log is already UTF-8 (as are all strings and text in bitcoind). But, just noting, that it might make browsing the log a less pleasant experience on systems with misconfigured locale like some BSDs by default.

-BEGIN VERIFY SCRIPT-
sed -i -E -e 's/\.\.\."\)(\.|,|\)| )/…"\)\1/' -- $(git ls-files -- 'src' ':(exclude)src/qt/bitcoinstrings.cpp')
sed -i -e 's/\.\.\.\\"/…\\"/' src/qt/sendcoinsdialog.cpp
sed -i -e 's|\.\.\.</string>|…</string>|' src/qt/forms/*.ui
sed -i -e 's|\.\.\.)</string>|…)</string>|' src/qt/forms/sendcoinsdialog.ui
-END VERIFY SCRIPT-
@DrahtBot

DrahtBot commented May 2, 2021

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@DrahtBot

DrahtBot commented May 3, 2021

Copy link
Copy Markdown
Contributor

🕵️ @sipa has been requested to review this pull request as specified in the REVIEWERS file.

@kiminuo

kiminuo commented May 3, 2021

Copy link
Copy Markdown
Contributor

Concept ACK, it's much nicer!

Went line by line and it looks correct to me.

@laanwj

laanwj commented May 4, 2021 •

Copy link
Copy Markdown
Member

ACK d66f283
We do want to do an English translation update after this to prevent people from wasting time translating the old messages.

and it does not touch LogPrint and LogPrintf calls.

Still, InitMessages end up in the log. I don't see it as a blocking issue if no one else does though my comment was just a remark.

@kristapsk

Copy link
Copy Markdown
Contributor

What are the benefits of this? Just looking nicer (which is discutable too)?

@kiminuo

kiminuo commented May 5, 2021 •

Copy link
Copy Markdown
Contributor

What are the benefits of this? Just looking nicer (which is discutable too)?

For many people there will be zero benefit. It depends on audience. Either you care about typography or you don't.

Anyway, when I open randomly a few applications on my computer, ellipses are used in dialogs and menus often so Bitcoin Core will look like other applications do which is a good thing I think.

@hebasto

hebasto commented May 5, 2021

Copy link
Copy Markdown
Member Author

What are the benefits of this? Just looking nicer (which is discutable too)?

As stated in the pr description, this change was suggested by translators on Transifex.com (you could see open issues there).

I personally did not make any research on this topic. I assume that translators could be more experienced than me on it :)

@laanwj

laanwj commented May 5, 2021 •

Copy link
Copy Markdown
Member

It just seems to be the way to do it nowadays (in the age of unicode). It's intended as ELLIPSIS, there's a dedicated character for it which is better than using three separate dots. This means the rendering engine has more meta-information about how to display it. It's definitely a very minor thing though and if it becomes controversial in the least we should close this.

Edit: I guess for accessibility it is also marginally important as a hint, instead of the text to speech can interpret it semantically.

@laanwj
laanwj merged commit f8176b7 into bitcoin:master May 10, 2021
laanwj added a commit to bitcoin-core/gui that referenced this pull request May 10, 2021
Update for Transifex. Needed after bitcoin/bitcoin#21836.
@hebasto
hebasto deleted the 210502-ellipsis branch May 10, 2021 12:57
laanwj added a commit to laanwj/bitcoin that referenced this pull request May 17, 2021
Update for Transifex. Needed after bitcoin#21836.
hebasto added a commit to bitcoin-core/gui that referenced this pull request May 17, 2021
c34a49f qt: English translations update (W. J. van der Laan)
55c012d qt: Extract translations correctly from UTF-8 formatted source (Hennadii Stepanov)

Pull request description:

  Update for Transifex. Needed after bitcoin/bitcoin#21836.

ACKs for top commit:
  hebasto:
    ACK c34a49f, verified that `make -C src translate` returns zero updated strings (as all of them are updated in the top commit):

Tree-SHA512: 01170b4ef82dc01104e21ec9fe1115c3defb50ffd697bb59864ca4bb132765b6211d048b009d8d3dab4606e023ba33ba7c6c8c2dd086941046782b5009a83bb0
rebroad pushed a commit to rebroad/bitcoin that referenced this pull request Jun 23, 2021
Update for Transifex. Needed after bitcoin#21836.
janus pushed a commit to BitgesellOfficial/bitgesell that referenced this pull request Oct 29, 2021
Update for Transifex. Needed after bitcoin/bitcoin#21836.
gwillen pushed a commit to ElementsProject/elements that referenced this pull request Jun 1, 2022
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants