Use transifex to translations

This commit is contained in:
Matias De lellis
2019-11-02 21:09:44 -03:00
parent 6fb1f20c6d
commit 8b0388f8a5
5 changed files with 57 additions and 18 deletions

4
.gitignore vendored
View File

@@ -1,4 +1,6 @@
build
js/templates.js
node_modules
vendor
vendor
translationfiles/
translationtool.phar

10
.tx/config Normal file
View File

@@ -0,0 +1,10 @@
[main]
host = https://www.transifex.com
[quicknotes.quicknotes-pot]
file_filter = translationfiles/<lang>/quicknotes.po
minimum_perc = 0
source_file = translationfiles/templates/quicknotes.pot
source_lang = en
type = PO

View File

@@ -29,6 +29,31 @@ cert_dir=$(HOME)/.nextcloud/certificates
all: build
build: deps
# L10N Rules
l10n-update-pot:
php translationtool.phar create-pot-files
l10n-transifex-pull:
tx pull -s -a
l10n-transifex-push:
tx push -s -t
l10n-transifex-apply:
php translationtool.phar convert-po-files
l10n-clean:
rm -rf translationfiles
rm -f translationtool.phar
l10n-deps:
@echo "Checking transifex client."
tx --version
@echo "Downloading translationtool.phar"
wget https://github.com/nextcloud/docker-ci/raw/master/translations/translationtool/translationtool.phar -O translationtool.phar
# general
deps:
mkdir -p vendor

View File

@@ -1,16 +1,17 @@
OC.L10N.register(
"quicknotes",
{
"Quick notes" : "Notas rapidas",
"Nothing here. Take your quick notes." : "Nada aquí. Toma tus notas rapidas.",
"Quick notes" : "Notas rápidas",
"Cancel" : "Cancelar",
"Save" : "Guardar",
"Looking for your notes" : "Buscando tus notas",
"Nothing here. Take your first quick notes" : "Nada aquí. Toma tus primeras notas rápidas",
"Are you sure you want to delete the note?" : "¿Seguro que quieres eliminar la nota?",
"Delete note" : "Eliminar nota",
"New note" : "Nueva nota",
"All notes" : "Todas las notas",
"Shared with you" : "Compartido contigo",
"Shared with others" : "Compartido con otros",
"Colors" : "Colores",
"Notes" : "Notas",
"Share" : "Compartir",
"Cancel" : "Cancelar",
"Save" : "Guardar"
}
);
"Quick notes with a basic rich text" : "Notas rápidas con un texto enriquecido básico"
},
"nplurals=2; plural=(n != 1);");

View File

@@ -1,14 +1,15 @@
{ "translations": {
"Quick notes" : "Notas rapidas",
"Nothing here. Take your quick notes." : "Nada aquí. Toma tus notas rapidas.",
"Quick notes" : "Notas rápidas",
"Cancel" : "Cancelar",
"Save" : "Guardar",
"Looking for your notes" : "Buscando tus notas",
"Nothing here. Take your first quick notes" : "Nada aquí. Toma tus primeras notas rápidas",
"Are you sure you want to delete the note?" : "¿Seguro que quieres eliminar la nota?",
"Delete note" : "Eliminar nota",
"New note" : "Nueva nota",
"All notes" : "Todas las notas",
"Shared with you" : "Compartido contigo",
"Shared with others" : "Compartido con otros",
"Colors" : "Colores",
"Notes" : "Notas",
"Share" : "Compartir",
"Cancel" : "Cancelar",
"Save" : "Guardar"
}
"Quick notes with a basic rich text" : "Notas rápidas con un texto enriquecido básico"
},"pluralForm" :"nplurals=2; plural=(n != 1);"
}