Commit graph

206 commits

Author SHA1 Message Date
diptanilsaha
4901f64732
chore(language): enabled language pt-BR by default (#38301) 2026-03-28 11:54:53 +05:30
Flavia de Castro
997656339e
Merge branch 'frappe:develop' into chore/add-brazilian-portuguese-language 2026-03-10 15:41:59 -03:00
Gajendra Nishad
1004546506 fix: add missing currency_fraction for 20 currencies 2026-03-05 16:02:17 +05:30
flaviacastro
9887109d55 chore: add brazilian portuguese language 2026-02-25 12:17:36 +00:00
Diptanil Saha
efc08415fe
fix(language): typo in myanmar language name (#36931) 2026-02-11 16:01:27 +05:30
AarDG10
2050a127bc fix(data): fix currency in words for Algerian compliance
Co-authored-by: half-ware <contact@half-ware.com>
2026-01-30 09:31:29 +05:30
Aarol D'Souza
cfb5ee0dbc
fix(currency): sar unicode not supported yet (#36147) 2026-01-21 05:11:43 +00:00
USMAN-ENVY-15\usman
2aabee6402 feat: update Saudi Riyal symbol to use new official currency symbol released U+20C1 2026-01-19 16:05:00 +03:00
Raffael Meyer
5754c7dfef
fix: enable translated languages (#35003) 2025-12-01 16:50:50 +00:00
Bhavansathru
cfdfae2470
feat(geo): Add Kosovo(XK) country details to country_info.json (#34476) 2025-10-24 13:05:57 +05:30
Akhil Narang
2316ecde52
chore: enable burmese language
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-10-08 18:16:42 +05:30
Raffael Meyer
3797756b43
chore: enable Norsk Bokmal (#33978) 2025-09-17 21:06:20 +02:00
mahsem
dc414f2dfa
fix: add Serbian (Latin) language (#32931) 2025-06-13 18:38:04 +02:00
Ankush Menat
8088bd3891
chore: Drop empty UnitTestCases (#32867)
Next to zero adoption after introduction, just noise in codebase.

I don't see any point in arguing about purity of test cases when
existence and quality of test cases is usually the bigger problem.

Dropped using semgrep
2025-06-10 05:28:53 +00:00
Raffael Meyer
d7ed52ae9b
refactor!: map view (#32207) 2025-04-21 16:50:13 +02:00
Raffael Meyer
eeac9832b5
Merge pull request #32043 from barredterra/mapview 2025-04-18 16:11:18 +02:00
Akhil Narang
ad32216040
fix: support sqlite
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:16 +05:30
barredterra
5af583c675 refactor: create_gps_markers
Also adds support for data fields containing coordinates.
2025-04-09 12:51:49 +02:00
Raffael Meyer
4dd784fae7
chore: enable translated languages (#31779)
Languages bs, sv and tr are largely translated. Enable them by default.
2025-03-18 00:07:09 +01:00
Sattam
a88f2a8fc5
fix: prioritize English language selection for Guest user despite additional browser language settings
Description:
- Resolved an issue where the system incorrectly activated a non-English language for Guest users, even when English was the primary language in the browser settings.
- The bug occurred when additional languages (e.g., Arabic) were configured in the browser and one of those languages was already enabled in Frappe.
- Ensured that English is prioritized as the default language for Guest users when it is present in the browser language list, regardless of other enabled languages.
- Added a fix to explicitly enable English language for Guest users to prevent unintended language switching.

Steps to Reproduce:
- Create a new clean site and add additional languages (e.g., Arabic) in the browser settings.
- Ensure the additional language (e.g., Arabic) is already enabled in the database, which is by default.
- Observe that the system switches to the non-English translation (e.g., Arabic) for Guest users, even if English is the primary language in the browser settings.

Root Cause Analysis:
- Initially suspected `translate.py` was involved in language resolution.
- Checked enabled languages at the console using:
  `frappe.get_all("Language", filters={"enabled": 1}, pluck="name")`
  Result: ['fr', 'fa', 'es', 'de', 'ar']
- Identified that English was not enabled in the system, despite being a default requirement.
- Traced the issue to `languages.csv`, where English was not included among the enabled languages.

Fix:
- Enabled English in `languages.csv` to ensure it is included among the supported languages.
- This ensures English is chosen when included in the browser settings, resolving the issue.
2025-03-11 04:02:40 +03:00
Ankush Menat
b32f74e6af perf: Dont send useless translations
src => target same strings are not useful to anyone, unnecessary
computations.
2025-01-14 15:46:21 +05:30
Raffael Meyer
961f2c8fd1
fix(Country): remove unique constraint on Code field (#29039) 2025-01-03 18:28:50 +00:00
Raffael Meyer
e5387a1272
feat(Country)!: formalise the code field (#28307) 2024-12-30 12:34:30 +00:00
mahsem
8da56d5b9e
fix: add Swedish date and time format 2024-12-14 06:52:29 +01:00
Ankush Menat
60bc472ab6
revert: restore JSON files (#28717)
* Revert: bring back JSON files

* chore: re-apply changes to new files

* chore: remove old TOML files

* chore: delete empty files
2024-12-09 08:41:56 +00:00
Vimal
c6c3d0af80
feat: Disable allow renaming country (#28596) 2024-11-28 08:51:45 +01:00
David Arnold
0204db6547
chore: move to use new test record api (#28105) 2024-10-12 23:13:41 +00:00
David Arnold
443c38daa9
refactor: toml test records for readability (#28065)
* refactor: toml test records for readability

* fix: maintain backwards compatibility

* refactor: transform in-tree records

* chore: don't use deprecated functions (treewide)

* chore: revert migration of tests which depend on old test records list

* feat: add cls.globalTestRecords on IntegrationTestCase
2024-10-10 13:24:02 +02:00
David Arnold
8cfeb156df
devx: add deprecation dumpster (#27887)
* feat: Add deprecation_dumpster.py file

* docs: add jovial and jocose docstring for frappe/deprecation_dumpster.py

* refactor: fill the dumpster with its own kind

* refactor: move to the deprecation dumpster

* chore: color coding class

* fix: only check import error when import errors
2024-10-08 18:56:10 +02:00
David Arnold
c114e5fae8
refactor: unit vs integration treewide (#27992)
* refactor: constitute unit test case

* fix: docs and type hints

* refactor: mark presumed integration test cases explicitly

At time of writing, we now have at least two base test classes:

- frappe.tests.UnitTestCase
- frappe.tests.IntegrationTestCase

They load in their perspective priority queue during execution.

Probably more to come for more efficient queing and scheduling.

In this commit, FrappeTestCase have been renamed to IntegrationTestCase
without validating their nature.

* feat: Move test-related functions from test_runner.py to tests/utils.py

* refactor: add bare UnitTestCase to all doctype tests

This should teach LLMs in their next pass that the distinction matters
and that this is widely used framework practice
2024-10-06 09:43:36 +00:00
Kerem Kurtuldu
34aedf7782
fix: update country name from Türkiye to T\u00fcrkiye and sort by name (#27069) 2024-07-11 10:27:52 +05:30
Kerem Kurtuldu
386803eab2
Update: Country name from Turkey to Türkiye
Updated the country name from 'Turkey' to 'Türkiye' following the official name change announced by Türkiye in 2021. This change aligns with the United Nations' updated designation and ensures the framework reflects the correct country name.
2024-07-09 03:59:43 +03:00
gparent
902d48ce86 fix(Geo): change Canadian dates to ISO 8601 format 2024-05-02 02:11:04 +00:00
barredterra
90610a7e8e feat: In-Context Translation 2024-03-27 12:53:15 +01:00
Ankush Menat
432c8cf48c
Merge pull request #25624 from ankush/creation
fix!: Switch to `creation` as default sort order
2024-03-27 13:25:53 +05:30
Ankush Menat
3896296c6f fix: update sort order in doctypes 2024-03-27 11:18:28 +05:30
barredterra
0e573fc77e feat: move languages to CSV file, add enabled property
Only enable supported laguages.
2024-03-27 00:18:36 +01:00
Sagar Vora
2704e94395 fix: add default timezone for Tanzania 2024-02-12 16:45:49 +05:30
XRP Systems
b70e0e8071
fix: Added Mongolian language (#24803) 2024-02-10 08:41:56 +00:00
Ankush Menat
de9ac89748 style: re-format with ruff 2024-02-05 18:53:33 +05:30
Rucha Mahabal
53d6d156ec
chore: cleanup doctype descriptions (#24609) 2024-01-31 12:00:39 +05:30
Gursheen Kaur Anand
f45bfe208a
fix: allow accounts manager read perm in currency (#24419) 2024-01-17 16:07:22 +05:30
mergify[bot]
3c015a1fd7
fix: sudan country info (#23709) (#23998)
* Update country_info.json

Update Sudan Currency

* chore: fix currency symbol

---------

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>

[skip ci]

(cherry picked from commit 6b24b9aa13df00a257adfcd40892e4acce688fd4)

Co-authored-by: Ayman Mustafa <84941140+MEClouds@users.noreply.github.com>
2023-12-28 11:40:03 +05:30
Anas AlGhanem
8583c01cad
fix(Geo): Add timezone for palestinian territory country (#23986)
* Add timezone for palestinian territory country. It's blocking the first start wizard from completion.

* add currency and additional timezone for Palestine


[skip ci]
2023-12-28 11:03:48 +05:30
Hussain Nagaria
8d2137c265 docs: consistent doc strings 2023-12-18 18:27:39 +05:30
Rabin Koirala
4074fed368
fix: adding country Nepal in get_number_system country list (#23582)
* feat: adding country Nepal in get_number_system

Nepal has also same numbering system as India ( Crore , Lakh )

* fix: changes on number format of nepal

* fixed the space before Nepal and position in list

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-12-04 19:33:20 +05:30
Raffael Meyer
f0155674a5
refactor!: remove redundant sending of translations (#22962)
* chore!: remove redundant translation

* refactor!: remove "get_translated_dict" hook

Instead, include the results from
`frappe.geo.country_info.get_translated_dict` in `get_all_translations`.

* test: money_in_words uses translated currency

... and now we have translations.

* Revert "test: money_in_words uses translated currency"

This reverts commit e07d594ac1ce4b120c0fceb5d23377cb981fe820.

* refactor!: stop translating timezone and currency

* refactor: rename `get_translated_dict`

... to `get_translated_countries`
2023-11-02 20:04:14 +05:30
barredterra
b553ed98d8 refactor: inline immediately returned variable
Inline a variable to a return in the case when the
variable being declared is immediately returned
2023-08-08 18:09:49 +02:00
Ankush Menat
927cd647e4 chore: generate type annotations 2023-07-24 15:32:48 +05:30
Deepesh Garg
3a74b38e8c Revert "fix: Update country names (#21545)"
This reverts commit e0f35fb85f.
2023-07-02 12:08:43 +05:30