Skip to content

Fix line too long translation string and comment#11092

Merged
feerrenrut merged 1 commit into
nvaccess:masterfrom
accessolutions:pr10941-xgettext-E501
May 4, 2020
Merged

Fix line too long translation string and comment#11092
feerrenrut merged 1 commit into
nvaccess:masterfrom
accessolutions:pr10941-xgettext-E501

Conversation

@JulienCochuyt

Copy link
Copy Markdown
Contributor

Link to issue number:

Fix-up of PR #10941

Summary of the issue:

Finding the appropriate code style for a lengthy translatable string along with its required translators comment might not be obvious, even for some of our most seasoned contributors.
This problem has led to discussion about various attempts in PR #10941 and the raise of issue #11071.
PR #10941 finally resigned by disabling line length checks on a line of the patch.

Description of how this pull request fixes the issue:

As pointed out in #11071 (comment) a styling that complies both with line length and translators comment could finally be found.
The Contributing wiki page has then be updated accordingly.

While the disabling of line length check is of course not a bug, I guess it can be considered a misleading example for anyone that would not have read either this ticket or gettext manual

Testing performed:

Successfuly ran scons lint, scons pot and scons checkPot
Ensured the translators comment landed in the .pot file as expected.

Known issues with pull request:

Change log entry:

None,

@feerrenrut feerrenrut left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JulienCochuyt Thanks for the correction, and write up. Excellent stuff!

@feerrenrut feerrenrut changed the title Fix-up of PR #10941 Fix line too long translation string and comment May 4, 2020
@feerrenrut feerrenrut merged commit 6b970b8 into nvaccess:master May 4, 2020
@nvaccessAuto nvaccessAuto added this to the 2020.1 milestone May 4, 2020
@feerrenrut feerrenrut modified the milestones: 2020.1, 2020.2 May 4, 2020
@JulienCochuyt JulienCochuyt deleted the pr10941-xgettext-E501 branch May 4, 2020 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants