aboutsummaryrefslogtreecommitdiff
path: root/src/locale
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-09-14 22:07:29 -0300
committerEuAndreh <eu@euandre.org>2021-09-14 22:07:29 -0300
commite22fa5d3d78008f53227014afb6b1a6622d5c1d4 (patch)
tree2ac167c91a0f7c90f48046e51b68f54290869b9f /src/locale
parentTODOs.md: Add #task-e9b72107-7dad-0844-d993-503259c729b5 (diff)
downloadgit-permalink-e22fa5d3d78008f53227014afb6b1a6622d5c1d4.tar.gz
git-permalink-e22fa5d3d78008f53227014afb6b1a6622d5c1d4.tar.xz
Rework how translation is done
Instead of variables on the code itself, each language gets its own file.
Diffstat (limited to 'src/locale')
-rw-r--r--src/locale/eo.sh20
-rw-r--r--src/locale/fr.sh20
-rw-r--r--src/locale/pt.sh20
3 files changed, 60 insertions, 0 deletions
diff --git a/src/locale/eo.sh b/src/locale/eo.sh
new file mode 100644
index 0000000..6e77ec9
--- /dev/null
+++ b/src/locale/eo.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+set -eu
+
+MSG_USAGE='Uzmaniero: git permalink [-phV] DOSIERO [LINIONO]'
+
+MSG_HELP='Ebloj:
+ -p nur presas la ligon, ne provas malfermi ĝin
+ -h, --help montras ĉi tiun helpmesaĝon
+ -V, --version presas la versian numeron
+
+Vidu "man git-permalink" por pliaj informoj.'
+
+MSG_MISSING_FILE="La argumento DOSIERO mankas."
+
+MSG_UNSUPPORTED_ORIGIN='Origo ne estas subtenata: %s.
+
+Aldoni anstataŭan ŝablonon por uzi git-permalink (vidu
+"man git-permalink.1" por instrukcioj).'
+
+MSG_OPEN='Malfermado de %s'
diff --git a/src/locale/fr.sh b/src/locale/fr.sh
new file mode 100644
index 0000000..455912f
--- /dev/null
+++ b/src/locale/fr.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+set -eu
+
+MSG_USAGE='Usage: git permalink [-phV] FICHIER [LINENO]'
+
+MSG_HELP='Options:
+ -p seulement imprimez le lien, n'"'"'essayez pas de l'"'"'ouvrir
+ -h, --help afficher ce message d'"'"'aide
+ -V, --version imprime le numeró de version
+
+Voir "man git-permalink" pour plus d'"'"'informations.'
+
+MSG_MISSING_FILE="L'argument FICHIER manque."
+
+MSG_UNSUPPORTED_ORIGIN='Origine n'"'"'es pas supporté: %s.
+
+Ajouter un modèle de remplacement pour utilisér git-permalink (regarde
+"man git-permalink.1" pour les instructions).'
+
+MSG_OPEN='Ouverture de %s'
diff --git a/src/locale/pt.sh b/src/locale/pt.sh
new file mode 100644
index 0000000..e0ae89d
--- /dev/null
+++ b/src/locale/pt.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+set -eu
+
+MSG_USAGE='Uso: git permalink [-phV] ARQUIVO [NOLINHA]'
+
+MSG_HELP='Opções:
+ -p somemente imprime o link, não tenta abrí-lo
+ -h, --help mostra esta mensagem de ajuda
+ -V, --version imprime o número de versão
+
+Veja "man git-permalink" para mais informações.'
+
+MSG_MISSING_FILE="Faltando argumento ARQUIVO."
+
+MSG_UNSUPPORTED_ORIGIN='Origem sem suporte: %s.
+
+Adicione um modelo de substituição para usar o git-permalink (veja
+"man git-permalink.1" para mais instruções).'
+
+MSG_OPEN='Abrindo %s'