-
Notifications
You must be signed in to change notification settings - Fork 978
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
French translation (po files) #6469
Conversation
…named 'master', so debug trace too.
There we go, finally :) Please copy over the compiled .mo files to this branch as well |
@philippechataignon PTAL at the It looks like there are indeed extra messages in your .mo file: msgunfmt -o xx.po inst/po/fr/LC_MESSAGES/data.table.mo
grep -Fr "but the input only has" xx.po
# msgid "skip=%llu but the input only has %llu line%s"
# msgid "skip=%lu but the input only has %lu line%s"
# msgid "skip=%<PRIu64> but the input only has %<PRIu64> line%s"
grep -Fr "but the input only has" src/*fr.po
# msgid "skip=%<PRIu64> but the input only has %<PRIu64> line%s" Any idea where those extras came from? I can just re-generate the .mo file, but don't necessarily want to lose any work if that's meaningful, WDYT? |
I think
|
@aitap interesting/nice spot... but why has that only happened for this particular .mo file? |
It's a relatively new feature (June 2023). An |
thanks! asking since I'm afk -- is there a corresponding option for msgunfmt? I'm thinking of how to adjust our CI check for .mo-match-.po to account for the new feature:
|
Hi. I did not manually edit .po or .mo files, you can overwrite them. aitap comments are interesting and printf is not obvious in fwrite because some variables types came from zlib. |
@MichaelChirico looks like (3) is not an option. On libera.chat's |
Thanks for tracking down all the nuance here... maybe option 4 is "translators don't contribute .mo at all, leave that to data.table maintainers" is the right approach. We could also look into having GHA do that automatically. |
(also just realized I tagged @philippechataignon by mistake, very sorry for the stray ping!! I meant @phgrosjean 😬) |
@MichaelChirico translators don't contribute .mo files is for me the best. My .mo file was done using poEdit 3.5 (latest version at that time). I guess that .mo files may slightly differ, depending on the software used to build it. If it is OK, I will eliminate the .mo files from the pull request. |
CI currently requires the .mo files -- leave them in for now. But you don't need to worry about fixing the issue yourself. |
Thanks @phgrosjean!! I'll deal with getting the GHA for ensuring .po matches .mo separately. |
This pull request may have needed a Lines 42 to 50 in 745160d
|
Here are the
fr.po
andR-fr.po
for {data.table}.