Skip to content

Commit

Permalink
l10n: add support for European Portuguese (#722)
Browse files Browse the repository at this point in the history
* Portuguese Language

European Portuguese added.

* Portuguese (PT) updates

Portuguese (PT) updates

* chore: remove unwanted .DS_Store file

Co-authored-by: akanerd <braga82@gmail.com>
  • Loading branch information
cheton and Paulo-Martins committed Oct 24, 2021
1 parent 02eac43 commit b1ffceb
Show file tree
Hide file tree
Showing 8 changed files with 632 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
'ja', // Japanese
'nl', // Nederlands
'pt-br', // Portuguese (Brazil)
'pt-pt', // Portuguese (Portugal)
'ru', // Russian
'tr', // Turkish
'zh-cn', // Simplified Chinese
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
"i18next-xhr-backend": "~2.0.1",
"infinite-tree": "~1.16.2",
"is-electron": "~2.2.0",
"jimp": "~0.6.1",
"jimp": "^0.10.3",
"js-polyfills": "~0.1.42",
"jsonwebtoken": "~8.5.1",
"jsuri": "~1.3.1",
Expand Down
1 change: 1 addition & 0 deletions src/app/containers/Settings/General/General.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ class General extends PureComponent {
<option value="hu">Magyar</option>
<option value="nl">Nederlands</option>
<option value="pt-br">Português (Brasil)</option>
<option value="pt-pt">Português (Portugal)</option>
<option value="tr">Türkçe</option>
<option value="ru">Русский</option>
<option value="zh-tw">中文 (繁體)</option>
Expand Down
44 changes: 44 additions & 0 deletions src/app/i18n/pt-pt/controller.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"TinyG": {
"machineState": {
"initializing": "A inicializar",
"ready": "Pronto",
"alarm": "Alarme",
"stop": "Parar",
"end": "Fim",
"run": "Correr",
"hold": "Pausar",
"probe": "Sonda",
"cycle": "Ciclo",
"homing": "Ir para origem",
"jog": "Movimento",
"interlock": "Bloqueio",
"shutdown": "Desligar",
"panic": "Pânico"
}
},
"Grbl": {
"activeState": {
"idle": "Inativo",
"run": "Correr",
"hold": "Pausar",
"door": "Porta",
"home": "Origem",
"sleep": "Suspenção",
"alarm": "Alarme",
"check": "Verificar"
}
},
"Smoothie": {
"activeState": {
"idle": "Inativo",
"run": "Correr",
"hold": "Pausar",
"door": "Porta",
"home": "Origem",
"sleep": "Dormir",
"alarm": "Alarme",
"check": "Verificar"
}
}
}
41 changes: 41 additions & 0 deletions src/app/i18n/pt-pt/gcode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"Rapid Move (G0)": "Movimento Rápido (G0)",
"Linear Move (G1)": "Movimento Linear (G1)",
"CW Arc (G2)": "Arco CW (G2)",
"CCW Arc (G3)": "Arco CCW (G3)",
"Probing (G38.2)": "Sondagem (G38.2)",
"Probing (G38.3)": "Sondagem (G38.3)",
"Probing (G38.4)": "Sondagem (G38.4)",
"Probing (G38.5)": "Sondagem (G38.5)",
"Cancel Mode (G80)": "Modo Cancelar (G80)",
"P1 (G54)": "P1 (G54)",
"P2 (G55)": "P2 (G55)",
"P3 (G56)": "P3 (G56)",
"P4 (G57)": "P4 (G57)",
"P5 (G58)": "P5 (G58)",
"P6 (G59)": "P6 (G59)",
"XY Plane (G17)": "Plano XY (G17)",
"XZ Plane (G18)": "Plano XZ (G18)",
"YZ Plane (G19)": "Plano YZ (G19)",
"Inches (G20)": "Polegadas (G20)",
"Millimeters (G21)": "Milímetros (G21)",
"Exact Path (G61)": "Caminho Exato (G61)",
"Exact Stop (G61.1)": "Paragem Exata (G61.1)",
"Continuous (G64)": "Contínuo (G64)",
"Absolute (G90)": "Absoluto (G90)",
"Relative (G91)": "Relativo (G91)",
"Inverse Time (G93)": "Tempo Inverso (G93)",
"Units/Min (G94)": "Unidades/Min (G94)",
"Active Tool Offset (G43.1)": "",
"No Tool Offset (G49)": "",
"Program Stop (M0)": "Pára o Programa (M0)",
"Optional Program Stop (M1)": "",
"Program End (M2)": "Fim do Programa (M2)",
"Program End and Rewind (M30)": "Fim do Programa e Retorno (M30)",
"Spindle On, CW (M3)": "Spindle On, CW (M3)",
"Spindle On, CCW (M4)": "Spindle On, CCW (M4)",
"Spindle Off (M5)": "Spindle Off (M5)",
"Mist Coolant On (M7)": "Refrigeração à Pressão On (M7)",
"Flood Coolant On (M8)": "Refrigeração Contínua On (M8)",
"Coolant Off (M9)": "Refrigeração Off (M9)"
}
537 changes: 537 additions & 0 deletions src/app/i18n/pt-pt/resource.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/server/i18n/pt-pt/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"dir": "ltr"
}
4 changes: 4 additions & 0 deletions src/server/i18n/pt-pt/resource.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"loading": "A Ler...",
"title": "CNCjs"
}

0 comments on commit b1ffceb

Please sign in to comment.