-
- Downloads
Fix {0} being shown when locale is "pt" (#17875)
This is a combination of 2 issues: 1) pt got renamed to pt_BR in x.39.x but the old "pt" value may still be stored in the database 2) when making a release, an unclean build directory may be used containing old "pt" resource which gets leaked into the release build 1) is fixed by adding a function to treat "pt" as "pt_BR" to support users who were on "pt" since pre-x.39. (This is done by finding the closest fallback locale) 2) is fixed by emptying the folder before generating locales so any old locales are deleted. Fixes #16690
Showing
- bin/i18n/src/i18n/create_artifacts.clj 3 additions, 0 deletionsbin/i18n/src/i18n/create_artifacts.clj
- bin/i18n/src/i18n/create_artifacts/frontend.clj 1 addition, 1 deletionbin/i18n/src/i18n/create_artifacts/frontend.clj
- src/metabase/server/routes/index.clj 2 additions, 2 deletionssrc/metabase/server/routes/index.clj
- src/metabase/util/i18n.clj 1 addition, 1 deletionsrc/metabase/util/i18n.clj
- src/metabase/util/i18n/impl.clj 39 additions, 20 deletionssrc/metabase/util/i18n/impl.clj
- test/metabase/util/i18n/impl_test.clj 12 additions, 9 deletionstest/metabase/util/i18n/impl_test.clj
Please register or sign in to comment