You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sigsegv on set --show variable (when LANG is set to fr_FR.utf8) #8358
Playing abit further I realized that it is dependant of the LANG variable (since it happens when setting it to fr_FR.utf8 although it is not reproductible with en_US.utf8 neither fr_FR)
in the tests - that uncovers this issue plus 6 more in sv.po. To be determined is where we can do that - maybe check that msgfmt --help works, in case there are other implementations? It's okay if this test doesn't run everywhere, as long as it runs on one of the CI machines.
(tbh our translations are bad to begin with - we really need more people working on this to make them viable)
I feel like extremely poor quality translations are worse than the shell printing English text. How do we evaluate the quality of each language we support? Are we comfortable shipping each and every?
Ignoring the german translations (which I don't use), I can't say if they are "poor quality" as such - I have no idea if the translations that are there make any sort of sense. I know the french ones had a bunch of work put in.
All I can say is how good the coverage is:
for f in po/*.po
echo$f: (msgfmt --statistics$f2>&1)
end
after a msgmerge (i.e. updating the messages) shows:
However, that includes a lot of completion scripts and such that aren't relevant to most people. So let's just check the much more important core translations by only generating the catalog for src/*, and the numbers look a bit better:
Why does "en.po" exist? The file says it was translated by @zanchey?
All others seem "viable" - they could be extended by one or two people working on them
We never really had a "string freeze" for translators, and have been changing messages pretty much on a whim, so a lot of these are bound to be almost-correct already, and just need to be updated. (note that a string freeze would also require a definite release date - or else what would we freeze for?)
The big problem with translations here is that we really really need someone who speaks both the language and english to translate, and we don't, in general, have a lot of people working on fish. I'm not sure what's needed to improve the situation? Outreach? A nicer translation platform (I know "transifex" is a thing, as are "pootle" and "weblate")?
Then I've fixed both the french and swedish format strings, so it should be fixed and not happen again. If anyone adds broken translations, they'll see the test fail and can fix it.
Anything else related to the translations is 1. an open question, 2. can be done later, in a separate issue.
The English translation has curly quotation marks instead of straight marks. I think that's about all. It's useful for checking things are working, though.
Activity
floam commentedon Oct 17, 2021
I assume it's this bogus translation string:
It doesn't crash here, but, obviously it can't work right with those format specifiers
faho commentedon Oct 18, 2021
We should really do the equivalent of
in the tests - that uncovers this issue plus 6 more in sv.po. To be determined is where we can do that - maybe check that
msgfmt --helpworks, in case there are other implementations? It's okay if this test doesn't run everywhere, as long as it runs on one of the CI machines.(tbh our translations are bad to begin with - we really need more people working on this to make them viable)
floam commentedon Oct 18, 2021
I feel like extremely poor quality translations are worse than the shell printing English text. How do we evaluate the quality of each language we support? Are we comfortable shipping each and every?
faho commentedon Oct 18, 2021
Ignoring the german translations (which I don't use), I can't say if they are "poor quality" as such - I have no idea if the translations that are there make any sort of sense. I know the french ones had a bunch of work put in.
All I can say is how good the coverage is:
after a msgmerge (i.e. updating the messages) shows:
which is
However, that includes a lot of completion scripts and such that aren't relevant to most people. So let's just check the much more important core translations by only generating the catalog for src/*, and the numbers look a bit better:
which is
So:
The big problem with translations here is that we really really need someone who speaks both the language and english to translate, and we don't, in general, have a lot of people working on fish. I'm not sure what's needed to improve the situation? Outreach? A nicer translation platform (I know "transifex" is a thing, as are "pootle" and "weblate")?
Add a test to check format strings in translations
Fix broken translated format strings
faho commentedon Oct 18, 2021
Okay, I've now added a test that runs
msgfmt --check-format(ifmsgfmt --helpworks - we assume it's either full-GNU or not, if that turns out to not be true we can refine it). It fails like it should: https://github.com/faho/fish-shell/runs/3928302150Then I've fixed both the french and swedish format strings, so it should be fixed and not happen again. If anyone adds broken translations, they'll see the test fail and can fix it.
Anything else related to the translations is 1. an open question, 2. can be done later, in a separate issue.
zanchey commentedon Oct 19, 2021
The English translation has curly quotation marks instead of straight marks. I think that's about all. It's useful for checking things are working, though.
floam commentedon Oct 22, 2021
Oh right. It probably needs to be updated, I think I see a lot of
'unlike the olden days.CHANGELOG updates for 3.4.0
Let nextd-or-forward-word binding move like normal forward_word
Let nextd-or-forward-word binding move like normal forward_word