-
Notifications
You must be signed in to change notification settings - Fork 764
Update po files from Croudin sources. #5330
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
Conversation
|
@skef, I fixed the issues in Italian translation. Please download and rebuild again, it should be better now. |
|
Hi @iorsh,
similar fixes would be necessary for the other languages (changing $d to %1$d and the %s to %2$s). Looking at the surrounding lines, looks like a tempting target to edit the other LogError lines, which also means editing the corresponding po files too. probably best as another patch... 2nd correction:
...and 3rd to 41st lines would be... |
|
I was going to work through these, and I still can, but the question is do we care more about the work of this clueless translator. One presumes that there are probably other translations with two "%s"'s (or whatever) that need reversing that we won't know about. Should we just leave that to others/posterity or should we try to weed them out? |
It's a tricky question. I'd say we need to explicitly mark argument numbers in the original (en-US) messages whenever there is more than one. But this is a separate and probably huge pile of work, which also has a potential to invalidate a lot of good translations in other languages. I'd just fix these and pray that users complain when they see the mixed messages in the wild. Alternatively, we can later contact the translator and ask him to review - the new messages are from the last year, so the memory should be fresh. |
|
I'll work on fixing these in a bit, unless I hear otherwise. |
My recommendation is getting this group to pass first. I looked at another po file, and think all po files here will benefit from a new pot file later, plus a merge, since the smaller files are missing a lot of msgid/msgstr - this would be a bigger task, and benefit from a push of updated po files into crowdin. |
|
The existing .pot file on Crowdin seems to have strings from my plugin work, so it looks like it was updated after the last release. I'm not sure much of anything else has changed since then. I guess there would probably be a few additional strings. And I don't think we've accepted PRs for direct changes to the .po files -- we've been redirecting those things to the crowdin site. |
|
Looking at just the two files fontforge/featurefile.c and fontforge/fvfonts.c seems to suggest many lines could be updated. Would it be less work modifying the po files thru crowdin's UI, or pushing updated po files modified thru a text editor? |
|
Ok, so I checked how many messages have two or more unnumbered arguments: For me this basically means that we will have to leave the source as is and just ask the translator to review his contributions. Besides, gettext utils don't seem to have any method to enforce argument numbering, so this is probably not a good idea anyway. |
|
The only tractable way to approach the problem would be to limit the question to the strings this translator translated, which were all probably since the last release (he was working about 7 months ago). I know how to tell who entered an individual translation but not how to get their full list for the project. I agree we can just not worry about this. I'm not sure someone will complain if they see bad translations but that's just where we are. (Annoying that CrowdIn itself doesn't have more systematic checking for C format translations to give earlier feedback ...) I'm gonna take care of these tonight, probably by editing the file and doing an upload of just the changed translations |
|
@skef, it looks like we are clashing on the CrowdIn fixes right now. I've done till the line zh_CN.po:5036 (30 errors) |
|
I just changed all of them via upload |
|
I resynced after the changes and FWIW it built on my Arch Linux setup, which it hasn't for a long while. |
|
OK, we're past that but the _pyhook tests are failing on windows. This is the test of the windows loadable module, which it apparently can't find. |
|
The MacOS failure is due to intermixed Python versions (it has 3.10, 3.11.6, 3.11.7, 3.12 and maybe more) installed on the GitHub runner. I'm checking now how to align them properly |
|
Normal MacOS tests pass but then the smoketest fails because it can't load psMat. But test1003 imports psMat. Some weird path problem? |
Yes. test1003 uses the python executable that was discovered by CMake, but the smoketest is called right from |
|
@iorsh The messages at the start of the test indicate PYTHON is set to "python3" also, and those tests succeed. However, the pyhook shim MacOS module installation locations are So one missing piece of info: why expect that directory to ever be in the (explicit or "effective") PYTHONPATH? |
|
Damn, logs from the last successful PR build in February are expired so we can't compare ... |
|
Ok, python 3.11.6_1 seems to be a MacOS dependency, so we may just have clashing pythons. |
|
Test1003 and other pyhook tests ignore |
|
Hmm. We may have a more basic problem here. Our build is Homebrew based. I suspect that as far as Python 3 goes most users are migrating to the (more) official builds on python.org: https://www.python.org/downloads/macos/ Unfortunately the build needs a lot of UI stuff installed through homebrew. Ideally we would build the MacOS app the way we do now (which seems to work) but then build the (UI-less) module to work with whatever version of Python 3 is installed by default. That means the latter can't be "canned" for the installer, but to be honest I don't know what we do about that as it is. |
|
Well, all the builds got past the l10n issues so I think I'm going to merge this. I doubt I'll dig into the remaining problems anytime in the next couple of days (and maybe not then) but I encourage others to do so. Open test PRs as you see fit. |
|
Closes #5251 |
No description provided.