WeblateOrg / weblate

Web based localization tool with tight version control integration.
https://weblate.org/
GNU General Public License v3.0
4.6k stars 1.02k forks source link

Plural keys do not get updated on Weblate after xlf import #12450

Closed gerardgalofre closed 1 month ago

gerardgalofre commented 1 month ago

Describe the issue

Describe the problem

I download an xlf from a weblate project, translate it in a CAT tool, import it back to weblate. All keys get updated with translations except for the keys that are set up as plural keys on Weblate.

Plural keys appear OK in the xlf, transalted, and no alterations to the metadata were made.

Describe alternatives you have considered

I have tried doing the same with all the formats available to export / import and none of the formats imports the plurals back correctly to weblate.

I already tried

Steps to reproduce the behavior

  1. go to a component in weblate
  2. go to a language
  3. go to "files", "customize download"
  4. download xlf 1.1 or any other format
  5. transalte downloaded file in a cat tool
  6. upload transaltion (add translation, replace approved translations too)
  7. see upload report saying some keys were skipped
  8. check the plural keys

Expected behavior

all keys to be updated with the xlf content, including plural keys

Screenshots

No response

Exception traceback

No response

How do you run Weblate?

weblate.org service

Weblate versions

No response

Weblate deploy checks

No response

Additional context

No response

gerardgalofre commented 1 month ago

Captura de pantalla 2024-09-09 a las 12 44 00

Captura de pantalla 2024-09-09 a las 12 44 19

Captura de pantalla 2024-09-09 a las 12 44 30

nijel commented 1 month ago

Can you try uploading without the blank <target/> element?

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because there wasn’t any recent activity.

It will be closed soon if no further action occurs.

Thank you for your contributions!