clients/: add lab-exit to display an exit window with labnag.

closes #917
Summary follows:
- src/menu/menu.c: add `leave` action to call lab-exit.
- clients/meson.build: add install routine for lab-exit
and lab-sensible-terminal.
- meson.build remove lab-sensible-terminal routine re the comment.
- po/labwc.pot: rebuild with new xgettext commands.
- po/it.po: add translations for lab-exit and edit my email.
- CONTRIBUTING.md#translations: modify the instructions for coders as
two xgettext commands are needed since we now have two GUI facing
languages that have translatable strings.
This commit is contained in:
01micko 2025-08-30 14:41:20 +10:00
parent 2e9292b7a3
commit ff45d1b363
7 changed files with 146 additions and 93 deletions

27
clients/lab-exit Executable file
View file

@ -0,0 +1,27 @@
#!/bin/sh
# logout with labnag
export TEXTDOMAIN=labwc
export OUTPUT_CHARSET=UTF-8
alias _='gettext'
QUESTION=$(_ 'Are you sure you want to quit Labwc?')
YES=$(_ 'Yes')
NO=$(_ 'No')
labnag \
-f "mono 10"\
-m "$QUESTION"\
-Z " $YES " "labwc -e"\
-Z " $NO "\
--background 00ffff\
--button-background 00ffff\
--border 00ccccaa\
--text 000000\
--button-text 000000\
--button-gap 8\
--button-margin-right 0\
--button-padding 5\
--button-border-size 2\
-t 60