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

2
.gitignore vendored
View File

@@ -2,3 +2,5 @@ build
js/templates.js js/templates.js
node_modules 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 all: build
build: deps 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 # general
deps: deps:
mkdir -p vendor mkdir -p vendor

View File

@@ -1,16 +1,17 @@
OC.L10N.register( OC.L10N.register(
"quicknotes", "quicknotes",
{ {
"Quick notes" : "Notas rapidas", "Quick notes" : "Notas rápidas",
"Nothing here. Take your quick notes." : "Nada aquí. Toma tus notas rapidas.", "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", "New note" : "Nueva nota",
"All notes" : "Todas las notas", "All notes" : "Todas las notas",
"Shared with you" : "Compartido contigo",
"Shared with others" : "Compartido con otros",
"Colors" : "Colores", "Colors" : "Colores",
"Notes" : "Notas", "Notes" : "Notas",
"Share" : "Compartir", "Quick notes with a basic rich text" : "Notas rápidas con un texto enriquecido básico"
"Cancel" : "Cancelar", },
"Save" : "Guardar" "nplurals=2; plural=(n != 1);");
}
);

View File

@@ -1,14 +1,15 @@
{ "translations": { { "translations": {
"Quick notes" : "Notas rapidas", "Quick notes" : "Notas rápidas",
"Nothing here. Take your quick notes." : "Nada aquí. Toma tus notas rapidas.", "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", "New note" : "Nueva nota",
"All notes" : "Todas las notas", "All notes" : "Todas las notas",
"Shared with you" : "Compartido contigo",
"Shared with others" : "Compartido con otros",
"Colors" : "Colores", "Colors" : "Colores",
"Notes" : "Notas", "Notes" : "Notas",
"Share" : "Compartir", "Quick notes with a basic rich text" : "Notas rápidas con un texto enriquecido básico"
"Cancel" : "Cancelar", },"pluralForm" :"nplurals=2; plural=(n != 1);"
"Save" : "Guardar"
}
} }