WIP: translate strings (#288) #292
pull RandyMcMillan wants to merge 7 commits into bitcoin-core:master from RandyMcMillan:translate-service-strings changing 7 files +150 −150-
RandyMcMillan commented at 9:31 pm on April 24, 2021: contributorSome guidance on this would be appreciated until I get comfortable with this.
-
jonatack commented at 9:43 pm on April 24, 2021: contributor
The PR description in #287 looks like helpful guidance for this.
(PS - don’t put @-prefixed usernames in commits and PR descriptions; the latter because usernames in the description are copied into the merge commit by the merge script. This can cause endless annoying notifications for those concerned. An update to the merge script now warns maintainers if a merge message contains a @username, but it’s better not to add them to begin with. For more, see https://jonatack.github.io/articles/how-to-contribute-pull-requests-to-bitcoin-core#pr-descriptions.)
-
RandyMcMillan marked this as a draft on Apr 24, 2021
-
hebasto commented at 12:50 pm on April 25, 2021: member
Thanks for working on this!
The PR description in #287 looks like helpful guidance for this.
Indeed, for cases in this PR the translator comments should be used.
To ensure, that they are working properly, you could use
make -C src translate
.Also for such changes I’d prefer a pr with a wide scope :)
-
hebasto added the label Translations on Apr 25, 2021
-
guiutil.cpp: add tr stubs for dev notes 16e0df402e
-
askpassphrasedialog.cpp: add tr stubs for dev notes 2027828bae
-
addressbookpage.cpp: add tr stubs for dev notes 5bedecbab4
-
addresstablemodel.cpp: add tr stubs ofr dev notes 7cd4ec506d
-
bantablemodel.cpp: add tr stubs for dev notes 530b1a6712
-
src/qt/bitcoin.cpp: add tr stubs for dev notes 8ee9bf7e5d
-
src/qt/bitcoingui.cpp: add tr stubs for dev notes 3d9c5fa336
-
in src/qt/guiutil.cpp:713 in 2027828bae outdated
709@@ -710,7 +710,7 @@ QString formatServicesStr(quint64 mask) 710 if (strList.size()) 711 return strList.join(" & "); 712 else 713- return QObject::tr("None"); 714+ return QObject::tr("None", "absence of value");
hebasto commented at 8:23 pm on April 25, 2021:Our goal is to replace useless (in most cases) disambiguation strings (the second argument in
tr
call) with translator comments:0 //: Absence of value. 1 return QObject::tr("None");
RandyMcMillan commented at 9:12 pm on April 25, 2021: contributorNOTE: Currently I am just trying to get an idea of how much work needs to be done.hebasto commented at 11:17 am on May 27, 2021: memberIn its current state this PR does not follow our the most recent translation policy, as we are not using the second argument of the
QObject:tr
function.#311 is a good example of the mentioned approach.
Closing for now.
hebasto closed this on May 27, 2021
bitcoin-core locked this on Aug 16, 2022
RandyMcMillan jonatack hebastoLabels
Translations
This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-21 12:20 UTC
More mirrored repositories can be found on mirror.b10c.me