From 004983be7547ec1cc01711755da03584b5555a35 Mon Sep 17 00:00:00 2001 From: Marc Date: Wed, 27 Nov 2019 01:21:29 +0000 Subject: [PATCH 1/2] Note about the extractor --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a0c2270..e1c8f8c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Translation editor for Godot Engine ===================================== -This is an editor plugin to edit translation files from inside Godot Engine. It supports .csv and .po files, although gettext support is limited to what Godot can handle. +This is an editor plugin to edit translation files from inside Godot Engine. It supports .csv and .po files, although gettext support is limited to what Godot can handle. It can extract strings from your project automatically and adds them to a list for you to translate. It can also be used as a standalone editor if `translation_editor.tscn` is run or exported as main scene. ![screenshot2](https://user-images.githubusercontent.com/1311555/48521813-14559600-e86e-11e8-8cf8-95580f97baf0.png) From 7ea69ebd1dc158a086686f0ed829d921500f102a Mon Sep 17 00:00:00 2001 From: Marc Date: Sun, 14 Jun 2020 05:22:32 +0100 Subject: [PATCH 2/2] Details about detection --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e1c8f8c..28172d8 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,15 @@ Translation editor for Godot Engine ===================================== -This is an editor plugin to edit translation files from inside Godot Engine. It supports .csv and .po files, although gettext support is limited to what Godot can handle. It can extract strings from your project automatically and adds them to a list for you to translate. -It can also be used as a standalone editor if `translation_editor.tscn` is run or exported as main scene. +This is an editor plugin to edit translation files from inside Godot Engine. It supports .csv and .po files, although gettext support is limited to what Godot can handle. It can also be used as a standalone editor if `translation_editor.tscn` is run or exported as main scene. + +It can extract strings from your project automatically and adds them to a list for you to translate. There is no particular convention to use. +The tool supports the following file types: +- `*.gd`: detects strings used with `tr()` and `TranslationServer.translate()`. +- `*.tscn`: detects string properties known to be translatable + +C# and binary files are not supported yet, but may be added in the future. +Some projects use a prefix convention to use strings in places harder to auto-detect, so supporting them may also be implemented. ![screenshot2](https://user-images.githubusercontent.com/1311555/48521813-14559600-e86e-11e8-8cf8-95580f97baf0.png)