Skip to content

Commit 19cff76

Browse files
pedroalvesrcodeofsumit
authored andcommitted
Added brazilian portuguese translation (#475) (minor)
1 parent 186fb28 commit 19cff76

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ Change the language of user-facing copy in leaflet.pm
398398
map.pm.setLang('de');
399399
```
400400

401-
Currently available languages are `en`, `de`, `it`, `ru`, `ro`, `es`, `fr` and `nl`.
401+
Currently available languages are `en`, `de`, `it`, `ru`, `ro`, `es`, `fr`, `pt_br` and `nl`.
402402
To add translations to the plugin, you can add [a translation file](src/assets/translations) via Pull Request.
403403

404404
You can also provide your own custom translations.

src/assets/translations/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import ru from './ru.json';
66
import es from './es.json';
77
import nl from './nl.json';
88
import fr from './fr.json';
9+
import pt_br from './pt_br.json';
910

1011
export default {
1112
en,
@@ -16,4 +17,5 @@ export default {
1617
es,
1718
nl,
1819
fr,
20+
pt_br,
1921
};

src/assets/translations/pt_br.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"tooltips": {
3+
"placeMarker": "Clique para posicionar o marcador",
4+
"firstVertex": "Clique para posicionar o primeiro vértice",
5+
"continueLine": "Clique para continuar desenhando",
6+
"finishLine": "Clique em qualquer marcador existente para finalizar",
7+
"finishPoly": "Clique no primeiro ponto para fechar o polígono",
8+
"finishRect": "Clique para finalizar",
9+
"startCircle": "Clique para posicionar o centro do círculo",
10+
"finishCircle": "Clique para fechar o círculo"
11+
},
12+
"actions": {
13+
"finish": "Finalizar",
14+
"cancel": "Cancelar",
15+
"removeLastVertex": "Remover último vértice"
16+
},
17+
"buttonTitles": {
18+
"drawMarkerButton": "Desenhar um marcador",
19+
"drawPolyButton": "Desenhar um polígono",
20+
"drawLineButton": "Desenhar uma polilinha",
21+
"drawCircleButton": "Desenhar um círculo",
22+
"drawRectButton": "Desenhar um retângulo",
23+
"editButton": "Editar camada(s)",
24+
"dragButton": "Mover camada(s)",
25+
"cutButton": "Recortar camada(s)",
26+
"deleteButton": "Remover camada(s)"
27+
}
28+
}
29+

0 commit comments

Comments
 (0)