Re: Gtk+3 application Internationalization



On Thu, 14 Apr 2016 09:30:10 +0200
Ondrej Tuma <konference webjet cz> wrote:

Where is benefits of this, sorry, stupid decision. When i use Stock
Items, i have my application base translated to all languages which Gtk
have. How can i do that without Stock Items ? I hope, that I had missed
something. Please tell me what.

I might be wrong, but there are still standard items (they're not
called Stock Items anymore). They're not called by their Stock name,
but still get translated automatically. They are not in a box called
Stock Items, but instead come from Icon Themes:

This is the old and new way compared:

Old:
button = gtk_button_new_from_stock (GTK_STOCK_SAVE);

New:
button = gtk_button_new_with_mnemonic (_(“_Save”));

Have a look at the announcement of the 'new' way:

https://docs.google.com/document/d/1KCVPoYQBqMbDP11tHPpjW6uaEHrvLUmcDPqKAppCY8o/pub

John


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]