Re: stock buttons and languages
| From: | Ivan Rodriguez | Date: | Thu, 12 Jan 2006 06:58:56 +0000 |
| Subject: | Re: stock buttons and languages | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6524@lists.php.net to get a copy of this message | ||
Hi Horacio
You can do this:
$quit = new GtkImageMenuItem(Gtk::STOCK_QUIT, $this->accel_group);
$quit->get_child()->parse_uline('_Cerrar');
$quit->connect_object('activate', array('gtk', 'main_quit'));
If you have your configuration in spanish the text appears automatically in
the language that you have by defect
On 1/12/06, Anant Narayanan <anant@kix.in> wrote:
>
> Hi Horacio,
>
> > $this->button1 = new GtkButton();
> > $this->button1->set_label('gtk-open');
> > $this->button1->set_use_stock(True);
>
> You have not mentioned anywhere in your program that the stock button
> must be Spanish?! Also, I don't think Gtk+ itself will transalate
> stock icons for you. You must either manually set the label of the
> button with set_label() or use Pango to set spanish markup for your
> labels.
>
> Of course, I'm not a guru, there might be better alternatives... Like
> a stock icon set that is already in Spanish.
>
> Regards,
> --
> Anant Narayanan
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>