From 4bb8a07e27f0c9645a298517b923a68c5a85cf13 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 2 Oct 2021 22:37:02 -0300 Subject: Use po4a for translating src/locale/en.sh --- src/git-permalink.in | 58 +++++++++++++++++++++++++++++----------------------- 1 file changed, 32 insertions(+), 26 deletions(-) (limited to 'src/git-permalink.in') 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 -- cgit v1.2.3