Skip to content

Commit

Permalink
Place PPM scripts under the same TEXTDOMAIN. Issue #591
Browse files Browse the repository at this point in the history
  • Loading branch information
mavrothal committed Oct 7, 2015
1 parent 052a878 commit d1c59c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
6 changes: 1 addition & 5 deletions woof-code/rootfs-skeleton/usr/local/petget/installmodes.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

export TEXTDOMAIN=petget__installmodes.sh
export TEXTDOMAIN=petget___pkg_chooser.sh
export OUTPUT_CHARSET=UTF-8

[ "`whoami`" != "root" ] && exec sudo -A ${0} ${@} #110505
Expand Down Expand Up @@ -404,10 +404,6 @@ wait_func () {
}
export -f wait_func

# ATTENTION TRANSLATORS: The translation in the variables below must be *IDENTICAL*
# to the point of spacing, capitalization and punctuation, with the ones used in
# pkg_chooser.sh, or PPM will break.
# It is highly recommended to copy/paste the corresponding strings from there.
case "$1" in
check_total_size)
touch /tmp/install_quietly #avoid splashes
Expand Down
6 changes: 1 addition & 5 deletions woof-code/rootfs-skeleton/usr/local/petget/removemodes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#set -x ; mkdir -p /root/LOGs; NAME=$(basename "$0"); exec 1>> /root/LOGs/"$NAME".log 2>&1

export TEXTDOMAIN=petget__removemodes.sh
export TEXTDOMAIN=petget___pkg_chooser.sh
export OUTPUT_CHARSET=UTF-8

[ "`whoami`" != "root" ] && exec sudo -A ${0} ${@} #110505
Expand Down Expand Up @@ -186,10 +186,6 @@ delete_out_entry () {
}
export -f delete_out_entry

# ATTENTION TRANSLATORS: The translation in the variables below must be *IDENTICAL*
# to the point of spacing, capitalization and punctuation, with the ones used in
# pkg_chooser.sh, or PPM will break.
# It is highly recommended to copy/paste the corresponding strings from there.
case "$1" in
"$(gettext 'Auto remove')") auto_remove;;
"$(gettext 'Step by step remove (classic mode)')") classic_remove;;
Expand Down
2 changes: 1 addition & 1 deletion woof-code/rootfs-skeleton/usr/local/petget/ui_Classic
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#130330 GUI filter. see also filterpkgs.sh, pkg_chooser.sh, ui_Ziggy.
#130331 more GUI filter options.

export TEXTDOMAIN=petget___ui_Classic
export TEXTDOMAIN=petget___pkg_chooser.sh
export OUTPUT_CHARSET=UTF-8

# Remove any 'auto' flags
Expand Down

0 comments on commit d1c59c0

Please sign in to comment.