New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Partial pot-update: trivial changes only #6634
Conversation
These are typo-fixes and minor grammar improvements to the English text, which don't change the meaning of the text and therefore shouldn't set the fuzzy flags on their respective translations. This is a hand-edited subset of the changes that a full pot-update would make. The plan once this is reviewed is to update the .po files with the changes in these .pot files, but to filter out any added fuzzy flags when commiting them to Git. A normal pot-update can then be run, which will add fuzzy flags for the string changes which weren't included in this PR.
"evaded them." | ||
"I’m a cavalier with Haldric II’s personal bodyguard. I was sent on a mission " | ||
"in the Northlands, and now elvish horsemen are chasing me. I barely evaded " | ||
"them." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using pofix was suggested in the forum thread, but it doesn't seem capable of the task.
One known issue is illustrated with the line that I'm commenting on here. Pofix, as it currently exists, works on a line-by-line basis, so using Pofix for this one would be three lines with a high probability of false positives on "them."
, and an absolute dependence on the translators' tools' word-wrap settings.
Yes, it could be adapted to fix that specific issue, which would reduce the number of strings that need to be added to it to around 120 for this release alone. My gut feeling is that, if I try to do it with Pofix, I'm going encounter more issues; so my question to anyone suggesting continuing with that tool is to ask "have you thought through the problems, rather than just saying that we already have a tool?".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If pofix.py handles the stuff for about 90% of the cases that is already a huge win especially since it works around any stupidity / old files on the translators side. And yes, it will not be a 100% solution but better than trying to fix things manually and after getting the next update seeing that it was a moot try.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would make it a moot try? Is it stuff that would be helpful to consider even when using pofix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I may be missing something but it looks like you would rewrite "evaded them." to "them." not the other way around.)
Certainly pofix is not perfect and can surely be made more robust or even a new tool could be made to do a better job. It just was enough so far that nobody bothered. I wouldn't expect big problems after 10 years of use but certainly hundreds of string changes in a stable version were not done before (and is the real issue here).
I think with "moot try" Ivanovic means changes done by hand (or just once anyway) that will be overwritten the next time someone sends in a translation update based on old po files.
Why not just use utils/pofix.py? Usual approach:
This helps especially since translators can continue with their old files and they will magically be updated when they send them in without adding fuzzy strings for grammar and typo fixes. |
These instructions do not seem to have been checked against a real pot-update, because if they had been then there would have been more info about the fuzzies that are expected, both from the trivial changes that couldn't be pofixed and the non-trivial changes. I still get the gut feeling that, if I work on adding most of these changes to pofix, more issues are going to arise afterwards. |
Seems pretty clear to me that Ivanovic is not talking about fuzzy strings you expect at all. It's about the strings added to pofix. The point is to check if pofix worked as intended. |
Given steps 1 and 2, I think Ivanovic is talking about a change such as #4868 (46d8f2d), where 1 line was changed in a WML file and in the same commit 1 pair was added to pofix.
The first part is the workflow needed to get these strings into pofix, which I've done for #6638. To find out where the word-wrapping happens, I believe the simplest workflow is
The commit that's forming this PR isn't some additional work, it's intermediate file created at the end of step 2. Getting here is less effort, fixes more strings (because I didn't have to filter out the ones that couldn't be single lines), and is less likely to accidentally match the another string (which might be added later, but will still be active in the pofix tool).
Old files might happen, but it'll affect individual files. |
I'm not going to merge this, explanation is in https://r.wesnoth.org/p673256 . @CelticMinstrel has added some useful comments in #6638 for anyone using this as a reference list while translating. |
As analysed in PR wesnoth#6634, these were typo-fixes and minor grammar improvements to the English text, which didn't change the meaning of the text and therefore don't need changes to the translated text.
As analysed in PR wesnoth#6634, these were typo-fixes and minor grammar improvements to the English text, which didn't change the meaning of the text and therefore don't need changes to the translated text.
These are typo-fixes and minor grammar improvements to the English text,
which don't change the meaning of the text and therefore shouldn't set
the fuzzy flags on their respective translations.
This is a hand-edited subset of the changes that a full pot-update would make.
The plan once this is reviewed is to update the .po files with the changes in
these .pot files, but to filter out any added fuzzy flags when commiting them
to Git. A normal pot-update can then be run, which will add fuzzy flags for the
string changes which weren't included in this PR.
What comes after this
The intended followup to this is in https://github.com/stevecotton/wesnoth/commits/dry_run_fuzzyless_po_update_1_16 .
The SConstruct files are set up so that rules for building .po files are only
added if
pot-update
,update-po
orupdate-po4a
is given on the commandline; also
update-po
only builds files whose language is additionally givenon the command line, for example
scons update-po de
. The command line totrigger this without triggering an update of the .pot files too is thus:
Don't commit all the changes, instead avoid adding the fuzzy flags, by using
add -e
and filtering out all lines that are+#, fuzzy
or that begin+#|
.Warning: this drops you into Git's editor, probably a vi-based one.
One translation should still have the fuzzy flags -
en_GB
is likely to havethe same typos and grammar mistakes as
en_US
.