r-devel / translations

subsite for translations
https://contributor.r-project.org/translations/
Creative Commons Attribution 4.0 International
1 stars 3 forks source link

Mixed up base PO files in Nepali #6

Closed daroczig closed 6 months ago

daroczig commented 1 year ago

See Heather's report at https://r-contributors.slack.com/archives/C0210D7EN1X/p1692202777431149

For the base package it seems that the R strings might have got confused with the C strings. For example base (C) files - Nepali shows 573 strings, the same as base (R) files - French, while base (C) - French only has 15 strings. There is no base (R) files for Nepali, maybe that is causing the issue?

daroczig commented 1 year ago

I will take a look at the git history to see what happened.

hturner commented 1 year ago

Just to add I noticed this for Hindi too.

daroczig commented 1 year ago

I suspect this happened when added a language on the weblate UI, and it used the wrong PO file pattern (missing the "R" prefix or similar). Still to be confirmed, and test if a git mv can resolve this.

daroczig commented 1 year ago

This was due to configuring the "Template for new translations" for both the C and R components of the base package to src/library/base/po/R-base.pot. Fixing the config issue and then trying to resolve problem in the mentioned languages, and then checking other components and languages as well for similar patterns.

daroczig commented 1 year ago

I've confirmed that there are no other components with the same config issue, so "only" new languages added on the Weblate UI for the "base (R files)" component are affected.

daroczig commented 1 year ago

Unfortunately, I do see some Hindi translations showing up in Weblate's base R component in the wrong place (translations got wrongly allocated after updating the base POT file?) that I cannot fix in an automated way. Reached out to @AyushBipinPatel and @SaranjeetKaur for their help.

hturner commented 10 months ago

I think the same issue has occurred with the Catalan software translations: both base (C) files and base (R) files have 591 strings, where the base (C) files should have many more.

daroczig commented 6 months ago

The above cases have been resolved by manually committing a fix to the weblate git repo, and after the above-mentioned config fix this should not happen, so closing the ticket.

More details on the Catalan thread: https://r-contributors.slack.com/archives/C0210D7EN1X/p1710518492059149?thread_ts=1710493542.382439&cid=C0210D7EN1X