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