From 65f01b593479ca9d16a9e851befd624ab170b171 Mon Sep 17 00:00:00 2001 From: Hector Perez Baranda Date: Mon, 30 Sep 2019 15:53:10 -0300 Subject: [PATCH 1/4] Adding Portuguese Translation (#26) * Adding Portuguese Translation * Correct language code for babel --- .../pt_br/LC_MESSAGES/messages.mo | Bin 0 -> 1959 bytes .../pt_br/LC_MESSAGES/messages.po | 139 ++++++++++++++++++ translations/pt_br/LC_MESSAGES/messages.mo | Bin 0 -> 1959 bytes translations/pt_br/LC_MESSAGES/messages.po | 139 ++++++++++++++++++ 4 files changed, 278 insertions(+) create mode 100644 octoprint_costestimation/translations/pt_br/LC_MESSAGES/messages.mo create mode 100644 octoprint_costestimation/translations/pt_br/LC_MESSAGES/messages.po create mode 100644 translations/pt_br/LC_MESSAGES/messages.mo create mode 100644 translations/pt_br/LC_MESSAGES/messages.po diff --git a/octoprint_costestimation/translations/pt_br/LC_MESSAGES/messages.mo b/octoprint_costestimation/translations/pt_br/LC_MESSAGES/messages.mo new file mode 100644 index 0000000000000000000000000000000000000000..80d1e68cf32d08781b3c8f2fc17fcea6cb561dc8 GIT binary patch literal 1959 zcmcJPzmFS56vqb$keFW~a8MBGh676%fzLT4q{tTsl8Y}oh!yL85hNru-hEyV?9S}X z%--Q^C}=5YXwvaR3PK7sqM@*8X`rU!58?a9YhP&S7vQrbPjs151$oJ^^0>zW`qV?|~!mCy?cqVB|w^8DzN$$Z}uR{2s(l z{9Mm}1=;=|;2YrIAjfwe$@&~z0XdJ~f_2KH-+YGka?UxgoEsi|7NN$Rz@-=ypXb5; z^H{>evGIVp#o#({4D2`8oAdV~o;X&u@j>M|rI*C2u|YmGzh0K4oH7ZCP3wc$tehj0 zOr)O_Lz|16WV{X&aZ{^;0y)vkDG5#|Sd@hjk?yI6? zbz*?HiQhQrYN5&{V?@S2V{dnCk0mWK!U;mi`9$iG%x#t-YHh^sEQnDIN$lhFRV9OR z8HMi3$HQEiPgmsF(WtvJ4x#j&c01EyTn*O}TeJ(6n+E&-Z2c)xcKq&STl(V&+whqX7#MqJhToc?CL=-n0x0T5%sBG<# zDmwCpQztst%E*Crp~@=qw2c>qS!kCzYPBJeXy=il{k^T$l~Xy~UOyt&>Y2o*s9r~2 z8S2ou+qy-D3u;|Q-nNOA^IYaOQMvZCHq<8&TjipkY~4`G&0FfQ!X+kG z=)nCDTMC;hHq-Pzy8}o3^a1}Z*#GRTm=U&HC{uAUVTuISp)uWoi}SV Y&etvCe^U+fj=i3@q?NG?2js2z2bmWn;{X5v literal 0 HcmV?d00001 diff --git a/octoprint_costestimation/translations/pt_br/LC_MESSAGES/messages.po b/octoprint_costestimation/translations/pt_br/LC_MESSAGES/messages.po new file mode 100644 index 0000000..f5b998e --- /dev/null +++ b/octoprint_costestimation/translations/pt_br/LC_MESSAGES/messages.po @@ -0,0 +1,139 @@ +msgid "" +msgstr "" +"Project-Id-Version: Untitled project\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-06-05 17:44-0300\n" +"PO-Revision-Date: 2019-06-05 17:56-0300\n" +"Last-Translator: Hector Perez Baranda\n" +"Language-Team: Brazilian Portuguese\n" +"Language: pt-BR\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Loco https://localise.biz\n" +"X-Loco-Source-Locale: en\n" +"X-Loco-Project-Id: 69944\n" +"X-Loco-Api-Version: 1.0.23 20190531-1" + +#: octoprint_costestimation/static/js/costestimation.js:98 +#: loco:5cf829ef4d3dd74ab8039fc1 +msgid "Cost" +msgstr "Custo" + +#: octoprint_costestimation/static/js/costestimation.js:99 +#: loco:5cf829ef4d3dd74ab8039fc2 +msgid "" +"Estimated print cost based on required quantity of filament and print time" +msgstr "" +"Custo de impressão estimado com base na quantidade necessária de filamentos " +"e no tempo de impressão" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:3 +#: loco:5cf829ef4d3dd74ab8039fc3 +msgid "Filament" +msgstr "Filamento" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:9 +#: loco:5cf829ef4d3dd74ab8039fc4 +msgid "" +"Use Filament Manager Plugin" +msgstr "" +"Use Plugin do Gerenciador de Filamento " + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:11 +#: loco:5cf829ef4d3dd74ab8039fc5 +msgid "(installed)" +msgstr "(instalado)" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:14 +#: loco:5cf829ef4d3dd74ab8039fc6 +msgid "(not installed)" +msgstr "(não instalado)" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:22 +#: loco:5cf829ef4d3dd74ab8039fc7 +msgid "Price" +msgstr "Preço" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:33 +#: loco:5cf829ef4d3dd74ab8039fc8 +msgid "Weight" +msgstr "Peso" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:44 +#: loco:5cf829ef4d3dd74ab8039fc9 +msgid "Density" +msgstr "Densidade" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:55 +#: loco:5cf829ef4d3dd74ab8039fca +msgid "Diameter" +msgstr "Diametro" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:66 +#: loco:5cf829ef4d3dd74ab8039fcb +msgid "Operating Cost" +msgstr "Custo de Operação" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:69 +#: loco:5cf829ef4d3dd74ab8039fcc +msgid "Power consumption" +msgstr "Consumo de Energía" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:79 +#: loco:5cf829ef4d3dd74ab8039fcd +msgid "Electricity cost" +msgstr "Custo da Electricidade" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:88 +#: loco:5cf829ef4d3dd74ab8039fce +msgid "Printer Cost" +msgstr "Custo de Impressão" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:91 +#: loco:5cf829ef4d3dd74ab8039fcf +msgid "Purchase price" +msgstr "Preço de compra" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:101 +#: loco:5cf829ef4d3dd74ab8039fd0 +msgid "Estimated lifespan" +msgstr "Vida útil estimada" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:111 +#: loco:5cf829ef4d3dd74ab8039fd1 +msgid "Maintenance costs" +msgstr "Custo de manuntenção" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:120 +#: loco:5cf829ef4d3dd74ab8039fd2 +msgid "Appearance" +msgstr "Aparência" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:123 +#: loco:5cf829ef4d3dd74ab8039fd3 +msgid "Currency symbol" +msgstr "R$" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:129 +#: loco:5cf829ef4d3dd74ab8039fd4 +#, python-format +msgid "" +"Format string that allows control of symbol position (%%v = value, %%s = " +"symbol)" +msgstr "" +"Formatar string que permite controlar a posição do símbolo (%%v = value, %%s " +"= symbol)" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:130 +#: loco:5cf829ef4d3dd74ab8039fd5 +msgid "String format" +msgstr "Formato de String" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:139 +#: loco:5cf829ef4d3dd74ab8039fd6 +msgid "Show estimated cost only if logged in" +msgstr "Mostrar custo estimado somente se conectado" diff --git a/translations/pt_br/LC_MESSAGES/messages.mo b/translations/pt_br/LC_MESSAGES/messages.mo new file mode 100644 index 0000000000000000000000000000000000000000..80d1e68cf32d08781b3c8f2fc17fcea6cb561dc8 GIT binary patch literal 1959 zcmcJPzmFS56vqb$keFW~a8MBGh676%fzLT4q{tTsl8Y}oh!yL85hNru-hEyV?9S}X z%--Q^C}=5YXwvaR3PK7sqM@*8X`rU!58?a9YhP&S7vQrbPjs151$oJ^^0>zW`qV?|~!mCy?cqVB|w^8DzN$$Z}uR{2s(l z{9Mm}1=;=|;2YrIAjfwe$@&~z0XdJ~f_2KH-+YGka?UxgoEsi|7NN$Rz@-=ypXb5; z^H{>evGIVp#o#({4D2`8oAdV~o;X&u@j>M|rI*C2u|YmGzh0K4oH7ZCP3wc$tehj0 zOr)O_Lz|16WV{X&aZ{^;0y)vkDG5#|Sd@hjk?yI6? zbz*?HiQhQrYN5&{V?@S2V{dnCk0mWK!U;mi`9$iG%x#t-YHh^sEQnDIN$lhFRV9OR z8HMi3$HQEiPgmsF(WtvJ4x#j&c01EyTn*O}TeJ(6n+E&-Z2c)xcKq&STl(V&+whqX7#MqJhToc?CL=-n0x0T5%sBG<# zDmwCpQztst%E*Crp~@=qw2c>qS!kCzYPBJeXy=il{k^T$l~Xy~UOyt&>Y2o*s9r~2 z8S2ou+qy-D3u;|Q-nNOA^IYaOQMvZCHq<8&TjipkY~4`G&0FfQ!X+kG z=)nCDTMC;hHq-Pzy8}o3^a1}Z*#GRTm=U&HC{uAUVTuISp)uWoi}SV Y&etvCe^U+fj=i3@q?NG?2js2z2bmWn;{X5v literal 0 HcmV?d00001 diff --git a/translations/pt_br/LC_MESSAGES/messages.po b/translations/pt_br/LC_MESSAGES/messages.po new file mode 100644 index 0000000..f5b998e --- /dev/null +++ b/translations/pt_br/LC_MESSAGES/messages.po @@ -0,0 +1,139 @@ +msgid "" +msgstr "" +"Project-Id-Version: Untitled project\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-06-05 17:44-0300\n" +"PO-Revision-Date: 2019-06-05 17:56-0300\n" +"Last-Translator: Hector Perez Baranda\n" +"Language-Team: Brazilian Portuguese\n" +"Language: pt-BR\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Loco https://localise.biz\n" +"X-Loco-Source-Locale: en\n" +"X-Loco-Project-Id: 69944\n" +"X-Loco-Api-Version: 1.0.23 20190531-1" + +#: octoprint_costestimation/static/js/costestimation.js:98 +#: loco:5cf829ef4d3dd74ab8039fc1 +msgid "Cost" +msgstr "Custo" + +#: octoprint_costestimation/static/js/costestimation.js:99 +#: loco:5cf829ef4d3dd74ab8039fc2 +msgid "" +"Estimated print cost based on required quantity of filament and print time" +msgstr "" +"Custo de impressão estimado com base na quantidade necessária de filamentos " +"e no tempo de impressão" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:3 +#: loco:5cf829ef4d3dd74ab8039fc3 +msgid "Filament" +msgstr "Filamento" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:9 +#: loco:5cf829ef4d3dd74ab8039fc4 +msgid "" +"Use Filament Manager Plugin" +msgstr "" +"Use Plugin do Gerenciador de Filamento " + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:11 +#: loco:5cf829ef4d3dd74ab8039fc5 +msgid "(installed)" +msgstr "(instalado)" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:14 +#: loco:5cf829ef4d3dd74ab8039fc6 +msgid "(not installed)" +msgstr "(não instalado)" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:22 +#: loco:5cf829ef4d3dd74ab8039fc7 +msgid "Price" +msgstr "Preço" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:33 +#: loco:5cf829ef4d3dd74ab8039fc8 +msgid "Weight" +msgstr "Peso" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:44 +#: loco:5cf829ef4d3dd74ab8039fc9 +msgid "Density" +msgstr "Densidade" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:55 +#: loco:5cf829ef4d3dd74ab8039fca +msgid "Diameter" +msgstr "Diametro" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:66 +#: loco:5cf829ef4d3dd74ab8039fcb +msgid "Operating Cost" +msgstr "Custo de Operação" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:69 +#: loco:5cf829ef4d3dd74ab8039fcc +msgid "Power consumption" +msgstr "Consumo de Energía" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:79 +#: loco:5cf829ef4d3dd74ab8039fcd +msgid "Electricity cost" +msgstr "Custo da Electricidade" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:88 +#: loco:5cf829ef4d3dd74ab8039fce +msgid "Printer Cost" +msgstr "Custo de Impressão" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:91 +#: loco:5cf829ef4d3dd74ab8039fcf +msgid "Purchase price" +msgstr "Preço de compra" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:101 +#: loco:5cf829ef4d3dd74ab8039fd0 +msgid "Estimated lifespan" +msgstr "Vida útil estimada" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:111 +#: loco:5cf829ef4d3dd74ab8039fd1 +msgid "Maintenance costs" +msgstr "Custo de manuntenção" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:120 +#: loco:5cf829ef4d3dd74ab8039fd2 +msgid "Appearance" +msgstr "Aparência" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:123 +#: loco:5cf829ef4d3dd74ab8039fd3 +msgid "Currency symbol" +msgstr "R$" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:129 +#: loco:5cf829ef4d3dd74ab8039fd4 +#, python-format +msgid "" +"Format string that allows control of symbol position (%%v = value, %%s = " +"symbol)" +msgstr "" +"Formatar string que permite controlar a posição do símbolo (%%v = value, %%s " +"= symbol)" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:130 +#: loco:5cf829ef4d3dd74ab8039fd5 +msgid "String format" +msgstr "Formato de String" + +#: octoprint_costestimation/templates/costestimation_settings.jinja2:139 +#: loco:5cf829ef4d3dd74ab8039fd6 +msgid "Show estimated cost only if logged in" +msgstr "Mostrar custo estimado somente se conectado" From dbfdd8495da4cf8c73383f6bfcf7a36092efbce2 Mon Sep 17 00:00:00 2001 From: Sven Lohrmann Date: Mon, 30 Sep 2019 21:57:33 +0200 Subject: [PATCH 2/4] Fix currency symbol for filament price (Closes #16) --- .../templates/costestimation_settings.jinja2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint_costestimation/templates/costestimation_settings.jinja2 b/octoprint_costestimation/templates/costestimation_settings.jinja2 index 2b17bea..936fe29 100644 --- a/octoprint_costestimation/templates/costestimation_settings.jinja2 +++ b/octoprint_costestimation/templates/costestimation_settings.jinja2 @@ -24,7 +24,7 @@
- +
From 356f990bc4d97a1977b9a9790f56841d4ed79eff Mon Sep 17 00:00:00 2001 From: Sven Lohrmann Date: Mon, 30 Sep 2019 22:00:44 +0200 Subject: [PATCH 3/4] Update email address --- octoprint_costestimation/__init__.py | 2 +- octoprint_costestimation/static/js/costestimation.js | 2 +- .../translations/de/LC_MESSAGES/messages.po | 2 +- setup.py | 2 +- translations/de/LC_MESSAGES/messages.po | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/octoprint_costestimation/__init__.py b/octoprint_costestimation/__init__.py index 403b45a..0ed1575 100644 --- a/octoprint_costestimation/__init__.py +++ b/octoprint_costestimation/__init__.py @@ -1,7 +1,7 @@ # coding=utf-8 from __future__ import absolute_import -__author__ = "Sven Lohrmann " +__author__ = "Sven Lohrmann " __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html" __copyright__ = "Copyright (C) 2017 Sven Lohrmann - Released under terms of the AGPLv3 License" diff --git a/octoprint_costestimation/static/js/costestimation.js b/octoprint_costestimation/static/js/costestimation.js index aa7c7b9..30a73ab 100644 --- a/octoprint_costestimation/static/js/costestimation.js +++ b/octoprint_costestimation/static/js/costestimation.js @@ -1,7 +1,7 @@ /* * View model for OctoPrint-CostEstimation * - * Author: Sven Lohrmann + * Author: Sven Lohrmann * License: AGPLv3 */ diff --git a/octoprint_costestimation/translations/de/LC_MESSAGES/messages.po b/octoprint_costestimation/translations/de/LC_MESSAGES/messages.po index f125d64..f8f16f7 100644 --- a/octoprint_costestimation/translations/de/LC_MESSAGES/messages.po +++ b/octoprint_costestimation/translations/de/LC_MESSAGES/messages.po @@ -10,7 +10,7 @@ msgstr "" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2018-01-14 19:43+0100\n" "PO-Revision-Date: 2018-01-14 19:49+0100\n" -"Last-Translator: Sven Lohrmann \n" +"Last-Translator: Sven Lohrmann \n" "Language: de\n" "Language-Team: de \n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" diff --git a/setup.py b/setup.py index 757cc0c..4eb8e7a 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ plugin_version = "2.1.2" plugin_description = "Displays the estimated print cost for the loaded model" plugin_author = "Sven Lohrmann" -plugin_author_email = "malnvenshorn@gmail.com" +plugin_author_email = "malnvenshorn@mailbox.org" plugin_url = "https://github.com/malnvenshorn/OctoPrint-CostEstimation" plugin_license = "AGPLv3" plugin_requires = [] diff --git a/translations/de/LC_MESSAGES/messages.po b/translations/de/LC_MESSAGES/messages.po index f125d64..f8f16f7 100644 --- a/translations/de/LC_MESSAGES/messages.po +++ b/translations/de/LC_MESSAGES/messages.po @@ -10,7 +10,7 @@ msgstr "" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2018-01-14 19:43+0100\n" "PO-Revision-Date: 2018-01-14 19:49+0100\n" -"Last-Translator: Sven Lohrmann \n" +"Last-Translator: Sven Lohrmann \n" "Language: de\n" "Language-Team: de \n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" From 5b40927c8dab965321b9d80c758132e3c680443e Mon Sep 17 00:00:00 2001 From: Sven Lohrmann Date: Mon, 30 Sep 2019 22:05:52 +0200 Subject: [PATCH 4/4] Bump version to 2.1.3 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4eb8e7a..9d6dcb0 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ plugin_identifier = "costestimation" plugin_package = "octoprint_costestimation" plugin_name = "OctoPrint-CostEstimation" -plugin_version = "2.1.2" +plugin_version = "2.1.3" plugin_description = "Displays the estimated print cost for the loaded model" plugin_author = "Sven Lohrmann" plugin_author_email = "malnvenshorn@mailbox.org"