Repository: godotengine/godot (language: cpp)

Issue:
Don't work translations with keys on russian or chinese on android
### Tested versions

Godot v4.2.1.stable

### System information

NixOS 24.05 (Uakari) - X11 - Vulkan (Mobile) - dedicated NVIDIA GeForce GTX 1050 Ti (nvidia; 545.29.06) - Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (8 Threads)

### Issue description

When you use russian language in translation keys, translation stop working on android export (on linux and in editor all fine)
(Issue only appear with scv translations)

### Steps to reproduce

Create some translation with key in russian, export to android (or export MRP to android).

### Minimal reproduction project (MRP)

translation csv
![image](https://github.com/godotengine/godot/assets/36816595/cc49429c-4f47-4679-ac36-d6d1e1c6c529)
MRP scene
![image](https://github.com/godotengine/godot/assets/36816595/b12ca5ce-2a0a-4513-852c-3ffeddd66afa)
MRP run on editor
![image](https://github.com/godotengine/godot/assets/36816595/dc6162df-a424-4865-a7b5-5070ef6200f6)
MRP run on android
![image](https://github.com/godotengine/godot/assets/36816595/120c96cb-0355-48b3-8408-826603f76e7b)


[L10nIssue.zip](https://github.com/godotengine/godot/files/13846613/L10nIssue.zip)



Discussion / hints:
OMG, today I was troubled with it too!
Same with Chinese characters

Fix patch:
diff --git a/core/string/optimized_translation.h b/core/string/optimized_translation.h
index 823adaf1da8b..fc4f446831b5 100644
--- a/core/string/optimized_translation.h
+++ b/core/string/optimized_translation.h
@@ -64,7 +64,7 @@ class OptimizedTranslation : public Translation {
 			d = 0x1000193;
 		}
 		while (*p_str) {
-			d = (d * 0x1000193) ^ uint32_t(*p_str);
+			d = (d * 0x1000193) ^ static_cast<uint8_t>(*p_str);
 			p_str++;
 		}
 


Test patch: