Package: fvwm
Version: 1:2.5.16-2
Severity: wishlist
Tags: patch

Error description:

I use private menu files which are localized using the $[gt.some string].

Unforunatly menu-methods are adding $hotkeys which prevent the use of
the gettext function in fvwm.

Attached a patch for the menu-method which prevent this.

This patch is tested since many month and is working perfectly.

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant



-- System Information
Debian Release: 4.0
Kernel Version: Linux devel.private 2.4.27-2-386 #1 Wed Aug 17 09:33:35 UTC 
2005 i686 GNU/Linux


Versions of the packages fvwm depends on:
ii  debconf        1.5.3          Debian configuration management system
ii  gdk-imlib11    1.9.14-30      imaging library for use with gtk
ii  libc6          2.3.6-15       GNU C Library: Shared libraries
ii  libfontconfig1 2.3.2-7        generic font configuration library - runtime
ii  libfreetype6   2.2.1-2        FreeType 2 font engine, shared library files
ii  libfribidi0    0.10.7-3       Free Implementation of the Unicode BiDi algo
ii  libglib1.2     1.2.10-10.1    The GLib library of C routines
ii  libgtk1.2      1.2.10-18      The GIMP Toolkit set of widgets for X
ii  libice6        1.0.0-3        X11 Inter-Client Exchange library
ii  libncurses5    5.5-2          Shared libraries for terminal handling
ii  libpng12-0     1.2.8rel-5.2   PNG library - runtime
ii  libreadline5   5.1-7          GNU readline and history libraries, run-time
ii  librplay3      3.3.2-11       Shared libraries for the rplay network audio
ii  libsm6         1.0.0-4        X11 Session Management library
ii  libstroke0     0.5.1-5        mouse strokes library -- runtime files
ii  libx11-6       1.0.0-8        X11 client-side library
ii  libxext6       1.0.0-4        X11 miscellaneous extension library
ii  libxft2        2.1.8.2-8      FreeType-based font drawing library for X
ii  libxi6         1.0.0-5        X11 Input extension library
ii  libxinerama1   1.0.1-4.1      X11 Xinerama extension library
ii  libxpm4        3.5.4.2-3      X11 pixmap library
ii  libxrender1    0.9.0.2-4      X Rendering Extension client library
ii  zlib1g         1.2.3-13       compression library - runtime
debconf Version: 1.5.3 (Provides virtual package debconf-2.0)
ii  debconf        1.5.3          Debian configuration management system
        ^^^ (Provides virtual package debconf-2.0)


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)
--- fvwm.orig	2006-12-28 13:29:33.000000000 +0100
+++ fvwm	2006-12-28 13:31:26.000000000 +0100
@@ -9,9 +9,16 @@ compat="menu-1"
 
 outputencoding="LOCALE"
 
+####################################################
+#                                                  #
+#    Modified function, which execute "$hotkey"    #
+#    only, if the title() is NOT LOCALIZED.        #
+#                                                  #
+####################################################
 function start($var,$com)=\
-            "+ \"" escfirst(esc(title(),"\\\""),$hotkey,"&") \
-            cond_surr(icon(),"%","%") "\" " $var " " $com "\n"
+    "+ \"" ifelse(ifneq(replace(title(), "$[gt.", "#"), title(), "GETTEXT"), \
+                  title(), escfirst(esc(title(),"\\\""),$hotkey,"&")) \
+    iffile(icon(), cond_surr(icon(),"%","%")) "\" " $var " " $com "\n"
 
 supported 
   fvwmmodule=  start("Module", $command)
@@ -46,6 +53,6 @@ submenutitle= "+ \"" escfirst(title(),$h
            replacewith($section," ","_") "\"\n"
 genmenu=   "menudefs.hook"
 rootprefix="/etc/X11/fvwm/"
-userprefix="/.fvwm/"
+userprefix=shell("echo -n /${FVWM_USERDIR-.fvwm}")
 treewalk="c(m)"
 mainmenutitle = "Debian Menu"

Attachment: signature.pgp
Description: Digital signature

Reply via email to