diff options
Diffstat (limited to '')
51 files changed, 200 insertions, 0 deletions
diff --git a/src/locale/ADDED_LOG.en.txt b/src/locale/ADDED_LOG.en.txt new file mode 100644 index 0000000..1d49c77 --- /dev/null +++ b/src/locale/ADDED_LOG.en.txt @@ -0,0 +1 @@ +%s added to %s. diff --git a/src/locale/ADDED_LOG.eo.txt b/src/locale/ADDED_LOG.eo.txt new file mode 100644 index 0000000..1d49c77 --- /dev/null +++ b/src/locale/ADDED_LOG.eo.txt @@ -0,0 +1 @@ +%s added to %s. diff --git a/src/locale/ADDED_LOG.es.txt b/src/locale/ADDED_LOG.es.txt new file mode 100644 index 0000000..1d49c77 --- /dev/null +++ b/src/locale/ADDED_LOG.es.txt @@ -0,0 +1 @@ +%s added to %s. diff --git a/src/locale/ADDED_LOG.fr.txt b/src/locale/ADDED_LOG.fr.txt new file mode 100644 index 0000000..1d49c77 --- /dev/null +++ b/src/locale/ADDED_LOG.fr.txt @@ -0,0 +1 @@ +%s added to %s. diff --git a/src/locale/ADDED_LOG.pt.txt b/src/locale/ADDED_LOG.pt.txt new file mode 100644 index 0000000..1d49c77 --- /dev/null +++ b/src/locale/ADDED_LOG.pt.txt @@ -0,0 +1 @@ +%s added to %s. diff --git a/src/locale/COMMIT_MSG.en.txt b/src/locale/COMMIT_MSG.en.txt new file mode 100644 index 0000000..062e0f2 --- /dev/null +++ b/src/locale/COMMIT_MSG.en.txt @@ -0,0 +1 @@ +$TD_FILE: Add $TD_IDREF diff --git a/src/locale/COMMIT_MSG.eo.txt b/src/locale/COMMIT_MSG.eo.txt new file mode 100644 index 0000000..062e0f2 --- /dev/null +++ b/src/locale/COMMIT_MSG.eo.txt @@ -0,0 +1 @@ +$TD_FILE: Add $TD_IDREF diff --git a/src/locale/COMMIT_MSG.es.txt b/src/locale/COMMIT_MSG.es.txt new file mode 100644 index 0000000..062e0f2 --- /dev/null +++ b/src/locale/COMMIT_MSG.es.txt @@ -0,0 +1 @@ +$TD_FILE: Add $TD_IDREF diff --git a/src/locale/COMMIT_MSG.fr.txt b/src/locale/COMMIT_MSG.fr.txt new file mode 100644 index 0000000..062e0f2 --- /dev/null +++ b/src/locale/COMMIT_MSG.fr.txt @@ -0,0 +1 @@ +$TD_FILE: Add $TD_IDREF diff --git a/src/locale/COMMIT_MSG.pt.txt b/src/locale/COMMIT_MSG.pt.txt new file mode 100644 index 0000000..062e0f2 --- /dev/null +++ b/src/locale/COMMIT_MSG.pt.txt @@ -0,0 +1 @@ +$TD_FILE: Add $TD_IDREF diff --git a/src/locale/FILE_DOESNT_EXIST_CREATING.en.txt b/src/locale/FILE_DOESNT_EXIST_CREATING.en.txt new file mode 100644 index 0000000..f76b7d2 --- /dev/null +++ b/src/locale/FILE_DOESNT_EXIST_CREATING.en.txt @@ -0,0 +1 @@ +File "%s" doesn't exist yet, creating a brand new one. diff --git a/src/locale/FILE_DOESNT_EXIST_CREATING.eo.txt b/src/locale/FILE_DOESNT_EXIST_CREATING.eo.txt new file mode 100644 index 0000000..f76b7d2 --- /dev/null +++ b/src/locale/FILE_DOESNT_EXIST_CREATING.eo.txt @@ -0,0 +1 @@ +File "%s" doesn't exist yet, creating a brand new one. diff --git a/src/locale/FILE_DOESNT_EXIST_CREATING.es.txt b/src/locale/FILE_DOESNT_EXIST_CREATING.es.txt new file mode 100644 index 0000000..f76b7d2 --- /dev/null +++ b/src/locale/FILE_DOESNT_EXIST_CREATING.es.txt @@ -0,0 +1 @@ +File "%s" doesn't exist yet, creating a brand new one. diff --git a/src/locale/FILE_DOESNT_EXIST_CREATING.fr.txt b/src/locale/FILE_DOESNT_EXIST_CREATING.fr.txt new file mode 100644 index 0000000..f76b7d2 --- /dev/null +++ b/src/locale/FILE_DOESNT_EXIST_CREATING.fr.txt @@ -0,0 +1 @@ +File "%s" doesn't exist yet, creating a brand new one. diff --git a/src/locale/FILE_DOESNT_EXIST_CREATING.pt.txt b/src/locale/FILE_DOESNT_EXIST_CREATING.pt.txt new file mode 100644 index 0000000..f76b7d2 --- /dev/null +++ b/src/locale/FILE_DOESNT_EXIST_CREATING.pt.txt @@ -0,0 +1 @@ +File "%s" doesn't exist yet, creating a brand new one. diff --git a/src/locale/HELP1.en.txt b/src/locale/HELP1.en.txt new file mode 100644 index 0000000..f443055 --- /dev/null +++ b/src/locale/HELP1.en.txt @@ -0,0 +1,21 @@ + +Options: + -c commit directly only with the title, without + adding a description. Assumes -m + -m MESSAGE_TITLE the title message of the entry + -t TYPE the type of entry to be added (default: |TYPE|) + -s STATE the state of entry to be added (default: |STATE|) + -H pre-process issues file before generating HTML + -l list the supported values for $TD_USE_BUILTIN_HOOKS + -L lint the issues file + -h, --help show this help message + -V, --version print the version number + +Examples: + Create a new entry with the default type with a custom title: + $ td -cm 'An entry title' + + Create a new entry with a custom type and state: + $ td -cm 'Another title' -t bug -s DONE + +States of an entry: diff --git a/src/locale/HELP1.eo.txt b/src/locale/HELP1.eo.txt new file mode 100644 index 0000000..f443055 --- /dev/null +++ b/src/locale/HELP1.eo.txt @@ -0,0 +1,21 @@ + +Options: + -c commit directly only with the title, without + adding a description. Assumes -m + -m MESSAGE_TITLE the title message of the entry + -t TYPE the type of entry to be added (default: |TYPE|) + -s STATE the state of entry to be added (default: |STATE|) + -H pre-process issues file before generating HTML + -l list the supported values for $TD_USE_BUILTIN_HOOKS + -L lint the issues file + -h, --help show this help message + -V, --version print the version number + +Examples: + Create a new entry with the default type with a custom title: + $ td -cm 'An entry title' + + Create a new entry with a custom type and state: + $ td -cm 'Another title' -t bug -s DONE + +States of an entry: diff --git a/src/locale/HELP1.es.txt b/src/locale/HELP1.es.txt new file mode 100644 index 0000000..f443055 --- /dev/null +++ b/src/locale/HELP1.es.txt @@ -0,0 +1,21 @@ + +Options: + -c commit directly only with the title, without + adding a description. Assumes -m + -m MESSAGE_TITLE the title message of the entry + -t TYPE the type of entry to be added (default: |TYPE|) + -s STATE the state of entry to be added (default: |STATE|) + -H pre-process issues file before generating HTML + -l list the supported values for $TD_USE_BUILTIN_HOOKS + -L lint the issues file + -h, --help show this help message + -V, --version print the version number + +Examples: + Create a new entry with the default type with a custom title: + $ td -cm 'An entry title' + + Create a new entry with a custom type and state: + $ td -cm 'Another title' -t bug -s DONE + +States of an entry: diff --git a/src/locale/HELP1.fr.txt b/src/locale/HELP1.fr.txt new file mode 100644 index 0000000..f443055 --- /dev/null +++ b/src/locale/HELP1.fr.txt @@ -0,0 +1,21 @@ + +Options: + -c commit directly only with the title, without + adding a description. Assumes -m + -m MESSAGE_TITLE the title message of the entry + -t TYPE the type of entry to be added (default: |TYPE|) + -s STATE the state of entry to be added (default: |STATE|) + -H pre-process issues file before generating HTML + -l list the supported values for $TD_USE_BUILTIN_HOOKS + -L lint the issues file + -h, --help show this help message + -V, --version print the version number + +Examples: + Create a new entry with the default type with a custom title: + $ td -cm 'An entry title' + + Create a new entry with a custom type and state: + $ td -cm 'Another title' -t bug -s DONE + +States of an entry: diff --git a/src/locale/HELP1.pt.txt b/src/locale/HELP1.pt.txt new file mode 100644 index 0000000..f443055 --- /dev/null +++ b/src/locale/HELP1.pt.txt @@ -0,0 +1,21 @@ + +Options: + -c commit directly only with the title, without + adding a description. Assumes -m + -m MESSAGE_TITLE the title message of the entry + -t TYPE the type of entry to be added (default: |TYPE|) + -s STATE the state of entry to be added (default: |STATE|) + -H pre-process issues file before generating HTML + -l list the supported values for $TD_USE_BUILTIN_HOOKS + -L lint the issues file + -h, --help show this help message + -V, --version print the version number + +Examples: + Create a new entry with the default type with a custom title: + $ td -cm 'An entry title' + + Create a new entry with a custom type and state: + $ td -cm 'Another title' -t bug -s DONE + +States of an entry: diff --git a/src/locale/HELP2.en.txt b/src/locale/HELP2.en.txt new file mode 100644 index 0000000..a050854 --- /dev/null +++ b/src/locale/HELP2.en.txt @@ -0,0 +1 @@ +Types of entry: diff --git a/src/locale/HELP2.eo.txt b/src/locale/HELP2.eo.txt new file mode 100644 index 0000000..a050854 --- /dev/null +++ b/src/locale/HELP2.eo.txt @@ -0,0 +1 @@ +Types of entry: diff --git a/src/locale/HELP2.es.txt b/src/locale/HELP2.es.txt new file mode 100644 index 0000000..a050854 --- /dev/null +++ b/src/locale/HELP2.es.txt @@ -0,0 +1 @@ +Types of entry: diff --git a/src/locale/HELP2.fr.txt b/src/locale/HELP2.fr.txt new file mode 100644 index 0000000..a050854 --- /dev/null +++ b/src/locale/HELP2.fr.txt @@ -0,0 +1 @@ +Types of entry: diff --git a/src/locale/HELP2.pt.txt b/src/locale/HELP2.pt.txt new file mode 100644 index 0000000..a050854 --- /dev/null +++ b/src/locale/HELP2.pt.txt @@ -0,0 +1 @@ +Types of entry: diff --git a/src/locale/HELP3.en.txt b/src/locale/HELP3.en.txt new file mode 100644 index 0000000..b3ff327 --- /dev/null +++ b/src/locale/HELP3.en.txt @@ -0,0 +1 @@ +See "man td.tutorial" for getting started. diff --git a/src/locale/HELP3.eo.txt b/src/locale/HELP3.eo.txt new file mode 100644 index 0000000..b3ff327 --- /dev/null +++ b/src/locale/HELP3.eo.txt @@ -0,0 +1 @@ +See "man td.tutorial" for getting started. diff --git a/src/locale/HELP3.es.txt b/src/locale/HELP3.es.txt new file mode 100644 index 0000000..b3ff327 --- /dev/null +++ b/src/locale/HELP3.es.txt @@ -0,0 +1 @@ +See "man td.tutorial" for getting started. diff --git a/src/locale/HELP3.fr.txt b/src/locale/HELP3.fr.txt new file mode 100644 index 0000000..b3ff327 --- /dev/null +++ b/src/locale/HELP3.fr.txt @@ -0,0 +1 @@ +See "man td.tutorial" for getting started. diff --git a/src/locale/HELP3.pt.txt b/src/locale/HELP3.pt.txt new file mode 100644 index 0000000..b3ff327 --- /dev/null +++ b/src/locale/HELP3.pt.txt @@ -0,0 +1 @@ +See "man td.tutorial" for getting started. diff --git a/src/locale/TYPE_DOESNT_EXIST_CREATING.en.txt b/src/locale/TYPE_DOESNT_EXIST_CREATING.en.txt new file mode 100644 index 0000000..d7eb7d0 --- /dev/null +++ b/src/locale/TYPE_DOESNT_EXIST_CREATING.en.txt @@ -0,0 +1 @@ +Type "%s" doesn't exist yet, creating new section with it. diff --git a/src/locale/TYPE_DOESNT_EXIST_CREATING.eo.txt b/src/locale/TYPE_DOESNT_EXIST_CREATING.eo.txt new file mode 100644 index 0000000..d7eb7d0 --- /dev/null +++ b/src/locale/TYPE_DOESNT_EXIST_CREATING.eo.txt @@ -0,0 +1 @@ +Type "%s" doesn't exist yet, creating new section with it. diff --git a/src/locale/TYPE_DOESNT_EXIST_CREATING.es.txt b/src/locale/TYPE_DOESNT_EXIST_CREATING.es.txt new file mode 100644 index 0000000..d7eb7d0 --- /dev/null +++ b/src/locale/TYPE_DOESNT_EXIST_CREATING.es.txt @@ -0,0 +1 @@ +Type "%s" doesn't exist yet, creating new section with it. diff --git a/src/locale/TYPE_DOESNT_EXIST_CREATING.fr.txt b/src/locale/TYPE_DOESNT_EXIST_CREATING.fr.txt new file mode 100644 index 0000000..d7eb7d0 --- /dev/null +++ b/src/locale/TYPE_DOESNT_EXIST_CREATING.fr.txt @@ -0,0 +1 @@ +Type "%s" doesn't exist yet, creating new section with it. diff --git a/src/locale/TYPE_DOESNT_EXIST_CREATING.pt.txt b/src/locale/TYPE_DOESNT_EXIST_CREATING.pt.txt new file mode 100644 index 0000000..d7eb7d0 --- /dev/null +++ b/src/locale/TYPE_DOESNT_EXIST_CREATING.pt.txt @@ -0,0 +1 @@ +Type "%s" doesn't exist yet, creating new section with it. diff --git a/src/locale/UNEDITED_ENTRY.en.txt b/src/locale/UNEDITED_ENTRY.en.txt new file mode 100644 index 0000000..ed413d0 --- /dev/null +++ b/src/locale/UNEDITED_ENTRY.en.txt @@ -0,0 +1 @@ +Abandoning unedited entry. diff --git a/src/locale/UNEDITED_ENTRY.eo.txt b/src/locale/UNEDITED_ENTRY.eo.txt new file mode 100644 index 0000000..ed413d0 --- /dev/null +++ b/src/locale/UNEDITED_ENTRY.eo.txt @@ -0,0 +1 @@ +Abandoning unedited entry. diff --git a/src/locale/UNEDITED_ENTRY.es.txt b/src/locale/UNEDITED_ENTRY.es.txt new file mode 100644 index 0000000..ed413d0 --- /dev/null +++ b/src/locale/UNEDITED_ENTRY.es.txt @@ -0,0 +1 @@ +Abandoning unedited entry. diff --git a/src/locale/UNEDITED_ENTRY.fr.txt b/src/locale/UNEDITED_ENTRY.fr.txt new file mode 100644 index 0000000..ed413d0 --- /dev/null +++ b/src/locale/UNEDITED_ENTRY.fr.txt @@ -0,0 +1 @@ +Abandoning unedited entry. diff --git a/src/locale/UNEDITED_ENTRY.pt.txt b/src/locale/UNEDITED_ENTRY.pt.txt new file mode 100644 index 0000000..ed413d0 --- /dev/null +++ b/src/locale/UNEDITED_ENTRY.pt.txt @@ -0,0 +1 @@ +Abandoning unedited entry. diff --git a/src/locale/UNREGISTERED_TYPE.en.txt b/src/locale/UNREGISTERED_TYPE.en.txt new file mode 100644 index 0000000..8c12971 --- /dev/null +++ b/src/locale/UNREGISTERED_TYPE.en.txt @@ -0,0 +1 @@ +Unregistered type: %s diff --git a/src/locale/UNREGISTERED_TYPE.eo.txt b/src/locale/UNREGISTERED_TYPE.eo.txt new file mode 100644 index 0000000..8c12971 --- /dev/null +++ b/src/locale/UNREGISTERED_TYPE.eo.txt @@ -0,0 +1 @@ +Unregistered type: %s diff --git a/src/locale/UNREGISTERED_TYPE.es.txt b/src/locale/UNREGISTERED_TYPE.es.txt new file mode 100644 index 0000000..8c12971 --- /dev/null +++ b/src/locale/UNREGISTERED_TYPE.es.txt @@ -0,0 +1 @@ +Unregistered type: %s diff --git a/src/locale/UNREGISTERED_TYPE.fr.txt b/src/locale/UNREGISTERED_TYPE.fr.txt new file mode 100644 index 0000000..8c12971 --- /dev/null +++ b/src/locale/UNREGISTERED_TYPE.fr.txt @@ -0,0 +1 @@ +Unregistered type: %s diff --git a/src/locale/UNREGISTERED_TYPE.pt.txt b/src/locale/UNREGISTERED_TYPE.pt.txt new file mode 100644 index 0000000..8c12971 --- /dev/null +++ b/src/locale/UNREGISTERED_TYPE.pt.txt @@ -0,0 +1 @@ +Unregistered type: %s diff --git a/src/locale/USAGE.en.txt b/src/locale/USAGE.en.txt new file mode 100644 index 0000000..fad86bd --- /dev/null +++ b/src/locale/USAGE.en.txt @@ -0,0 +1,4 @@ +Usage: + td [-c] [-t TYPE] [-m MESSAGE] + td [-HlL] + td [-hV] diff --git a/src/locale/USAGE.eo.txt b/src/locale/USAGE.eo.txt new file mode 100644 index 0000000..fad86bd --- /dev/null +++ b/src/locale/USAGE.eo.txt @@ -0,0 +1,4 @@ +Usage: + td [-c] [-t TYPE] [-m MESSAGE] + td [-HlL] + td [-hV] diff --git a/src/locale/USAGE.es.txt b/src/locale/USAGE.es.txt new file mode 100644 index 0000000..fad86bd --- /dev/null +++ b/src/locale/USAGE.es.txt @@ -0,0 +1,4 @@ +Usage: + td [-c] [-t TYPE] [-m MESSAGE] + td [-HlL] + td [-hV] diff --git a/src/locale/USAGE.fr.txt b/src/locale/USAGE.fr.txt new file mode 100644 index 0000000..fad86bd --- /dev/null +++ b/src/locale/USAGE.fr.txt @@ -0,0 +1,4 @@ +Usage: + td [-c] [-t TYPE] [-m MESSAGE] + td [-HlL] + td [-hV] diff --git a/src/locale/USAGE.pt.txt b/src/locale/USAGE.pt.txt new file mode 100644 index 0000000..fad86bd --- /dev/null +++ b/src/locale/USAGE.pt.txt @@ -0,0 +1,4 @@ +Usage: + td [-c] [-t TYPE] [-m MESSAGE] + td [-HlL] + td [-hV] diff --git a/src/locale/load-messages.sh.in b/src/locale/load-messages.sh.in new file mode 100644 index 0000000..6a3ffef --- /dev/null +++ b/src/locale/load-messages.sh.in @@ -0,0 +1,35 @@ +#!/bin/sh +set -eu + +get_lang() { + # LC_MESSAGES="ll_CC.CODESET@modifier" -> ll_CC, where quotes are + # optional + locale 2>/dev/null | + grep ^LC_MESSAGES | + cut -d. -f1 | + cut -d\" -f2 | + cut -d= -f2 +} + +locpath() { + lang="$1" + printf '@LOCALEDIR@/%s/LC_MESSAGES/@NAME@/%s.sh' "$lang" "$lang" +} + +ll_CC="$(get_lang)" +ll="$(echo "$ll_CC" | cut -d_ -f1)" + +if [ -r "$(locpath "$ll")" ]; then + # shellcheck source=/dev/null + . "$(locpath "$ll")" +fi + +if [ -r "$(locpath "$ll_CC")" ]; then + # shellcheck source=/dev/null + . "$(locpath "$ll_CC")" +fi + +# locale hierarchy: +# 1. the language+country specific message +# 2. the language specific message +# 3. the default fallback value |