From 7053da89a8a0cdc3fa533ebc00e8e7711202f123 Mon Sep 17 00:00:00 2001 From: drel Date: Fri, 3 Oct 2025 00:11:57 +0300 Subject: [PATCH] testing testing --- __pycache__/localization.cpython-310.pyc | Bin 0 -> 356 bytes localization.py | 9 +++++++++ main.py | 4 ++++ 3 files changed, 13 insertions(+) create mode 100644 __pycache__/localization.cpython-310.pyc create mode 100644 localization.py create mode 100644 main.py diff --git a/__pycache__/localization.cpython-310.pyc b/__pycache__/localization.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..35ccfef2fcedd6b274c39c4a12acb63d3523b1d4 GIT binary patch literal 356 zcmd1j<>g`k0=`%GG8h>d7#@Q-$bbpRaRB0C9w3pzkiyu)5XF$f6wIK>oD7nK0T3I6 zoq@R607%pT)n+plan&%UFoEb4=3tN*3y>`W6%$Kg4F;MC!J2G-x0s4bZ?Tl57MGNY z0!_Fu|6;?19TzrT*m|)^N8!Sr3p*}0DBfa9&8y<|NX^N~*HI|XFUm<#T*;uxbc-b? zF)uxey||<(FEKZ@hy|!0O#IUKw2BGOFUl@1NK8&Gj&Un3DynqKFNsM5F_M6coc!d( zoXo1klFa-(y@JYH?CGf`IY4uOp}|lL3LF7u7Df=}_+P{hu5EdIy?iPnl RZhlH>PO2SPHz+`O7yv=6RSf_D literal 0 HcmV?d00001 diff --git a/localization.py b/localization.py new file mode 100644 index 0000000..8310715 --- /dev/null +++ b/localization.py @@ -0,0 +1,9 @@ +def getlstr(lang, strname): + + # ======== RUSSIAN ======== + if lang == "ru" and strname == "test": + return "Привет, мир!" + + # ======== ENGLISH ======== + if lang == "en" and strname == "test": + return "Hello, world!" \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..aa46772 --- /dev/null +++ b/main.py @@ -0,0 +1,4 @@ +import localization as lang + +print(lang.getlstr("ru", "test")) +print(lang.getlstr("en", "test")) \ No newline at end of file