Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit d894a25

Browse files
committed
Fixed "stdtypes" typos and translations
Signed-off-by: Serhii Horodilov <sgorodil@gmail.com>
1 parent 3f71a02 commit d894a25

File tree

2 files changed

+43
-41
lines changed

2 files changed

+43
-41
lines changed

src/_locales/uk/LC_MESSAGES/basics.po

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python Training Course 2022.11.dev\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2023-04-21 05:50+0300\n"
12-
"PO-Revision-Date: 2023-04-21 05:51+0300\n"
11+
"POT-Creation-Date: 2023-04-21 06:44+0300\n"
12+
"PO-Revision-Date: 2023-04-21 06:46+0300\n"
1313
"Last-Translator: Serhii Horodilov <sgorodil@gmail.com>\n"
1414
"Language-Team: \n"
1515
"Language: uk\n"
@@ -903,87 +903,87 @@ msgstr "сума *x* і *y*"
903903

904904
#: ../../src/basics/stdtypes.txt:40
905905
msgid "``x - y``"
906-
msgstr "``x + y``"
906+
msgstr "``x - y``"
907907

908908
#: ../../src/basics/stdtypes.txt:40
909909
msgid "difference of *x* and *y*"
910910
msgstr "різниця між *x* і *y*"
911911

912912
#: ../../src/basics/stdtypes.txt:42
913913
msgid "``x * y``"
914-
msgstr "``x + y``"
914+
msgstr "``x * y``"
915915

916916
#: ../../src/basics/stdtypes.txt:42
917917
msgid "product of *x* and *y*"
918918
msgstr "добуток *x* і *y*"
919919

920920
#: ../../src/basics/stdtypes.txt:44
921921
msgid "``x / y``"
922-
msgstr "``x + y``"
922+
msgstr "``x / y``"
923923

924924
#: ../../src/basics/stdtypes.txt:44
925925
msgid "quotient of *x* and *y*"
926926
msgstr "частка *x* і *y*"
927927

928928
#: ../../src/basics/stdtypes.txt:46
929929
msgid "``x // y``"
930-
msgstr "``x + y``"
930+
msgstr "``x // y``"
931931

932932
#: ../../src/basics/stdtypes.txt:46
933933
msgid "floored quotient of *x* and *y*"
934934
msgstr "цілочисельне ділення *x* і *y*"
935935

936936
#: ../../src/basics/stdtypes.txt:48
937937
msgid "``x % y``"
938-
msgstr "``x + y``"
938+
msgstr "``x % y``"
939939

940940
#: ../../src/basics/stdtypes.txt:48
941941
msgid "remainder of ``x / y``"
942-
msgstr "залишок від ділення``x / y``"
942+
msgstr "залишок від ділення ``x / y``"
943943

944944
#: ../../src/basics/stdtypes.txt:50
945945
msgid "``-x``"
946-
msgstr "``x + y``"
946+
msgstr "``-x``"
947947

948948
#: ../../src/basics/stdtypes.txt:50
949949
msgid "*x* negated"
950950
msgstr "*x* від'ємне"
951951

952952
#: ../../src/basics/stdtypes.txt:52
953953
msgid "``+x``"
954-
msgstr "``x + y``"
954+
msgstr "``+x``"
955955

956956
#: ../../src/basics/stdtypes.txt:52
957957
msgid "*y* unchanged"
958958
msgstr "*y* без змін"
959959

960960
#: ../../src/basics/stdtypes.txt:54
961961
msgid "``abs(x)``"
962-
msgstr "``x + y``"
962+
msgstr "``abs(x)``"
963963

964964
#: ../../src/basics/stdtypes.txt:54
965965
msgid "absolute value or magnitude of *x*"
966966
msgstr "абсолютне значення або величина *x*"
967967

968968
#: ../../src/basics/stdtypes.txt:56
969969
msgid "``int(x)``"
970-
msgstr "``x + y``"
970+
msgstr "``int(x)``"
971971

972972
#: ../../src/basics/stdtypes.txt:56
973973
msgid "*x* converted to integer"
974974
msgstr "*x* перетворено на ціле число"
975975

976976
#: ../../src/basics/stdtypes.txt:58
977977
msgid "``float(x)``"
978-
msgstr "``x + y``"
978+
msgstr "``float(x)``"
979979

980980
#: ../../src/basics/stdtypes.txt:58
981981
msgid "*x* converted to floating point"
982982
msgstr "*x* перетворено на число з плаваючою комою"
983983

984984
#: ../../src/basics/stdtypes.txt:60
985985
msgid "``complex(re, im)``"
986-
msgstr "``x + y``"
986+
msgstr "``complex(re, im)``"
987987

988988
#: ../../src/basics/stdtypes.txt:60
989989
msgid ""
@@ -995,15 +995,15 @@ msgstr ""
995995

996996
#: ../../src/basics/stdtypes.txt:63
997997
msgid "``divmod(x, y)``"
998-
msgstr "``x + y``"
998+
msgstr "``divmod(x, y)``"
999999

10001000
#: ../../src/basics/stdtypes.txt:63
10011001
msgid "the pair ``(x // y, x % y)``"
10021002
msgstr "об'єднує ``(x // y, x % y)``"
10031003

10041004
#: ../../src/basics/stdtypes.txt:65
10051005
msgid "``pow(x, y)`` ``x ** y``"
1006-
msgstr "``x + y``"
1006+
msgstr "``pow(x, y)`` ``x ** y``"
10071007

10081008
#: ../../src/basics/stdtypes.txt:65
10091009
msgid "*x* to the power *y*"
@@ -1022,12 +1022,12 @@ msgstr ""
10221022
#: ../../src/basics/stdtypes.txt:74
10231023
msgid ""
10241024
"``float(x)`` also accepts the strings ``\"nan\"`` and ``\"inf\"`` with an "
1025-
"optional prefix \"+\" or \"-\" for :abbr:Nan(Not a Number) and positive and "
1026-
"negative infinity."
1025+
"optional prefix \"+\" or \"-\" for :abbr:`NaN(Not a Number)` and positive "
1026+
"and negative infinity."
10271027
msgstr ""
10281028
"``float(x)`` також приймає рядки ``\"nan\"`` та ``\"inf\"`` з необов'язковим "
1029-
"префіксом \"+\" або \"-\" для: abbr:Nan(не число) і позитивна і негативна "
1030-
"нескінченність."
1029+
"префіксом \"+\" або \"-\" для: :abbr:`NaN(Not a Number, не число)` і "
1030+
"позитивна та негативна нескінченність."
10311031

10321032
#: ../../src/basics/stdtypes.txt:79
10331033
msgid "Code examples"

src/basics/stdtypes.txt

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -72,38 +72,40 @@ Supported operations
7272
``1 // 2`` is ``0``
7373

7474
.. note:: ``float(x)`` also accepts the strings ``"nan"`` and ``"inf"`` with
75-
an optional prefix "+" or "-" for :abbr:Nan(Not a Number) and
75+
an optional prefix "+" or "-" for :abbr:`NaN(Not a Number)` and
7676
positive and negative infinity.
7777

7878
Code examples
7979
-------------
8080

8181
.. code-block:: python
8282
:caption: Integer numbers
83+
:linenos:
8384

84-
x = 42
85-
y = 24
86-
a = int(42)
87-
b = int(42.24)
88-
89-
result = x + y # for both int operands only
90-
result = x - y # for both int operands only
91-
result = x * y # for both int operands only
92-
result = x // y # for any numeric operands
85+
>>> x = 42
86+
>>> y = 24
87+
>>> a = int(42)
88+
>>> b = int(42.24)
89+
>>> # result is of the integer type
90+
>>> result_add = x + y # for both int operands only
91+
>>> result_sub = x - y # for both int operands only
92+
>>> result_mul = x * y # for both int operands only
93+
>>> result_div = x // y # for any numeric operands
9394

9495
.. code-block:: python
9596
:caption: Floating point numbers
96-
97-
x = 42.
98-
y = .24
99-
z = 42.24
100-
a = float(42)
101-
b = float(42.24)
102-
103-
result = x + y # for any float operand
104-
result = x - y # for any float operand
105-
result = x * y # for any float operand
106-
result = x / y # for any numeric operands
97+
:linenos:
98+
99+
>>> x = 42.
100+
>>> y = .24
101+
>>> z = 42.24
102+
>>> a = float(42)
103+
>>> b = float(42.24)
104+
>>> # result is of the float type
105+
>>> result_add = x + y # for any float operand
106+
>>> result_sub = x - y # for any float operand
107+
>>> result_mul = x * y # for any float operand
108+
>>> result_div = x / y # for any numeric operands
107109

108110
Value comparisons
109111
-----------------

0 commit comments

Comments
 (0)