From 026fc7546b7183b0fec5551778e5bd263e251c03 Mon Sep 17 00:00:00 2001 From: Ricardo Pacheco Date: Sun, 5 Jul 2020 17:52:55 +0100 Subject: [PATCH 1/2] Added locale files for pt_PT and updated README --- README.md | 1 + src/humanize/locale/pt_PT/humanize.mo | Bin 0 -> 2504 bytes src/humanize/locale/pt_PT/humanize.po | 281 ++++++++++++++++++++++++++ 3 files changed, 282 insertions(+) create mode 100644 src/humanize/locale/pt_PT/humanize.mo create mode 100644 src/humanize/locale/pt_PT/humanize.po diff --git a/README.md b/README.md index 6c0fc1a..1135f3a 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ readable size or throughput. It is localized to: * Brazilian Portuguese * Dutch +* European Portuguese * Finnish * French * German diff --git a/src/humanize/locale/pt_PT/humanize.mo b/src/humanize/locale/pt_PT/humanize.mo new file mode 100644 index 0000000000000000000000000000000000000000..cde466ebd2dbf93c0e561568aa5e65163dd73594 GIT binary patch literal 2504 zcmZXUO^g&p6vsAQDg8xLQFJ~O*m;h!I5~vc;n=S#Q6VLzu8@4rCS3_#(Ixw9@~M@Lk~t!ViTX2|pE{7S4hA)HkT^0KXTW2bV+tMf6J` z_xFd`uL!S#cfx)R#HX&K;=cb8-T*m{73W(HvVSGWace*x*?Q3jMIQ!v4prgPUPnc&!JzqcMV~zEHwz@+W_I)XY4Ew zlu%Uu_G%_Q zYSawRvE^LLbyOzZHnm1sXZtGRcTF#vL*J2JoaCY(>7};cSD5Z%^Qf_^Fvk}R>2c-T zxiQK+-lcb$%X3Wa`!o4tPR*Lao1Fb8OzzZF?%p&_A5A9FD<&@xMMJlHS!~l2rgF%1 zUGAd;MJr9BXM3$8nsyCcnK~F9GDlN7N4sNh8oFMsSEK5Vs5+)=I~rs4E!A4JTG<~L zKAO&BTXbUYa*W&`+g2}bnP}R?*%G~>yZ-g5>B@o01A7+tQ5&gNp2HR63Zm)RF4pmg zc5Am2r*@ZawvkE3PrN+6HyU5`<8m`5kM`K6OH$iv=<&m;uS|7%dEANix;!fy+IE9l zOw@PjvN^HI>SuIq^RCLP(LQ5MUha6xnI!ePJ~BE|t1zXLG!}%kZo53_WH5xMfy|ai z;!5NEw%d-aR+;(> z-5FP1s)yD42D}aSmy`a#?qwlVKq6u*yauP(aSSf?PBl|p6SLhT7t37kdk0#F7ql=8)8MyJPLIhjDD9+SvR)Pzz(Xwc rvIqVPUT7m*OmJHqSD3WG`(QL}JOmXZ^RciB6Jbc=(9aai%IESQeYyqn literal 0 HcmV?d00001 diff --git a/src/humanize/locale/pt_PT/humanize.po b/src/humanize/locale/pt_PT/humanize.po new file mode 100644 index 0000000..ea6cb7d --- /dev/null +++ b/src/humanize/locale/pt_PT/humanize.po @@ -0,0 +1,281 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: humanize\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-06-20 23:04-0300\n" +"PO-Revision-Date: 2020-07-05 17:52+0100\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: pt_PT\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Poedit 2.3.1\n" + +#: src/humanize/number.py:22 +msgctxt "0" +msgid "th" +msgstr "º" + +#: src/humanize/number.py:23 +msgctxt "1" +msgid "st" +msgstr "º" + +#: src/humanize/number.py:24 +msgctxt "2" +msgid "nd" +msgstr "º" + +#: src/humanize/number.py:25 +msgctxt "3" +msgid "rd" +msgstr "º" + +#: src/humanize/number.py:26 +msgctxt "4" +msgid "th" +msgstr "º" + +#: src/humanize/number.py:27 +msgctxt "5" +msgid "th" +msgstr "º" + +#: src/humanize/number.py:28 +msgctxt "6" +msgid "th" +msgstr "º" + +#: src/humanize/number.py:29 +msgctxt "7" +msgid "th" +msgstr "º" + +#: src/humanize/number.py:30 +msgctxt "8" +msgid "th" +msgstr "º" + +#: src/humanize/number.py:31 +msgctxt "9" +msgid "th" +msgstr "º" + +#: src/humanize/number.py:73 +msgid "million" +msgstr "milhão" + +#: src/humanize/number.py:74 +msgid "billion" +msgstr "milhar de milhão" + +#: src/humanize/number.py:75 +msgid "trillion" +msgstr "bilião" + +#: src/humanize/number.py:76 +msgid "quadrillion" +msgstr "mil biliões" + +#: src/humanize/number.py:77 +msgid "quintillion" +msgstr "trilião" + +#: src/humanize/number.py:78 +msgid "sextillion" +msgstr "mil triliões" + +#: src/humanize/number.py:79 +msgid "septillion" +msgstr "quatrilião" + +#: src/humanize/number.py:80 +msgid "octillion" +msgstr "mil quatriliões" + +#: src/humanize/number.py:81 +msgid "nonillion" +msgstr "quintilhão" + +#: src/humanize/number.py:82 +msgid "decillion" +msgstr "mil quintilhões" + +#: src/humanize/number.py:83 +msgid "googol" +msgstr "sextilhão" + +#: src/humanize/number.py:138 +msgid "zero" +msgstr "zero" + +#: src/humanize/number.py:139 +msgid "one" +msgstr "um" + +#: src/humanize/number.py:140 +msgid "two" +msgstr "dois" + +#: src/humanize/number.py:141 +msgid "three" +msgstr "três" + +#: src/humanize/number.py:142 +msgid "four" +msgstr "quatro" + +#: src/humanize/number.py:143 +msgid "five" +msgstr "cinco" + +#: src/humanize/number.py:144 +msgid "six" +msgstr "seis" + +#: src/humanize/number.py:145 +msgid "seven" +msgstr "sete" + +#: src/humanize/number.py:146 +msgid "eight" +msgstr "oito" + +#: src/humanize/number.py:147 +msgid "nine" +msgstr "nove" + +#: src/humanize/time.py:87 +#, fuzzy, python-format +msgid "%d microsecond" +msgid_plural "%d microseconds" +msgstr[0] "%d microssegundo" +msgstr[1] "%d microssegundos" + +#: src/humanize/time.py:93 +#, fuzzy, python-format +msgid "%d millisecond" +msgid_plural "%d milliseconds" +msgstr[0] "%d milissegundo" +msgstr[1] "%d milissegundos" + +#: src/humanize/time.py:96 src/humanize/time.py:170 +msgid "a moment" +msgstr "um momento" + +#: src/humanize/time.py:98 +msgid "a second" +msgstr "um segundo" + +#: src/humanize/time.py:100 +#, python-format +msgid "%d second" +msgid_plural "%d seconds" +msgstr[0] "%d segundo" +msgstr[1] "%d segundos" + +#: src/humanize/time.py:102 +msgid "a minute" +msgstr "um minuto" + +#: src/humanize/time.py:105 +#, python-format +msgid "%d minute" +msgid_plural "%d minutes" +msgstr[0] "%d minuto" +msgstr[1] "%d minutos" + +#: src/humanize/time.py:107 +msgid "an hour" +msgstr "uma hora" + +#: src/humanize/time.py:110 +#, python-format +msgid "%d hour" +msgid_plural "%d hours" +msgstr[0] "%d hora" +msgstr[1] "%d horas" + +#: src/humanize/time.py:113 +msgid "a day" +msgstr "um dia" + +#: src/humanize/time.py:115 src/humanize/time.py:118 +#, python-format +msgid "%d day" +msgid_plural "%d days" +msgstr[0] "%d dia" +msgstr[1] "%d dias" + +#: src/humanize/time.py:120 +msgid "a month" +msgstr "um mês" + +#: src/humanize/time.py:122 +#, python-format +msgid "%d month" +msgid_plural "%d months" +msgstr[0] "%d mês" +msgstr[1] "%d meses" + +#: src/humanize/time.py:125 +msgid "a year" +msgstr "um ano" + +#: src/humanize/time.py:127 src/humanize/time.py:136 +#, python-format +msgid "1 year, %d day" +msgid_plural "1 year, %d days" +msgstr[0] "1 ano e %d dia" +msgstr[1] "1 ano e %d dias" + +#: src/humanize/time.py:130 +msgid "1 year, 1 month" +msgstr "1 ano e 1 mês" + +#: src/humanize/time.py:133 +#, python-format +msgid "1 year, %d month" +msgid_plural "1 year, %d months" +msgstr[0] "1 ano e %d mês" +msgstr[1] "1 ano e %d meses" + +#: src/humanize/time.py:138 +#, python-format +msgid "%d year" +msgid_plural "%d years" +msgstr[0] "%d ano" +msgstr[1] "%d anos" + +#: src/humanize/time.py:167 +#, python-format +msgid "%s from now" +msgstr "daqui a %s" + +#: src/humanize/time.py:167 +#, python-format +msgid "%s ago" +msgstr "há %s" + +#: src/humanize/time.py:171 +msgid "now" +msgstr "agora" + +#: src/humanize/time.py:190 +msgid "today" +msgstr "hoje" + +#: src/humanize/time.py:192 +msgid "tomorrow" +msgstr "amanhã" + +#: src/humanize/time.py:194 +msgid "yesterday" +msgstr "ontem" From a01722f396f7cf76311c034e09e1521fc4dda50f Mon Sep 17 00:00:00 2001 From: Ricardo Pacheco Date: Sun, 5 Jul 2020 18:25:18 +0100 Subject: [PATCH 2/2] Added locale files for pt_PT and updated README --- .../locale/pt_PT/LC_MESSAGES/humanize.mo | Bin 0 -> 2682 bytes .../locale/pt_PT/{ => LC_MESSAGES}/humanize.po | 8 ++++---- src/humanize/locale/pt_PT/humanize.mo | Bin 2504 -> 0 bytes 3 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 src/humanize/locale/pt_PT/LC_MESSAGES/humanize.mo rename src/humanize/locale/pt_PT/{ => LC_MESSAGES}/humanize.po (97%) delete mode 100644 src/humanize/locale/pt_PT/humanize.mo diff --git a/src/humanize/locale/pt_PT/LC_MESSAGES/humanize.mo b/src/humanize/locale/pt_PT/LC_MESSAGES/humanize.mo new file mode 100644 index 0000000000000000000000000000000000000000..24a7c378817bcf1c5bbd5f95fc9b8d26f8508706 GIT binary patch literal 2682 zcmZXUO^g&p6vqo$6-NakZ3gyQErEUd(0&fF<1MdT`2sd7@)Sb{Lz(H_E^kX3X z3-AW;40tp6CWxWxtnhu1@y>%o;1}RJ@RIcZCA=d1SGXEM8E1`ft#DAd0fejC46Xr( zgd^aM(8opJ3*uALVxJM#!JA-z5oDZskn^>LCqaB_5f$UTD)uuV$Grja2;Ua{tmx-K zp2LU2PrwTF3n1tDTJ�j{jNg7loHV?&q@bPmq3BLC(v?aGe!!3+{3q$om_|Al}D* zkmp_iLiR4$|)}5KB<+g13X`LGJfckmvCg$n*UM zr2lsyKkn;_J^dA8^ega$z?iKwhka1>3 zKLT>Tqr&52KLOIui{1foeQF%SvISBNt+HYap7Tb?Ll7)e)gUaAy6O?M?++HGc7Y?1 z4G^x6YmXo-JP+=n`wyUP2V^&dZ-Mu#Ay|@n7{dK;g>b*!!n0xFKVWBQmDSzS=H6H) zAlpN$JXgLwmU~L5ZQuja-URYrFbY`@8HU^e8G^9zo>?9&q3#uqk;Ac$&5|G|TfUQZ z84PLC$b4=a-o>={snXqUC;iQPoEoS?zMgq@<{Q|k)Y%Q!~M-b`4cGOj%1;|Wg6I~Ci8v~1FB6>2_Nv}&HW z(Dc6P+bWfAmpH4OcU=|x_l-g{kG_)~6KA5I>?E$+m)nJ2bJ04L+tVwC3~(T!A`@@mQEh0WOiip{*5%lrx3D58UL^qkFd>|#n+4%-Ev715!*nZ(iK zon{`@JhV>4oChT)lGW;GyZ>{I$_)Wk0SKM<3Of7BEkNUG7+Do5bzWjTT;z zE%qI$ABZM~3<2L0phs z*Ld`Falo^a!EBYr<&R3*yv(@12>sEG3nPJCwU*E6;atTAPe&Uzzx8#%Y;q{{euqG-Ut) literal 0 HcmV?d00001 diff --git a/src/humanize/locale/pt_PT/humanize.po b/src/humanize/locale/pt_PT/LC_MESSAGES/humanize.po similarity index 97% rename from src/humanize/locale/pt_PT/humanize.po rename to src/humanize/locale/pt_PT/LC_MESSAGES/humanize.po index ea6cb7d..5449442 100644 --- a/src/humanize/locale/pt_PT/humanize.po +++ b/src/humanize/locale/pt_PT/LC_MESSAGES/humanize.po @@ -5,10 +5,10 @@ # msgid "" msgstr "" -"Project-Id-Version: humanize\n" +"Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-06-20 23:04-0300\n" -"PO-Revision-Date: 2020-07-05 17:52+0100\n" +"PO-Revision-Date: 2020-07-05 18:17+0100\n" "Last-Translator: \n" "Language-Team: \n" "Language: pt_PT\n" @@ -153,14 +153,14 @@ msgid "nine" msgstr "nove" #: src/humanize/time.py:87 -#, fuzzy, python-format +#, python-format msgid "%d microsecond" msgid_plural "%d microseconds" msgstr[0] "%d microssegundo" msgstr[1] "%d microssegundos" #: src/humanize/time.py:93 -#, fuzzy, python-format +#, python-format msgid "%d millisecond" msgid_plural "%d milliseconds" msgstr[0] "%d milissegundo" diff --git a/src/humanize/locale/pt_PT/humanize.mo b/src/humanize/locale/pt_PT/humanize.mo deleted file mode 100644 index cde466ebd2dbf93c0e561568aa5e65163dd73594..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2504 zcmZXUO^g&p6vsAQDg8xLQFJ~O*m;h!I5~vc;n=S#Q6VLzu8@4rCS3_#(Ixw9@~M@Lk~t!ViTX2|pE{7S4hA)HkT^0KXTW2bV+tMf6J` z_xFd`uL!S#cfx)R#HX&K;=cb8-T*m{73W(HvVSGWace*x*?Q3jMIQ!v4prgPUPnc&!JzqcMV~zEHwz@+W_I)XY4Ew zlu%Uu_G%_Q zYSawRvE^LLbyOzZHnm1sXZtGRcTF#vL*J2JoaCY(>7};cSD5Z%^Qf_^Fvk}R>2c-T zxiQK+-lcb$%X3Wa`!o4tPR*Lao1Fb8OzzZF?%p&_A5A9FD<&@xMMJlHS!~l2rgF%1 zUGAd;MJr9BXM3$8nsyCcnK~F9GDlN7N4sNh8oFMsSEK5Vs5+)=I~rs4E!A4JTG<~L zKAO&BTXbUYa*W&`+g2}bnP}R?*%G~>yZ-g5>B@o01A7+tQ5&gNp2HR63Zm)RF4pmg zc5Am2r*@ZawvkE3PrN+6HyU5`<8m`5kM`K6OH$iv=<&m;uS|7%dEANix;!fy+IE9l zOw@PjvN^HI>SuIq^RCLP(LQ5MUha6xnI!ePJ~BE|t1zXLG!}%kZo53_WH5xMfy|ai z;!5NEw%d-aR+;(> z-5FP1s)yD42D}aSmy`a#?qwlVKq6u*yauP(aSSf?PBl|p6SLhT7t37kdk0#F7ql=8)8MyJPLIhjDD9+SvR)Pzz(Xwc rvIqVPUT7m*OmJHqSD3WG`(QL}JOmXZ^RciB6Jbc=(9aai%IESQeYyqn