Modified editor strings to be translatable in the future
This commit is contained in:
parent
c7e8def446
commit
567cb691ec
96 changed files with 2135 additions and 2103 deletions
|
|
@ -3955,3 +3955,14 @@ String String::sprintf(const Array& values, bool* error) const {
|
|||
*error = false;
|
||||
return formatted;
|
||||
}
|
||||
|
||||
#include "translation.h"
|
||||
|
||||
String TTR(const String& p_text) {
|
||||
|
||||
if (TranslationServer::get_singleton()) {
|
||||
return TranslationServer::get_singleton()->translate(p_text);
|
||||
}
|
||||
|
||||
return p_text;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue