fix(windows): Ensure default locale always appears in list of locales#15984
Conversation
* Add `TKeymanPaths.KeymanLocalePath` for consistent access to locales folder, and update references. * Remove the `SKDefaultLanguageCode` string and hard code the default language in CustomisationMessages.pas. * Hide the test locale 'qqq' on release builds. Fixes: #15164
User Test ResultsTest specification and instructions Test Artifacts
|
| <!-- String Type: FormatString --> | ||
| <!-- Introduced: 7.0.230.0 --> | ||
| <string name="SKDefaultLanguageCode" comment="The default language code for this product. This should be the language that the product is created in. For Keyman this must stay 'en', for all translations.">en</string> | ||
|
|
There was a problem hiding this comment.
I think we generally keep old strings in for the previous Keyman versions. And maybe mark to deprecate in 20.0?
There was a problem hiding this comment.
Hmm, do changes here percolate back to old versions? They shouldn't!
There was a problem hiding this comment.
I mean when strings get removed in the English source strings, crowdin will remove them across the rest of the languages.
Our end-of-sprint download from crowdin only goes to master (19.0) though.
There was a problem hiding this comment.
Given the download from crowdin goes only to master, I think we remove them in 19.0 -- no need to keep them hanging about and making extra work for translators.
| SKeymanVersion190 = '19.0'; | ||
| SKeymanVersion180 = '18.0'; | ||
| SKeymanVersion170 = '17.0'; | ||
| SKeymanVersion160 = '16.0'; |
There was a problem hiding this comment.
No, just adding for completeness -- they may be used at any time and as I was adding the ENVIRONMENT_ vars thought I'd just add these at the same time.
|
@Meng-Heng you should be able to retest with the latest build on this PR now, thanks! |
Test Specs
Test Results
|
|
Changes in this pull request will be available for download in Keyman version 19.0.237-alpha |
TKeymanPaths.KeymanLocalePathfor consistent access to locales folder, and update references.SKDefaultLanguageCodestring and hard code the default language in CustomisationMessages.pas.This is a candidate for back-port to stable-18.0.
Fixes: #15164
User Testing
TEST_LOCALES: In Keyman Configuration, open the list of available locales and verify that all expected locales are present. Note that the '[!!Ěńġľĭŝħ!!]' language will appear for test builds; this is not an error.
TEST_SWITCH: Switch locale to Khmer, exit Keyman Configuration, and reopen. Verify that 'English' appears in the list of available locales and can be selected.