Ahh ok, I understand, I though it couldn't be done because of Tk limitations, not because of internationalisation and fixed index... I guess you could have &one &two t&hree &un &deux &trois
in the lang file, and you would : -label [string map {&& & & ""} [trans menuname]] -underline [string first [trans menuname] '&'] or something similar that would actually work (the string map won't really work) This is I think how it's done everywhere, right ? but we'll need "menu specific translation", I mean we'd have help Help help_menu &Help because we might use [trans help] somewhere else... KaKaRoTo On Thu, Mar 02, 2006 at 09:22:18PM +0000, Tom Jenkins wrote: > Youness Alaoui wrote: > > >Maybe, but still, it keeps a documentation on your work so later on we can > >always know which are the incompatible options.. > > > > > Spose. Done > > >btw, what's the problem with underline/languages, can't we just use a > >tag/font with "-underline 1" > > > > > The -underline option gives the index of the label to underline, eg: > -label "One" -underline 0 > will show "One" with the "O" underlined. > So, consider the following case: > Menu in french: > -label un -underline 0 > -label deux -underline 0 > -label trois -underline 0 > > will work fine, you'll have the "u" underline on "un", the "d" on "duex" > and the "t" on "trois" > Now the same menu in english: > -label one -underline 0 > -label two -underline 0 > -label three -underline 0 > NOW you have the "o" underlined on "one" (fine), but you have the "t" on > two underlined AND the "t" on "three" underlined. If translators want to > add underlining, they have to check they aren't gonna make any conflicts > like this, and it'll be lots of work for them... (I guess, anyway) > > >KKRT > > > > > >On Wed, Mar 01, 2006 at 05:10:27PM +0000, Tom Jenkins wrote: > > > > > >>Youness Alaoui wrote: > >> > >> > >> > >>>Tom, remember to add : > >>>#TODO implement/finish this.. > >>> > >>>not important, but would be good :) > >>> > >>> > >>> > >>> > >>It won't be any use unless we figure out a good way to handle underlines > >>for different languages.... > >> > >> > >> > >>>KKRT > >>> > >>>----- Forwarded message from Tom Jenkins <[EMAIL PROTECTED]> > >>>----- > >>> > >>>From: Tom Jenkins <[EMAIL PROTECTED]> > >>>To: [EMAIL PROTECTED] > >>>Subject: [Amsn-commits] msn/utils/pixmapmenu entries.tcl,1.3,1.4 > >>> > >>>In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16007 > >>> > >>>Modified Files: > >>> entries.tcl > >>>Log Message: > >>>Added -underline options to entries to keep tk compatibility (options > >>>does nothing though) > >>> > >>> > >>>Index: entries.tcl > >>> > >>> > >>>------------------------------------------------------- > >>>This SF.Net email is sponsored by xPML, a groundbreaking scripting > >>>language > >>>that extends applications into web and mobile media. Attend the live > >>>webcast > >>>and join the prime developer group breaking into this new coding > >>>territory! > >>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > >>>_______________________________________________ > >>>Amsn-devel mailing list > >>>Amsn-devel@lists.sourceforge.net > >>>https://lists.sourceforge.net/lists/listinfo/amsn-devel > >>> > >>> > >>> > >>> > >>> > >>-- > >>Don't just be a drop in the ocean. Join with us and make some waves. Sign > >>up to join us on our year-long journey and act to defend our oceans. It's > >>free. > >> > >>http://oceans.greenpeace.org/defenders > >> > >> > >> > >> > >> > >>___________________________________________________________ > >>Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with > >>voicemail http://uk.messenger.yahoo.com > >> > >> > >> > >>------------------------------------------------------- > >>This SF.Net email is sponsored by xPML, a groundbreaking scripting > >>language > >>that extends applications into web and mobile media. Attend the live > >>webcast > >>and join the prime developer group breaking into this new coding > >>territory! > >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > >>_______________________________________________ > >>Amsn-devel mailing list > >>Amsn-devel@lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/amsn-devel > >> > >> > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by xPML, a groundbreaking scripting language > >that extends applications into web and mobile media. Attend the live > >webcast > >and join the prime developer group breaking into this new coding territory! > >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > >_______________________________________________ > >Amsn-devel mailing list > >Amsn-devel@lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/amsn-devel > > > > > > > > > -- > Don't just be a drop in the ocean. Join with us and make some waves. Sign > up to join us on our year-long journey and act to defend our oceans. It's > free. > > http://oceans.greenpeace.org/defenders > > > > ___________________________________________________________ > Yahoo! Photos ? NEW, now offering a quality print service from just 8p a > photo http://uk.photos.yahoo.com > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Amsn-devel mailing list > Amsn-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/amsn-devel ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel