Raffael Meyer
fd09008e07
fix: extract translatable headings and paragraphs from workspaces ( #27464 )
2024-08-20 21:55:39 +00:00
Corentin Forler
35fb0e2687
fix(translate): Fix extraction in JS files ( #27401 )
...
Co-authored-by: barredterra <14891507+barredterra@users.noreply.github.com>
2024-08-14 12:25:44 +00:00
Raffael Meyer
6da35eca45
fix: disable fuzzy matching while updating po files ( #27257 )
2024-07-30 19:06:12 +00:00
Raffael Meyer
f75da85d83
fix: remove context from translatable strings in Workspace ( #27249 )
2024-07-30 20:14:57 +02:00
barredterra
5f1b33e1fb
fix: docstring
2024-06-27 18:39:54 +02:00
barredterra
47d79b168d
refactor: extract common methods for parsing df and links
2024-06-27 18:38:05 +02:00
barredterra
aa43edf1d6
refactor: move EXCLUDE_SELECT_OPTIONS to utils
2024-06-27 18:07:07 +02:00
barredterra
fb6f8658a6
feat: extractor for customizations
...
Added extraction for property setters and links
2024-06-27 18:02:45 +02:00
barredterra
65ab855571
refactor: extractor for custom fields
2024-06-27 17:36:55 +02:00
barredterra
4c924a5a16
Merge remote-tracking branch 'upstream/develop' into feat-translation-customizations
2024-06-27 17:22:50 +02:00
barredterra
7d20ab10e5
fix: remove DocType as translation context
2024-06-26 19:22:53 +02:00
Corentin Flr
ace4ea328b
fix(translate)!: Don't add decontextualized translations
2024-05-14 11:00:46 +02:00
Exequiel Arona
2263acf80c
feat: workspace extraction improvements ( #26169 )
...
* feat: add extractor for count format of shortcut
* feat: add extraction of description string
2024-04-30 16:14:34 +05:30
barredterra
b530de4098
fix: don't extract icon names
2024-04-29 11:41:19 +02:00
barredterra
530aaaec26
refactor: remove redundant excluded fields
...
These are already caught by the `option.isdigit()` check.
2024-04-29 11:40:02 +02:00
Exequiel Arona
dc64678625
fix: clean up print ( #26170 )
2024-04-26 18:22:33 +05:30
Exequiel Arona
0da9dd8aaa
fix: linter
2024-04-25 13:17:12 -03:00
Exequiel Arona
5c1859e6a5
feat: add extractor for custom fields in customizations
2024-04-25 12:57:27 -03:00
Exequiel Arona
19acb40c7b
feat: add extractor for custom fields in fixtures
2024-04-25 12:56:39 -03:00
Ankush Menat
bc26ab67dc
fix: runtime error during pot build ( #25991 )
2024-04-17 14:26:31 +05:30
barredterra
1a1cdf21bf
fix: exclude some untranslatable select options
2024-04-04 11:50:33 +02:00
barredterra
0e573fc77e
feat: move languages to CSV file, add enabled property
...
Only enable supported laguages.
2024-03-27 00:18:36 +01:00
Exequiel Arona
9a0761f1c0
fix: suggested correction applied
...
frappe/gettext/extractors/doctype.py
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
2024-03-19 00:04:22 -03:00
Exequiel Arona
9033f5c65d
feat: add description of doctype to extractor
2024-03-18 19:26:32 -03:00
Exequiel Arona
7042a6f63d
feat: add extractor for label of number card ( #25414 )
2024-03-15 15:48:10 +05:30
Raffael Meyer
609e0c12ff
feat: extract translatable strings from JS template strings ( #24904 )
2024-02-19 11:08:25 +05:30
Akhil Narang
26ae0f3460
fix: ruff fixes
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-07 17:04:31 +05:30
Ankush Menat
de9ac89748
style: re-format with ruff
2024-02-05 18:53:33 +05:30
Ankush Menat
aad0c19f3a
fix: lazy translate circular imports ( #24672 )
...
* Revert "fix: remove _lt from frappe.model.std_fields (#24662 )"
This reverts commit 833d108614 .
* fix: circular import
2024-02-01 12:27:25 +00:00
barredterra
10cfcbed67
feat: turn jinja extractor into a generic HTML template extractor
...
... supporting both jinja and JS microtemplates
2024-01-19 16:22:54 +01:00
barredterra
368283769f
refactor: move extract_messages_from_code to a separate utils file
...
In order to avoid circular imports.
2024-01-19 16:16:38 +01:00
barredterra
b23b0633e5
fix: create new pot file instead of adding to existing one
2024-01-12 01:55:14 +01:00
barredterra
547a6107ce
fix: improve translatable string description
2024-01-11 19:32:40 +01:00
Ankush Menat
1e83b2e848
fix: disable line wrapping for PO files
...
This is a relic from old days where text had to be formatted <80 chars so
terminals can read them. We have massive screens now.
2024-01-11 18:51:53 +05:30
Ankush Menat
98b62e8220
fix: add _lt to extractors
2024-01-10 21:47:55 +05:30
Ankush Menat
1f83fd8847
fix: skip if file is not found
2024-01-10 20:47:58 +05:30
Ankush Menat
f246f37762
fix: language variants support
2024-01-10 18:27:57 +05:30
Ankush Menat
e893312f37
perf: parallelize MO compilation
...
This operation is CPU heavy and has little to no Frappe code
involvement. So we can use a processpool of 4 to reduce time taken for
compilation by 4x.
2024-01-10 17:21:19 +05:30
Ankush Menat
9482126b93
perf: Skip rebuilding MO files where PO file is not updated
2024-01-10 17:04:34 +05:30
Ankush Menat
5d8208ccf4
feat: Build MO files with bench build
...
Translation assets are also... assets, so grouping them with `bench build`.
We can do some special function but that will likely require updating
bench for everyone. Not so ideal.
Also renamed `compile` function as it is a builtin in python.
2024-01-10 16:41:04 +05:30
barredterra
7e60d4d6d3
test: gettext utils
2023-12-30 03:37:33 +01:00
barredterra
231d1c2631
refactor: variable names
2023-12-30 03:01:55 +01:00
barredterra
5601a86587
fix: variable name conflict
2023-12-30 02:09:32 +01:00
barredterra
ef993511f0
fix: avoid writing empty .mo files
2023-12-30 01:59:55 +01:00
barredterra
45907318de
fix: handle missing locale directory
2023-12-30 01:59:18 +01:00
barredterra
a53e819022
fix: move extract_javascript to extractors folder and use it
...
instead of babels js extractor
2023-12-28 17:00:46 +01:00
barredterra
7d4bdbebb9
feat: apps can provide custom message extractors
...
- custom extractors take precedence
- default extractors are used as a fallback
2023-12-27 01:44:48 +01:00
barredterra
e1140a22b8
fix: don't presume english as source language
...
Note: If we DO want this, it should happen at a higher level.
2023-12-26 23:18:07 +01:00
barredterra
483fa15c8f
fix: clear translation cache
...
- Cache was not getting cleared, since it's user-specific
- Remove unused implementation from gettext
2023-12-26 23:17:31 +01:00
barredterra
3a76fb2253
feat: support CSV and gettext at the same time
2023-12-26 19:13:10 +01:00