summaryrefslogtreecommitdiff
path: root/core/translation.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2015-12-28 12:26:36 +0100
committerRémi Verschelde <remi@verschelde.fr>2015-12-28 12:26:36 +0100
commitbfbde4dfd11be8728be4bb88d8bc109acb19ccfd (patch)
tree80caee83551b639717c252e5f33036a75670ad8a /core/translation.cpp
parent37cb0faedb0aa314d5e9ca2e4f4b0e268dd3237f (diff)
parentd4993b74fc715d294ca0a77b335db3782d4bdcd6 (diff)
Merge pull request #3146 from akien-mga/pr-argument-names
Add missing argument names in GDScript bindings + related fixes
Diffstat (limited to 'core/translation.cpp')
-rw-r--r--core/translation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/translation.cpp b/core/translation.cpp
index 8247cd1201..bab6cde966 100644
--- a/core/translation.cpp
+++ b/core/translation.cpp
@@ -670,10 +670,10 @@ void TranslationServer::_bind_methods() {
ObjectTypeDB::bind_method(_MD("set_locale","locale"),&TranslationServer::set_locale);
ObjectTypeDB::bind_method(_MD("get_locale"),&TranslationServer::get_locale);
- ObjectTypeDB::bind_method(_MD("translate"),&TranslationServer::translate);
+ ObjectTypeDB::bind_method(_MD("translate","message"),&TranslationServer::translate);
- ObjectTypeDB::bind_method(_MD("add_translation"),&TranslationServer::add_translation);
- ObjectTypeDB::bind_method(_MD("remove_translation"),&TranslationServer::remove_translation);
+ ObjectTypeDB::bind_method(_MD("add_translation","translation:Translation"),&TranslationServer::add_translation);
+ ObjectTypeDB::bind_method(_MD("remove_translation","translation:Translation"),&TranslationServer::remove_translation);
ObjectTypeDB::bind_method(_MD("clear"),&TranslationServer::clear);