aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/git-permalink.in58
-rw-r--r--src/locale/en.sh58
-rw-r--r--src/locale/eo.sh43
-rw-r--r--src/locale/fr.sh43
-rw-r--r--src/locale/pt.sh43
5 files changed, 151 insertions, 94 deletions
diff --git a/src/git-permalink.in b/src/git-permalink.in
index 14d40e0..205db07 100755
--- a/src/git-permalink.in
+++ b/src/git-permalink.in
@@ -1,32 +1,38 @@
#!/bin/sh
set -eu
-#
-# Translatable strings
-#
-
-_G() {
- echo "$1"
-}
-
-MSG_USAGE="$(_G 'Usage: git permalink [-phV] FILE [LINENO]')"
-MSG_HELP="$(_G '
-Options:
- -p only print the link, don'"'"'t try to open it
- -h, --help show this help message
- -V, --version print the version number
-
-See "man git-permalink" for more information.
-')"
-
-MSG_MISSING_FILE="$(_G 'Missing FILE argument.')"
-
-MSG_UNSUPPORTED_ORIGIN="$(_G 'Unsupported origin: %s.
-
-Add an template override to use git-permalink (see
-"man git-permalink.1" for instructions).')"
-
-MSG_OPEN="$(_G 'Opening %s')"
+MSG_USAGE="$(cat <<-'EOF'
+ Usage: git permalink [-phV] FILE [LINENO]
+EOF
+)"
+
+MSG_HELP="$(cat <<-'EOF'
+ Options:
+ -p only print the link, don't try to open it
+ -h, --help show this help message
+ -V, --version print the version number
+
+ See "man git-permalink" for more information.
+EOF
+)"
+
+MSG_MISSING_FILE="$(echo <<-'EOF'
+ Missing FILE argument.
+EOF
+)"
+
+MSG_UNSUPPORTED_ORIGIN="$(cat <<-'EOF'
+ Unsupported origin: %s.
+
+ Add a template override to use git-permalink (see
+ "man git-permalink" for instructions).
+EOF
+)"
+
+MSG_OPEN="$(cat <<-'EOF'
+ Opening %s
+EOF
+)"
#
# End translatable strings
diff --git a/src/locale/en.sh b/src/locale/en.sh
index a777eac..998bdfe 100644
--- a/src/locale/en.sh
+++ b/src/locale/en.sh
@@ -1,31 +1,37 @@
#!/bin/sh
set -eu
-#
-# Translatable strings
-#
-
-_G() {
- echo "$1"
-}
-
-MSG_USAGE="$(_G 'Usage: git permalink [-phV] FILE [LINENO]')"
-MSG_HELP="$(_G '
-Options:
- -p only print the link, don'"'"'t try to open it
- -h, --help show this help message
- -V, --version print the version number
-
-See "man git-permalink" for more information.
-')"
-
-MSG_MISSING_FILE="$(_G 'Missing FILE argument.')"
-
-MSG_UNSUPPORTED_ORIGIN="$(_G 'Unsupported origin: %s.
-
-Add an template override to use git-permalink (see
-"man git-permalink.1" for instructions).')"
-
-MSG_OPEN="$(_G 'Opening %s')"
+MSG_USAGE="$(cat <<-'EOF'
+ Usage: git permalink [-phV] FILE [LINENO]
+EOF
+)"
+
+MSG_HELP="$(cat <<-'EOF'
+ Options:
+ -p only print the link, don't try to open it
+ -h, --help show this help message
+ -V, --version print the version number
+
+ See "man git-permalink" for more information.
+EOF
+)"
+
+MSG_MISSING_FILE="$(echo <<-'EOF'
+ Missing FILE argument.
+EOF
+)"
+
+MSG_UNSUPPORTED_ORIGIN="$(cat <<-'EOF'
+ Unsupported origin: %s.
+
+ Add a template override to use git-permalink (see
+ "man git-permalink" for instructions).
+EOF
+)"
+
+MSG_OPEN="$(cat <<-'EOF'
+ Opening %s
+EOF
+)"
#
diff --git a/src/locale/eo.sh b/src/locale/eo.sh
index fd02368..f4b92c2 100644
--- a/src/locale/eo.sh
+++ b/src/locale/eo.sh
@@ -1,21 +1,36 @@
-#!/bin/sh
-# shellcheck disable=SC2034
-set -eu
+#!/bin/sh set -eu
-MSG_USAGE='Uzmaniero: git permalink [-phV] DOSIERO [LINIONO]'
+MSG_USAGE="$(cat <<-'EOF'
+ Uzmaniero: git permalink [-phV] DOSIERO [LINIONO]
+EOF
+)"
-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
+MSG_HELP="$(cat <<-'EOF'
+ Ebloj:
+ -p nur presas la ligon, ne provas malgermi ĝin
+ -h, --help montras ĉi tiun helpmesaĝon
+ -V, --version presas la versian numeron
-Vidu "man git-permalink" por pliaj informoj.'
+ Vidu "man git-permalink" por pliaj informoj.
+EOF
+)"
-MSG_MISSING_FILE="La argumento DOSIERO mankas."
+MSG_MISSING_FILE="$(echo <<-'EOF'
+ La argumento DOSIERO mankas.
+EOF
+)"
-MSG_UNSUPPORTED_ORIGIN='Origo ne estas subtenata: %s.
+MSG_UNSUPPORTED_ORIGIN="$(cat <<-'EOF'
+ Origo ne estas subtenata: %s.
-Aldoni anstataŭan ŝablonon por uzi git-permalink (vidu
-"man git-permalink.1" por instrukcioj).'
+ Aldonu anstataŭan ŝablonon por uzi git-permalink (vidu
+ "man git-permalink" por instrukcioj).
+EOF
+)"
-MSG_OPEN='Malfermado de %s'
+MSG_OPEN="$(cat <<-'EOF'
+ Malfermado de %s
+EOF
+)"
+
+#
diff --git a/src/locale/fr.sh b/src/locale/fr.sh
index cccc3b2..6cd91bd 100644
--- a/src/locale/fr.sh
+++ b/src/locale/fr.sh
@@ -1,21 +1,36 @@
-#!/bin/sh
-# shellcheck disable=SC2034
-set -eu
+#!/bin/sh set -eu
-MSG_USAGE='Usage: git permalink [-phV] FICHIER [LINENO]'
+MSG_USAGE="$(cat <<-'EOF'
+ Usage: git permalink [-phV] FICHIER [LINENO]
+EOF
+)"
-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
+MSG_HELP="$(cat <<-'EOF'
+ 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.'
+ Voir "man git-permalink" pour plus d'informations.
+EOF
+)"
-MSG_MISSING_FILE="L'argument FICHIER manque."
+MSG_MISSING_FILE="$(echo <<-'EOF'
+ L'argument FICHIER manque.
+EOF
+)"
-MSG_UNSUPPORTED_ORIGIN='Origine n'"'"'es pas supporté: %s.
+MSG_UNSUPPORTED_ORIGIN="$(cat <<-'EOF'
+ Origine n'est pas supporté: %s.
-Ajouter un modèle de remplacement pour utilisér git-permalink (regarde
-"man git-permalink.1" pour les instructions).'
+ Ajouter un modèle de remplacement pour utilisér git-permalink (regarde
+ "man git-permalink" pour les instructions).
+EOF
+)"
-MSG_OPEN='Ouverture de %s'
+MSG_OPEN="$(cat <<-'EOF'
+ Ouverture de %s
+EOF
+)"
+
+#
diff --git a/src/locale/pt.sh b/src/locale/pt.sh
index 57085cb..cd71d69 100644
--- a/src/locale/pt.sh
+++ b/src/locale/pt.sh
@@ -1,21 +1,36 @@
-#!/bin/sh
-# shellcheck disable=SC2034
-set -eu
+#!/bin/sh set -eu
-MSG_USAGE='Uso: git permalink [-phV] ARQUIVO [NOLINHA]'
+MSG_USAGE="$(cat <<-'EOF'
+ Usage: git permalink [-phV] ARQUIVO [NOLINHA]
+EOF
+)"
-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
+MSG_HELP="$(cat <<-'EOF'
+ Opções:
+ -p somente imprime o link, não tenta abrí-lo
+ -h, --help mostra esta mensagem de ajuda
+ -V, --version imprime o número da versão
-Veja "man git-permalink" para mais informações.'
+ Veja "man git-permalink" para mais informações.
+EOF
+)"
-MSG_MISSING_FILE="Faltando argumento ARQUIVO."
+MSG_MISSING_FILE="$(echo <<-'EOF'
+ Faltando argumento ARQUIVO.
+EOF
+)"
-MSG_UNSUPPORTED_ORIGIN='Origem sem suporte: %s.
+MSG_UNSUPPORTED_ORIGIN="$(cat <<-'EOF'
+ Origem sem suporte: %s.
-Adicione um modelo de substituição para usar o git-permalink (veja
-"man git-permalink.1" para mais instruções).'
+ Adiciona um modelo de substituição para usar no git-permalink (veja
+ "man git-permalink." para mais instruções).
+EOF
+)"
-MSG_OPEN='Abrindo %s'
+MSG_OPEN="$(cat <<-'EOF'
+ Abrindo %s
+EOF
+)"
+
+#