Skip to content

Commit 62aba2b

Browse files
authored
Translate byte-size labels into Persian (#464)
1 parent 65c4997 commit 62aba2b

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

‎src/humanize/locale/fa_IR/LC_MESSAGES/humanize.po‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,3 +363,13 @@ msgstr "دیروز"
363363
#, python-format
364364
msgid "%s and %s"
365365
msgstr "%s و %s"
366+
367+
# --- filesize units (naturalsize) ---
368+
369+
#, python-format
370+
msgid "%d Byte"
371+
msgstr "%d بایت"
372+
373+
#, python-format
374+
msgid "%d Bytes"
375+
msgstr "%d بایت"

‎tests/test_i18n.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,11 @@ def test_intword_i18n(locale: str, number: int, expected_result: str) -> None:
247247
[
248248
("fr_FR", 1, "1 octet"),
249249
("fr_FR", 42, "42 octets"),
250+
("fa_IR", 0, "0 بایت"),
251+
("fa_IR", 1, "1 بایت"),
252+
("fa_IR", -1, "-1 بایت"),
253+
("fa_IR", 42, "42 بایت"),
254+
("fa_IR", -42, "-42 بایت"),
250255
("si_LK", 1, "බයිට් 1"),
251256
("si_LK", 42, "බයිට් 42"),
252257
("bn_BD", 1, "1 বাইট"),

0 commit comments

Comments
 (0)