On Tuesday 24 November 2009 23:15:24 Frank Neumann wrote:
> Just googled around a bit, and found a rather helpful resource :-)
> http://tascam.com/products/gigastudio3;9,7,49,19.html
> Particularly: http://tascam.com/i-763-232-128-2-7265AAC4.pdf
> (22MB, 388 pages). In that PDF I at least found the explanations of things
>  like the mentioned "MS Decode", "Sustain defeat" etc (pages 317ff).
> I suppose no developer may look at this or LinuxSampler becomes tainted and
> is no "clean room implementation" anymore :-}.

Depends on whether there are copyright restrictions written in the document. 
If not, worst case would be that the copyright holder would tell us that we 
have to remove the tooltips again that are cited from the document.

> > Volunteers very much appreciated. ;-)
> 
> Hehe.."and I only wanted to make some music" :-).
> Now, I'm not volunteering right away, just curious: If one were to add such
> information to, say, tooltips, what about internationalization? In Qt there
>  is Linguist and the .ts files, how does one handle this for Gtk apps -
>  gettext and friends?

It's quite the same as with Qt. In the cpp source files you see that 
translation relevant strings are passed with a _() function call like:

Gtk::Label entryLabel( _("Add filename extension: "), Gtk::ALIGN_RIGHT);

or

m_VirtKeybVelocityLabelDescr.set_text(_("Note-On Velocity:"));

etc.

So you add strings in the cpp source files that way in the default language 
(English) which shall be translated into other languages. And then you cd into 
the directory with the translation .po files and let them update with gettext:

cd /home/you/cvs/gigedit/po/
make update-po

This will merge new strings from the source files into all .po files for the 
several languages. And then just open the .po file for respective language in a 
text editor and write a translation in the language where there is yet just an 
empty string.

There is however also a drawback compared to Qt. You don't have a convenient 
GUI editor e.g. to add a tooltip. You have to add tooltips by code, like this:

#include <gtkmm/tooltips.h>

...

Gtk::Tooltips tooltips; // member variable of some widget implementation class

...

tooltips.set_tip(spinbutton, _("bla bla"));
...
tooltips.set_tip(checkbutton, _("etc pp"));

And one strange thing is, doing this for combo boxes seems not to have an 
effect. So I wonder whether tooltips for combo boxes are not implemented? Or 
does one have to use another approach for that?

CU
Christian

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Linuxsampler-devel mailing list
Linuxsampler-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel

Reply via email to