Skip to content

Commit

Permalink
2 directory names / script names differed only in case
Browse files Browse the repository at this point in the history
which is a problem on case insensitive filesystems...
  • Loading branch information
phyver committed Aug 13, 2024
1 parent 746f72e commit 82bd704
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 19 deletions.
4 changes: 2 additions & 2 deletions i18n/en.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# AUTOMATICALLY GENERATED -- DO NOT EDIT
#, sh-format
msgid "$GSH_ROOT/i18n/gameshell-HELP/en.txt"
msgstr "$GSH_ROOT/i18n/gameshell-HELP/en.txt"
msgid "$GSH_ROOT/i18n/gameshell-full-help/en.txt"
msgstr "$GSH_ROOT/i18n/gameshell-full-help/en.txt"

#, sh-format
msgid "$GSH_ROOT/i18n/gameshell-help/en.txt"
Expand Down
4 changes: 2 additions & 2 deletions i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ msgstr "Content-Type: text/plain; charset=UTF-8\n"
"Plural-Forms: nplurals=2; plural=n>1;\n"

#, sh-format
msgid "$GSH_ROOT/i18n/gameshell-HELP/en.txt"
msgstr "$GSH_ROOT/i18n/gameshell-HELP/fr.txt"
msgid "$GSH_ROOT/i18n/gameshell-full-help/en.txt"
msgstr "$GSH_ROOT/i18n/gameshell-full-help/fr.txt"

#, sh-format
msgid "$GSH_ROOT/i18n/gameshell-help/en.txt"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ msgstr "Project-Id-Version: \n"
"X-Generator: Lokalize 22.04.1\n"

#, sh-format
msgid "$GSH_ROOT/i18n/gameshell-HELP/en.txt"
msgstr "$GSH_ROOT/i18n/gameshell-HELP/it.txt"
msgid "$GSH_ROOT/i18n/gameshell-full-help/en.txt"
msgstr "$GSH_ROOT/i18n/gameshell-full-help/it.txt"

#, sh-format
msgid "$GSH_ROOT/i18n/gameshell-help/en.txt"
Expand Down
2 changes: 1 addition & 1 deletion i18n/template.pot
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#, sh-format
msgid "$GSH_ROOT/i18n/gameshell-HELP/en.txt"
msgid "$GSH_ROOT/i18n/gameshell-full-help/en.txt"
msgstr ""

#, sh-format
Expand Down
19 changes: 19 additions & 0 deletions lib/gsh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,17 @@ _gsh_test() {
}


###
# don't put the next 2 functions in $GSH_ROOT/scripts/_gsh_help / _gsh_HELP
# because it doesn't work on case insensitive filesystems
_gsh_help() {
parchment "$(eval_gettext '$GSH_ROOT/i18n/gameshell-help/en.txt')" Parchment2 | pager
}

_gsh_HELP() {
parchment "$(eval_gettext '$GSH_ROOT/i18n/gameshell-full-help/en.txt')" Parchment2 | pager
}

gsh() {
local _TEXTDOMAIN=$TEXTDOMAIN
export TEXTDOMAIN="gsh"
Expand Down Expand Up @@ -708,6 +719,14 @@ gsh() {
__gsh_start "$@"
;;

"help")
_gsh_help
;;

"HELP")
_gsh_HELP
;;

*)
if command -v "_gsh_$cmd" >/dev/null
then
Expand Down
6 changes: 0 additions & 6 deletions scripts/_gsh_HELP

This file was deleted.

6 changes: 0 additions & 6 deletions scripts/_gsh_help

This file was deleted.

0 comments on commit 82bd704

Please sign in to comment.