You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
CSV translation import plugin
This commit is contained in:
@@ -751,6 +751,20 @@ static const char* locale_names[]={
|
||||
0
|
||||
};
|
||||
|
||||
bool TranslationServer::is_locale_valid(const String& p_locale) {
|
||||
|
||||
const char **ptr=locale_list;
|
||||
|
||||
while (*ptr) {
|
||||
|
||||
if (*ptr==p_locale)
|
||||
return true;
|
||||
ptr++;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
Vector<String> TranslationServer::get_all_locales() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user