diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2015-12-28 12:26:36 +0100 |
|---|---|---|
| committer | Rémi Verschelde <remi@verschelde.fr> | 2015-12-28 12:26:36 +0100 |
| commit | bfbde4dfd11be8728be4bb88d8bc109acb19ccfd (patch) | |
| tree | 80caee83551b639717c252e5f33036a75670ad8a /core/translation.cpp | |
| parent | 37cb0faedb0aa314d5e9ca2e4f4b0e268dd3237f (diff) | |
| parent | d4993b74fc715d294ca0a77b335db3782d4bdcd6 (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.cpp | 6 |
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); |