summaryrefslogtreecommitdiff
path: root/editor/translations
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-03-30 13:48:28 +0200
committerGitHub <noreply@github.com>2022-03-30 13:48:28 +0200
commit432859de7a53a6588de298b97d2b24a35b8001d7 (patch)
tree5b2439096d4a3e5b1a37182b05f6d0a72a94217b /editor/translations
parent03c58954c0ae3780049085cd25c18bfaaf387fbc (diff)
parent0a9f97f4231dcfdfa58ecf501aedc54b9c7fbcfd (diff)
Merge pull request #59689 from timothyqiu/missing-extract
Diffstat (limited to 'editor/translations')
-rwxr-xr-xeditor/translations/extract.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/editor/translations/extract.py b/editor/translations/extract.py
index 4a7e87e271..eaaec21788 100755
--- a/editor/translations/extract.py
+++ b/editor/translations/extract.py
@@ -113,15 +113,20 @@ message_patterns = {
r'RTRN\("(?P<message>([^"\\]|\\.)*)", "(?P<plural_message>([^"\\]|\\.)*)",[^,)]+?(, "(?P<context>([^"\\]|\\.)*)")?\)'
): ExtractType.TEXT,
re.compile(r'_initial_set\("(?P<message>[^"]+?)",'): ExtractType.PROPERTY_PATH,
- re.compile(r'GLOBAL_DEF(_RST)?(_NOVAL)?\("(?P<message>[^".]+?)",'): ExtractType.PROPERTY_PATH,
+ re.compile(r'GLOBAL_DEF(_RST)?(_NOVAL)?(_BASIC)?\("(?P<message>[^".]+?)",'): ExtractType.PROPERTY_PATH,
+ re.compile(r'GLOBAL_DEF_BASIC\(vformat\("(?P<message>layer_names/\w+)/layer_%d"'): ExtractType.PROPERTY_PATH,
re.compile(r'EDITOR_DEF(_RST)?\("(?P<message>[^"]+?)",'): ExtractType.PROPERTY_PATH,
re.compile(
+ r'EDITOR_SETTING(_USAGE)?\(Variant::[_A-Z0-9]+, [_A-Z0-9]+, "(?P<message>[^"]+?)",'
+ ): ExtractType.PROPERTY_PATH,
+ re.compile(
r'(ADD_PROPERTYI?|ImportOption|ExportOption)\(PropertyInfo\(Variant::[_A-Z0-9]+, "(?P<message>[^"]+?)"[,)]'
): ExtractType.PROPERTY_PATH,
re.compile(
r"(?!#define )LIMPL_PROPERTY(_RANGE)?\(Variant::[_A-Z0-9]+, (?P<message>[^,]+?),"
): ExtractType.PROPERTY_PATH,
re.compile(r'ADD_GROUP\("(?P<message>[^"]+?)", "(?P<prefix>[^"]*?)"\)'): ExtractType.GROUP,
+ re.compile(r'#define WRTC_\w+ "(?P<message>[^"]+?)"'): ExtractType.PROPERTY_PATH,
}