Unfortunately, the documentation (or I should say the absence of documentation) has left me clueless

Did you grab the demo program from the page you linked to ?

The relevant part is:
#create a vbox that will contain all the stock buttons my $vbox_stock = Gtk2::VBox->new(FALSE,5); foreach my $val(sort Gtk2::Stock->list_ids){ my $btn_stock = Gtk2::Button->new_from_stock($val); $vbox_stock->pack_start($btn_stock,FALSE,FALSE,4); }
I changed that to:
#create a vbox that will contain all the stock buttons my $vbox_stock = Gtk2::VBox->new(FALSE,5); foreach my $val(sort Gtk2::Stock->list_ids){ print "$val\n"; # List available stock buttons if($val eq 'gtk-add' || $val eq 'gtk-cancel') { my $btn_stock = Gtk2::Button->new_from_stock($val); $vbox_stock->pack_start($btn_stock,FALSE,FALSE,4); } }
On perl-5.26.0, for me that modification behaves as expected and creates only the "Add" and "Cancel" buttons (with labels).
My understanding is that those labels will be written in the language that the computer's locale setting specifies.

Hopefully you can utilise that demo program to help achieve your desired result.
If not, you could try the gtk-perl mailing list if you can't get good help here.

For me, on an older version of perl (5.16.0) the same demo (both original and modified) provided the buttons with labels only (no icons).
Same versions of Gtk and Gtk2 modules. Either a difference in perl itself, or something different in the environments.

Cheers,
Rob

In reply to Re: Gtk stock button translation by syphilis
in thread Gtk stock button translation by mtl3

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.