Disallow changing the languageCode of existing languages
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 26 Apr 2023 10:07:54 +0000 (12:07 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 26 Apr 2023 10:07:54 +0000 (12:07 +0200)
commitf3951adda52b0d19cc4387f0c7c71defaec6e14d
tree9c0ff31e9f48456871da66147045338e8e9c8313
parente47fe8dcdd7eda9ecbf5ee5dd844f0f47831644c
Disallow changing the languageCode of existing languages

Changing the language code for an existing language effectively invalidates
everything that is already stored within that language and thus is not a useful
operation. Changing the country code or locale should be compatible with
existing phrases or contents and thus is still allowed.
wcfsetup/install/files/lib/acp/form/LanguageAddForm.class.php