From 0bdd8857197363aec549e7ed003ad8dc342fd2ef Mon Sep 17 00:00:00 2001 From: Ali <010109ali@gmail.com> Date: Thu, 14 May 2026 10:57:14 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20use=20native=20Az=C9=99rbaycan=20spell?= =?UTF-8?q?ing=20in=20user-facing=20strings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces "Azerbaijan" with "Azərbaycan" in app description, README, and the descriptions of the Tax Period Closing Settings fields. Country master Link values (e.g. country_of_origin: Azerbaijan in item fixtures) are kept as-is to preserve references. Co-Authored-By: Claude Opus 4.7 (1M context) --- CLAUDE.md | 12 ++++++------ README.md | 2 +- pyproject.toml | 2 +- taxes_az/hooks.py | 2 +- .../tax_period_closing_settings.json | 6 +++--- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index fb8bdca..97aedf7 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ## Project Overview -**taxes_az** is a Frappe/ERPNext application for managing Azerbaijan tax declarations and compliance. It integrates with Azerbaijan's E-Taxes system (new.e-taxes.gov.az) to automate tax filing, company profile management, and tax calculations. +**taxes_az** is a Frappe/ERPNext application for managing Azərbaycan tax declarations and compliance. It integrates with Azərbaycan's E-Taxes system (new.e-taxes.gov.az) to automate tax filing, company profile management, and tax calculations. ## Development Environment @@ -49,7 +49,7 @@ after_migrate = "taxes_az.create_item_group.create_item_groups" ### Core Integration Modules #### 1. E-Taxes Authentication (`taxes_az/auth.py`) -- Handles authentication with Azerbaijan E-Taxes API +- Handles authentication with Azərbaycan E-Taxes API - Token management and renewal (endpoint: `https://new.e-taxes.gov.az/api/po/auth/public/v1/renew`) - Activity tracking with 10-minute timeout - Key functions: @@ -119,7 +119,7 @@ Located in `taxes_az/taxes_az/report/`: ### Item Groups -The app manages specialized item groups for Azerbaijan tax purposes: +The app manages specialized item groups for Azərbaycan tax purposes: - **Neft Məhsulları** (Oil Products) - Includes fuel types - **Faydalı qazıntılar** (Mining Resources) - 20+ types of minerals with units - **İdman, mərc və lotoreya oyunları** (Gaming) - Sports betting and lottery @@ -137,7 +137,7 @@ Each doctype folder contains: ### Naming Conventions - Child table doctypes often have parent name + description (e.g., `declaration_of_value_added_tax_elave_1`) -- Azerbaijani terms used extensively in doctype names +- Azərbaycan terms used extensively in doctype names ### Hooks Registration @@ -175,7 +175,7 @@ fixtures = [ ## Working with E-Taxes API ### Authentication Flow -1. User authenticates via ASAN Login (Azerbaijan's e-government system) +1. User authenticates via ASAN Login (Azərbaycan's e-government system) 2. Tokens stored in "Asan Login" doctype with `is_default` flag 3. Activity tracked every API call to prevent timeout 4. Automatic token renewal via `RENEW_URL` @@ -250,7 +250,7 @@ bench --site [site-name] run-tests --doctype "Declaration of Value Added Tax" The codebase uses a mix of: - **Russian** - Comments and some internal documentation -- **Azerbaijani** - DocType names, field labels, Item Group names +- **Azərbaycan** - DocType names, field labels, Item Group names - **English** - Code, function names, technical terms When adding new features, follow existing language conventions for each context. diff --git a/README.md b/README.md index 434d355..abf9347 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## Taxes Az -Azerbaijan Taxes +Azərbaycan Taxes #### License diff --git a/pyproject.toml b/pyproject.toml index bc7b9e0..5619dad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "taxes_az" authors = [ { name = "Jey Soft", email = "info@jeysoft.az"} ] -description = "Azerbaijan Taxes" +description = "Azərbaycan Taxes" requires-python = ">=3.10" readme = "README.md" dynamic = ["version"] diff --git a/taxes_az/hooks.py b/taxes_az/hooks.py index df66f6f..beb604b 100644 --- a/taxes_az/hooks.py +++ b/taxes_az/hooks.py @@ -1,7 +1,7 @@ app_name = "taxes_az" app_title = "Taxes Az" app_publisher = "Jey Soft" -app_description = "Azerbaijan Taxes" +app_description = "Azərbaycan Taxes" app_email = "info@jeysoft.az" app_license = "unlicense" diff --git a/taxes_az/taxes_az/doctype/tax_period_closing_settings/tax_period_closing_settings.json b/taxes_az/taxes_az/doctype/tax_period_closing_settings/tax_period_closing_settings.json index db1d942..4b36995 100644 --- a/taxes_az/taxes_az/doctype/tax_period_closing_settings/tax_period_closing_settings.json +++ b/taxes_az/taxes_az/doctype/tax_period_closing_settings/tax_period_closing_settings.json @@ -359,7 +359,7 @@ { "default": "18", "depends_on": "enable_vat", - "description": "Standard VAT rate in Azerbaijan is 18% (Maddə 159 of the Tax Code). This is used for reference and reporting only — the actual VAT amounts are calculated from GL account balances, not by applying this rate.\n\nChange only if the government announces a new rate.", + "description": "Standard VAT rate in Azərbaycan is 18% (Maddə 159 of the Tax Code). This is used for reference and reporting only — the actual VAT amounts are calculated from GL account balances, not by applying this rate.\n\nChange only if the government announces a new rate.", "fieldname": "vat_rate", "fieldtype": "Percent", "label": "VAT Rate (%)" @@ -421,7 +421,7 @@ { "default": "20", "depends_on": "enable_profit_tax", - "description": "Corporate profit tax rate. Standard rate in Azerbaijan is 20% (Maddə 104 of the Tax Code).\n\nApplied to: Net Profit = Total Income − Total Expenses for the period.\n\nChange only if your company qualifies for a reduced rate (e.g., certain agricultural or IT activities may have incentives).", + "description": "Corporate profit tax rate. Standard rate in Azərbaycan is 20% (Maddə 104 of the Tax Code).\n\nApplied to: Net Profit = Total Income − Total Expenses for the period.\n\nChange only if your company qualifies for a reduced rate (e.g., certain agricultural or IT activities may have incentives).", "fieldname": "profit_tax_rate", "fieldtype": "Percent", "label": "Profit Tax Rate (%)" @@ -596,7 +596,7 @@ }, { "default": "0", - "description": "Enable road tax tracking. Relevant for companies owning vehicles registered in Azerbaijan.\n\nThe wizard will check if the company has transportation assets. Annual calculation.\n\nEnable only if the company owns registered vehicles.", + "description": "Enable road tax tracking. Relevant for companies owning vehicles registered in Azərbaycan.\n\nThe wizard will check if the company has transportation assets. Annual calculation.\n\nEnable only if the company owns registered vehicles.", "fieldname": "enable_road_tax", "fieldtype": "Check", "label": "Enable Road Tax"