emit [encoding] tags around the menus
This commit is contained in:
parent
b38f4e931f
commit
9ce423ab5f
2 changed files with 52 additions and 0 deletions
|
@ -1,5 +1,10 @@
|
||||||
(Format: Year/Month/Day)
|
(Format: Year/Month/Day)
|
||||||
Changes for 1.0.0:
|
Changes for 1.0.0:
|
||||||
|
*07/03/31:
|
||||||
|
* Make fluxbox-generate_menu emit [encoding] tags around all of its
|
||||||
|
menus. Please check that it is the right encoding, I had to guess
|
||||||
|
some as it wasn't recorded (Simon)
|
||||||
|
util/fluxbox-generate_menu.in
|
||||||
*07/03/30:
|
*07/03/30:
|
||||||
* Added fi_FI support (Thanks Pasi Juvonen, loudvr at yahoo ca)
|
* Added fi_FI support (Thanks Pasi Juvonen, loudvr at yahoo ca)
|
||||||
nls/fi_FI/*, util/fluxbox-generate_menu.in
|
nls/fi_FI/*, util/fluxbox-generate_menu.in
|
||||||
|
|
|
@ -555,6 +555,9 @@ rm -f ${MENUFILENAME}.tmp
|
||||||
}
|
}
|
||||||
|
|
||||||
# menu defaults (if translation forget to set one of them)
|
# menu defaults (if translation forget to set one of them)
|
||||||
|
|
||||||
|
MENU_ENCODING=UTF-8 # (its also ascii)
|
||||||
|
|
||||||
ABOUTITEM='About'
|
ABOUTITEM='About'
|
||||||
BACKGROUNDMENU='Backgrounds'
|
BACKGROUNDMENU='Backgrounds'
|
||||||
BACKGROUNDMENUTITLE='Set the Background'
|
BACKGROUNDMENUTITLE='Set the Background'
|
||||||
|
@ -606,6 +609,8 @@ case ${LC_ALL} in
|
||||||
# $ diff u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
|
# $ diff u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
|
||||||
# email fbgm.diff to han@mijncomputer.nl
|
# email fbgm.diff to han@mijncomputer.nl
|
||||||
|
|
||||||
|
MENU_ENCODING=KOI8-R
|
||||||
|
|
||||||
BACKGROUNDMENU='ïÂÏÉ'
|
BACKGROUNDMENU='ïÂÏÉ'
|
||||||
BACKGROUNDMENUTITLE='õÓÔÁÎÏ×ÉÔØ ÏÂÏÉ'
|
BACKGROUNDMENUTITLE='õÓÔÁÎÏ×ÉÔØ ÏÂÏÉ'
|
||||||
BROWSERMENU='âÒÁÕÚÅÒÙ'
|
BROWSERMENU='âÒÁÕÚÅÒÙ'
|
||||||
|
@ -642,6 +647,9 @@ case ${LC_ALL} in
|
||||||
;;
|
;;
|
||||||
|
|
||||||
cs_CZ.ISO*) # Czech locales (ISO-8859-2 encodings)
|
cs_CZ.ISO*) # Czech locales (ISO-8859-2 encodings)
|
||||||
|
|
||||||
|
MENU_ENCODING=ISO-8859-2
|
||||||
|
|
||||||
ABOUTITEM='O programu...'
|
ABOUTITEM='O programu...'
|
||||||
BACKGROUNDMENU='Pozadí'
|
BACKGROUNDMENU='Pozadí'
|
||||||
BACKGROUNDMENUTITLE='Nastavení pozadí'
|
BACKGROUNDMENUTITLE='Nastavení pozadí'
|
||||||
|
@ -684,6 +692,9 @@ case ${LC_ALL} in
|
||||||
;;
|
;;
|
||||||
|
|
||||||
de_DE*) # german locales
|
de_DE*) # german locales
|
||||||
|
|
||||||
|
MENU_ENCODING=ISO-8859-15
|
||||||
|
|
||||||
BACKGROUNDMENU='Hintergrundbilder'
|
BACKGROUNDMENU='Hintergrundbilder'
|
||||||
BACKGROUNDMENUTITLE='Hintergrundbild setzen'
|
BACKGROUNDMENUTITLE='Hintergrundbild setzen'
|
||||||
BROWSERMENU='Internet-Browser'
|
BROWSERMENU='Internet-Browser'
|
||||||
|
@ -725,6 +736,8 @@ case ${LC_ALL} in
|
||||||
# $ diff u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
|
# $ diff u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
|
||||||
# email fbgm.diff to han@mijncomputer.nl
|
# email fbgm.diff to han@mijncomputer.nl
|
||||||
|
|
||||||
|
MENU_ENCODING=ISO-8859-1
|
||||||
|
|
||||||
BACKGROUNDMENU='Bakgrunder'
|
BACKGROUNDMENU='Bakgrunder'
|
||||||
BACKGROUNDMENUTITLE='Sätt bakgrund'
|
BACKGROUNDMENUTITLE='Sätt bakgrund'
|
||||||
BROWSERMENU='Webbläsare'
|
BROWSERMENU='Webbläsare'
|
||||||
|
@ -762,6 +775,9 @@ case ${LC_ALL} in
|
||||||
XUTILSMENU='X-program'
|
XUTILSMENU='X-program'
|
||||||
;;
|
;;
|
||||||
nl_*) #Nederlandse locales
|
nl_*) #Nederlandse locales
|
||||||
|
|
||||||
|
MENU_ENCODING=ISO-8859-15
|
||||||
|
|
||||||
BACKGROUNDMENU='Achtergrond'
|
BACKGROUNDMENU='Achtergrond'
|
||||||
BACKGROUNDMENUTITLE='Kies een achtergrond'
|
BACKGROUNDMENUTITLE='Kies een achtergrond'
|
||||||
BROWSERMENU='Browsers'
|
BROWSERMENU='Browsers'
|
||||||
|
@ -797,6 +813,9 @@ case ${LC_ALL} in
|
||||||
XUTILSMENU='X-Gereedschap'
|
XUTILSMENU='X-Gereedschap'
|
||||||
;;
|
;;
|
||||||
fi_FI*) #Finnish locales
|
fi_FI*) #Finnish locales
|
||||||
|
|
||||||
|
MENU_ENCODING=ISO-8859-1
|
||||||
|
|
||||||
ABOUTMENU='Tietoja ohjelmasta'
|
ABOUTMENU='Tietoja ohjelmasta'
|
||||||
ABOUTITEM='Tietoja ohjelmasta'
|
ABOUTITEM='Tietoja ohjelmasta'
|
||||||
BACKGROUNDMENU='Taustakuvat'
|
BACKGROUNDMENU='Taustakuvat'
|
||||||
|
@ -840,6 +859,8 @@ case ${LC_ALL} in
|
||||||
# $ diff u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
|
# $ diff u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
|
||||||
# email fbgm.diff to han@mijncomputer.nl
|
# email fbgm.diff to han@mijncomputer.nl
|
||||||
|
|
||||||
|
MENU_ENCODING=eucJP
|
||||||
|
|
||||||
BACKGROUNDMENU='ÇØ·Ê'
|
BACKGROUNDMENU='ÇØ·Ê'
|
||||||
BACKGROUNDMENUTITLE='ÇطʤÎÀßÄê'
|
BACKGROUNDMENUTITLE='ÇطʤÎÀßÄê'
|
||||||
BROWSERMENU='¥Ö¥é¥¦¥¶'
|
BROWSERMENU='¥Ö¥é¥¦¥¶'
|
||||||
|
@ -881,6 +902,8 @@ case ${LC_ALL} in
|
||||||
# $ diff u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
|
# $ diff u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
|
||||||
# email fbgm.diff to han@mijncomputer.nl
|
# email fbgm.diff to han@mijncomputer.nl
|
||||||
|
|
||||||
|
MENU_ENCODING=ISO-8859-15
|
||||||
|
|
||||||
BACKGROUNDMENU="Fond d'écran"
|
BACKGROUNDMENU="Fond d'écran"
|
||||||
BACKGROUNDMENUTITLE="Changer le fond d'écran"
|
BACKGROUNDMENUTITLE="Changer le fond d'écran"
|
||||||
BROWSERMENU='Navigateurs'
|
BROWSERMENU='Navigateurs'
|
||||||
|
@ -916,6 +939,9 @@ case ${LC_ALL} in
|
||||||
XUTILSMENU='Outils X'
|
XUTILSMENU='Outils X'
|
||||||
;;
|
;;
|
||||||
it_IT*) # italian locales
|
it_IT*) # italian locales
|
||||||
|
|
||||||
|
MENU_ENCODING=ISO-8859-1
|
||||||
|
|
||||||
BACKGROUNDMENU='Sfondi'
|
BACKGROUNDMENU='Sfondi'
|
||||||
BACKGROUNDMENUTITLE='Imposta lo sfondo'
|
BACKGROUNDMENUTITLE='Imposta lo sfondo'
|
||||||
BROWSERMENU='Browsers'
|
BROWSERMENU='Browsers'
|
||||||
|
@ -957,6 +983,8 @@ case ${LC_ALL} in
|
||||||
# $ diff u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
|
# $ diff u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
|
||||||
# email fbgm.diff to han@mijncomputer.nl
|
# email fbgm.diff to han@mijncomputer.nl
|
||||||
|
|
||||||
|
MENU_ENCODING=ISO-8859-15
|
||||||
|
|
||||||
BACKGROUNDMENU='Fundaluri'
|
BACKGROUNDMENU='Fundaluri'
|
||||||
BACKGROUNDMENUTITLE='Alege fundalul'
|
BACKGROUNDMENUTITLE='Alege fundalul'
|
||||||
BROWSERMENU='Navigatoare'
|
BROWSERMENU='Navigatoare'
|
||||||
|
@ -994,6 +1022,8 @@ case ${LC_ALL} in
|
||||||
;;
|
;;
|
||||||
es_ES*) # spanish locales
|
es_ES*) # spanish locales
|
||||||
|
|
||||||
|
MENU_ENCODING=ISO-8859-15
|
||||||
|
|
||||||
ABOUTITEM='Acerca'
|
ABOUTITEM='Acerca'
|
||||||
BACKGROUNDMENU='Fondos'
|
BACKGROUNDMENU='Fondos'
|
||||||
BACKGROUNDMENUTITLE='Seleccionar Fondo'
|
BACKGROUNDMENUTITLE='Seleccionar Fondo'
|
||||||
|
@ -1041,6 +1071,8 @@ case ${LC_ALL} in
|
||||||
# $ diff u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
|
# $ diff u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
|
||||||
# email fbgm.diff to han@mijncomputer.nl
|
# email fbgm.diff to han@mijncomputer.nl
|
||||||
|
|
||||||
|
MENU_ENCODING=ISO-8859-2
|
||||||
|
|
||||||
BACKGROUNDMENU='Tapety'
|
BACKGROUNDMENU='Tapety'
|
||||||
BACKGROUNDMENUTITLE='Ustaw tapetê'
|
BACKGROUNDMENUTITLE='Ustaw tapetê'
|
||||||
BROWSERMENU='Przegl±darki'
|
BROWSERMENU='Przegl±darki'
|
||||||
|
@ -1077,6 +1109,9 @@ case ${LC_ALL} in
|
||||||
XUTILSMENU='Narzêdzia X'
|
XUTILSMENU='Narzêdzia X'
|
||||||
;;
|
;;
|
||||||
pt_PT*) # Portuguese locales
|
pt_PT*) # Portuguese locales
|
||||||
|
|
||||||
|
MENU_ENCODING=ISO-8859-1
|
||||||
|
|
||||||
ABOUTMENU="Sobre"
|
ABOUTMENU="Sobre"
|
||||||
BACKGROUNDMENU='Imagens de Fundo'
|
BACKGROUNDMENU='Imagens de Fundo'
|
||||||
BACKGROUNDMENUTITLE='Definir Imagem de Fundo'
|
BACKGROUNDMENUTITLE='Definir Imagem de Fundo'
|
||||||
|
@ -1119,6 +1154,9 @@ case ${LC_ALL} in
|
||||||
XUTILSMENU='Utilitários X'
|
XUTILSMENU='Utilitários X'
|
||||||
;;
|
;;
|
||||||
nb_NO*) # Norwegian locales
|
nb_NO*) # Norwegian locales
|
||||||
|
|
||||||
|
MENU_ENCODING=UTF-8
|
||||||
|
|
||||||
ABOUTITEM='Om'
|
ABOUTITEM='Om'
|
||||||
BACKGROUNDMENU='Bakgrunner'
|
BACKGROUNDMENU='Bakgrunner'
|
||||||
BACKGROUNDMENUTITLE='Velg bakgrunn'
|
BACKGROUNDMENUTITLE='Velg bakgrunn'
|
||||||
|
@ -1515,6 +1553,10 @@ EOF
|
||||||
|
|
||||||
echo "[begin] (${MENUTITLE})" >> ${MENUFILENAME}
|
echo "[begin] (${MENUTITLE})" >> ${MENUFILENAME}
|
||||||
|
|
||||||
|
if [ -n "$MENU_ENCODING" ]; then
|
||||||
|
append_menu "[encoding] {$MENU_ENCODING}"
|
||||||
|
fi
|
||||||
|
|
||||||
append "[exec] (${DEFAULT_TERMNAME}) {${DEFAULT_TERM}}"
|
append "[exec] (${DEFAULT_TERMNAME}) {${DEFAULT_TERM}}"
|
||||||
|
|
||||||
case "$DEFAULT_BROWSERNAME" in
|
case "$DEFAULT_BROWSERNAME" in
|
||||||
|
@ -1830,6 +1872,11 @@ append_submenu "${FBSETTINGSMENU}"
|
||||||
append "[exit] (${EXITITEM})"
|
append "[exit] (${EXITITEM})"
|
||||||
|
|
||||||
append_menu_end
|
append_menu_end
|
||||||
|
|
||||||
|
if [ -n "$MENU_ENCODING" ]; then
|
||||||
|
append_menu "[endencoding]"
|
||||||
|
fi
|
||||||
|
|
||||||
append_menu_end
|
append_menu_end
|
||||||
|
|
||||||
# this function removes empty menu items. It can not yet remove nested
|
# this function removes empty menu items. It can not yet remove nested
|
||||||
|
|
Loading…
Reference in a new issue