Skip to content

Commit a35f291

Browse files
authored
Merge pull request #185 from ftoledo/spanish_translation
add spanish translation (es-AR)
2 parents 16a6d1e + 3e7e469 commit a35f291

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

internal/i18n/Spanish.go

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package i18n
2+
3+
func init() {
4+
5+
mainTranslation := GetMainTranslation()
6+
7+
spanishTranslation := mainTranslation.GetLangTranslation("es-AR")
8+
9+
/* Main menu */
10+
actionTranslation := spanishTranslation.GetActionTranslation("Action")
11+
actionTranslation.SetTranslation("menu-home", "Inicio")
12+
actionTranslation.SetTranslation("menu-netmail", "Netmail")
13+
actionTranslation.SetTranslation("menu-echomail", "Echomail")
14+
actionTranslation.SetTranslation("menu-files", "Archivos")
15+
actionTranslation.SetTranslation("menu-service", "Servicios")
16+
actionTranslation.SetTranslation("menu-people", "Personas")
17+
actionTranslation.SetTranslation("menu-draft", "Borradores")
18+
actionTranslation.SetTranslation("menu-setup", "Configuración")
19+
20+
/* NetmailIndexAction */
21+
netmailIndexActionTranslation := spanishTranslation.GetActionTranslation("NetmailIndexAction")
22+
netmailIndexActionTranslation.SetTranslation("action-button-create", "Redactar")
23+
/* EchoAreaIndexAction */
24+
echoAreaIndexActionTranslation := spanishTranslation.GetActionTranslation("EchoAreaIndexAction")
25+
echoAreaIndexActionTranslation.SetTranslation("action-button-create", "Crear")
26+
/* EchoMsgIndexAction */
27+
echoMsgIndexActionTranslation := spanishTranslation.GetActionTranslation("EchoMsgIndexAction")
28+
echoMsgIndexActionTranslation.SetTranslation("action-compose-button", "Redactar")
29+
echoMsgIndexActionTranslation.SetTranslation("action-tree-button", "Árbol")
30+
echoMsgIndexActionTranslation.SetTranslation("action-mark-as-read-button", "Marcar como leído")
31+
echoMsgIndexActionTranslation.SetTranslation("action-settings-button", "Opciones")
32+
/* FileEchoIndexAction */
33+
fileEchoIndexActionTranslation := spanishTranslation.GetActionTranslation("FileEchoIndexAction")
34+
fileEchoIndexActionTranslation.SetTranslation("action-button-create", "Crear")
35+
36+
}

0 commit comments

Comments
 (0)