diff options
author | EuAndreh <eu@euandre.org> | 2021-10-02 22:37:02 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-10-02 22:37:02 -0300 |
commit | 4bb8a07e27f0c9645a298517b923a68c5a85cf13 (patch) | |
tree | 2ca59c71dd02fe7659643e821854bf04b9e979ee /src/locale/en.sh | |
parent | TODOs.md: Mark #task-79c9aa0e-d5ef-78d2-0a01-1b5a06cce6d9 as CANCELLED (diff) | |
download | git-permalink-4bb8a07e27f0c9645a298517b923a68c5a85cf13.tar.gz git-permalink-4bb8a07e27f0c9645a298517b923a68c5a85cf13.tar.xz |
Use po4a for translating src/locale/en.sh
Diffstat (limited to 'src/locale/en.sh')
-rw-r--r-- | src/locale/en.sh | 46 |
1 files changed, 26 insertions, 20 deletions
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="$(cat <<-'EOF' + Usage: git permalink [-phV] FILE [LINENO] +EOF +)" -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 +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. -')" + See "man git-permalink" for more information. +EOF +)" -MSG_MISSING_FILE="$(_G 'Missing FILE argument.')" +MSG_MISSING_FILE="$(echo <<-'EOF' + Missing FILE argument. +EOF +)" -MSG_UNSUPPORTED_ORIGIN="$(_G 'Unsupported origin: %s. +MSG_UNSUPPORTED_ORIGIN="$(cat <<-'EOF' + Unsupported origin: %s. -Add an template override to use git-permalink (see -"man git-permalink.1" for instructions).')" + Add a template override to use git-permalink (see + "man git-permalink" for instructions). +EOF +)" -MSG_OPEN="$(_G 'Opening %s')" +MSG_OPEN="$(cat <<-'EOF' + Opening %s +EOF +)" # |