Skip to content

Add pl translation, decapitalize attribute error message for id: all messages are starting with lowercase #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: localized_exceptions
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions Lib/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,14 +746,20 @@ def exists(path):
sys.exit(10)

# Localizations
sys.localized_exceptions = {}; sys.localized_exceptions['id'] = {}
sys.localized_exceptions = {}; sys.localized_exceptions['id'] = {}; sys.localized_exceptions['pl'] = {}

sys.localized_exceptions['id']["'%.100s' object has no attribute '%U'"] = "Objek '%.100s' tidak memiliki atribut '%U'"
sys.localized_exceptions['id']["'%.100s' object has no attribute '%U'"] = "objek '%.100s' tidak memiliki atribut '%U'"
sys.localized_exceptions['id']['division by zero'] = "pembagian dengan nol"
sys.localized_exceptions['id']["unsupported operand type(s) for %.100s: '%.100s' and '%.100s'"] = "tipe operan tidak didukung untuk %.100s: '%.100s' dan '%.100s'"
sys.localized_exceptions['id']["unmatched '%c'"] = "'%c' tanpa pasangan"
sys.localized_exceptions['id']["invalid syntax"] = "sintaks tidak valid"

sys.localized_exceptions['pl']["'%.100s' object has no attribute '%U'"] = "obiekt '%.100s' nie ma atrybutu '%U'"
sys.localized_exceptions['pl']['division by zero'] = "dzielenie przez zero"
sys.localized_exceptions['pl']["unsupported operand type(s) for %.100s: '%.100s' and '%.100s'"] = "niewspierany(-ne) typ(y) operandu(-dów) dla %.100s: '%.100s' i '%.100s'"
sys.localized_exceptions['pl']["unmatched '%c'"] = "brak dopasowania '%c'"
sys.localized_exceptions['pl']["invalid syntax"] = "nieprawidłowa składnia"


if __name__ == '__main__':
_script()