summaryrefslogtreecommitdiff
path: root/doc/classes/SceneTreeTimer.xml
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-12-04 16:47:30 +0100
committerRémi Verschelde <rverschelde@gmail.com>2019-12-04 16:53:08 +0100
commit0fcb68ffa1eef21c55794e896ddd9dd2e7b74751 (patch)
tree4ab7fd080d229cfe83332c108e3fae3cf29b44dc /doc/classes/SceneTreeTimer.xml
parent73fb08289af1260669a3ce118b9866a11c06a0eb (diff)
Translation: Refactor locale matching to use proper language code
The previous code only parsed the first two characters (potentially reading out of bounds if input was invalid), but some locales use a 3-letter language code (e.g. 'nah_MX'). So I refactored the logic a bit to properly parse the locale and extract the part left of the regional code, if provided (supports both 'en_US' and 'en-US' style). I made TranslationServer::get_language_code() public as I'll use it in a follow up commit.
Diffstat (limited to 'doc/classes/SceneTreeTimer.xml')
0 files changed, 0 insertions, 0 deletions