fix: extract translatable strings from the whole repo (#27848)

This commit is contained in:
Raffael Meyer 2024-09-24 15:55:46 +02:00 committed by GitHub
parent 887ec49229
commit 06e963c365
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -1,11 +1,11 @@
hooks.py,frappe.gettext.extractors.navbar.extract
**/hooks.py,frappe.gettext.extractors.navbar.extract
**/doctype/*/*.json,frappe.gettext.extractors.doctype.extract
**/workspace/*/*.json,frappe.gettext.extractors.workspace.extract
**/onboarding_step/*/*.json,frappe.gettext.extractors.onboarding_step.extract
**/module_onboarding/*/*.json,frappe.gettext.extractors.module_onboarding.extract
**/report/*/*.json,frappe.gettext.extractors.report.extract
**.py,frappe.gettext.extractors.python.extract
templates/**.js,frappe.gettext.extractors.html_template.extract
**/templates/**.js,frappe.gettext.extractors.html_template.extract
**.js,frappe.gettext.extractors.javascript.extract
**.html,frappe.gettext.extractors.html_template.extract
**.vue,frappe.gettext.extractors.html_template.extract

1 hooks.py **/hooks.py frappe.gettext.extractors.navbar.extract
2 **/doctype/*/*.json frappe.gettext.extractors.doctype.extract
3 **/workspace/*/*.json frappe.gettext.extractors.workspace.extract
4 **/onboarding_step/*/*.json frappe.gettext.extractors.onboarding_step.extract
5 **/module_onboarding/*/*.json frappe.gettext.extractors.module_onboarding.extract
6 **/report/*/*.json frappe.gettext.extractors.report.extract
7 **.py frappe.gettext.extractors.python.extract
8 templates/**.js **/templates/**.js frappe.gettext.extractors.html_template.extract
9 **.js frappe.gettext.extractors.javascript.extract
10 **.html frappe.gettext.extractors.html_template.extract
11 **.vue frappe.gettext.extractors.html_template.extract

View file

@ -134,7 +134,7 @@ def generate_pot(target_app: str | None = None):
keywords["_lt"] = None
for app in apps:
app_path = frappe.get_pymodule_path(app)
app_path = frappe.get_pymodule_path(app, "..")
catalog = new_catalog(app)
# Each file will only be processed by the first method that matches,