X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;ds=sidebyside;f=handlers%2F40_edit_attachment.sh;h=2696a4d368ef78710ddc506339adc31cbd04a88a;hb=a26c541b845f86aa37b872d06ab3bf51e8206be8;hp=97a4b9df2d8825be71512714c98f6e8fbdd193cf;hpb=c895cb5c92f3b1ab8c61821d79ba2c1438eec304;p=shellwiki
diff --git a/handlers/40_edit_attachment.sh b/handlers/40_edit_attachment.sh
index 97a4b9d..2696a4d 100755
--- a/handlers/40_edit_attachment.sh
+++ b/handlers/40_edit_attachment.sh
@@ -163,51 +163,51 @@ elif [ "$action" = rename ]; then
if [ "$success" -a "$fail" ]; then
printf "%s\r\n" "Status: 500 Internal Server Error"
- theme_page - "Attachment rename" <<-EOF
-
Some files could not be renamed
- Successfully renamed:
+ theme_page - "$(_ "Attachment rename")" <<-EOF
+ $(_ Some files could not be renamed)
+ $(_ Successfully renamed:)
$(printf %s "$success" |while read html; do
printf '- %s -> %s
' \
"${html%%/*}" "${html##*/}"
done)
- Errors:
+ $(_ Errors:)
$(printf %s "$fail" |while read html; do
printf '- %s -> %s
' \
"${html%%/*}" "${html##*/}"
done)
- OK
+ $(_ OK)
EOF
exit 0
elif [ "$fail" ]; then
printf "%s\r\n" "Status: 500 Internal Server Error"
- theme_page - "Attachment rename" <<-EOF
- Files could not be renamed
+ theme_page - "$(_ "Attachment rename")" <<-EOF
+ $(_ "Files could not be renamed")
$(printf %s "$fail" |while read html; do
printf '- %s -> %s
' \
"${html%%/*}" "${html##*/}"
done)
- OK
+ $(_ OK)
EOF
exit 0
elif [ "$success" ]; then
printf 'Refresh: %i\r\n' 4
theme_page - "Attachment rename" <<-EOF
- Files were renamed
+ $(_ Files were renamed)
$(printf %s "$success" |while read html; do
printf '- %s -> %s
' \
"${html%%/*}" "${html##*/}"
done)
- OK
+ $(_ OK)
EOF
exit 0