Slicer / SlicerLanguagePacks

3D Slicer extension for creating, editing, and storing translations for Slicer core and extensions
MIT License
7 stars 11 forks source link

Fix Chinese Language Compatibility of Weblate translation #35

Closed qjzcj2008 closed 11 months ago

qjzcj2008 commented 11 months ago

Make the language code of the Weblate translation compatible with 3D Slicer.

For more specific info you could refer to #34

lassoan commented 11 months ago

Thanks for reporting the issue. Indeed Weblate and Qt uses different locale names, which resulted in incorrectly named translation files. Instead of hardcoding specific language codes as implemented this pull request, we get the language code from the file - see https://github.com/Slicer/SlicerLanguagePacks/commit/aa360be21016a8c1d6aa0c847648589f04cf6a7b