WeblateOrg / weblate

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

Weblate uses the wrong format when creating new XWiki files #11879

Closed surli closed 1 week ago

surli commented 2 weeks ago

Describe the issue

Same issue as #2980 but for XWiki formats in Weblate. Basically XWiki formats follow Java formats so they should use filename with a underscore for the language locale, and not a dash. The fix is most probably same as https://github.com/WeblateOrg/weblate/commit/a30a15a106a6b4d8c78591e206387f32c1fe2616 but for XWiki formats.

I already tried

Steps to reproduce the behavior

  1. Create a component with type "XWiki Properties" (it does not matter which encoding)
  2. Add a new language "English (United Kingdom)"
  3. Check the created file name - it is {filename}_en-GB.properties

Expected behavior

The file should be created as {filename}_en_GB.properties

Screenshots

No response

Exception traceback

No response

How do you run Weblate?

PyPI module

Weblate versions

No response

Weblate deploy checks

No response

Additional context

No response

github-actions[bot] commented 1 week ago

Thank you for your report; the issue you have reported has just been fixed.

github-actions[bot] commented 1 week ago

Thank you for your report; the issue you have reported has just been fixed.