Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Gtk stock button translation

by mtl3 (Novice)
on Mar 08, 2018 at 19:07 UTC ( #1210526=note: print w/replies, xml ) Need Help??


in reply to Re: Gtk stock button translation
in thread Gtk stock button translation

Thank you Rob.

Yes, the demo "works" on my machine to (also running perl 5.26) in that sense that both icons and labels are displayed. The point of my question was to have the labelled translated (in my case in French). Interestingly, you mention that the translation should happen automatically based on the computer's local settings. If you can confirm that, this would mean that I may need to investigate my gtk install rather than my perl code, which was actually an alternative I had in mind too.

So could you please confirm that the translation should be triggered automatically via the computer settings (have you observed it)? This would help me moving forward.

Cheers

Replies are listed 'Best First'.
Re^3: Gtk stock button translation
by syphilis (Chancellor) on Mar 09, 2018 at 00:24 UTC
    So could you please confirm that the translation should be triggered automatically via the computer settings (have you observed it)?

    I haven't observed it - it's just that, in relation to Gtk2::Stock buttons, the documentation says "the label changes according to your language settings, making internationalization easier".
    However, thinking about that a bit more, it doesn't necessarily mean that changing those labels to French (on your computer) is as easy as changing your computer's language setting to French.
    Having reset your computer's language to French, you might also have to reinstall your gtk libraries and/or rebuild Gtk2. I don't know.

    But I do think the documentation is telling us that, if you run that demo script on a computer whose language setting has always been French, then the labels will be in French.

    More authoritative information can probably be obtained from the gtk-perl mailing list.

    Cheers,
    Rob
      I also spot this sentence in the documentation although I was not 100% sure how to interprete it (i.e. whether the settings were the ones of the computer or shall be programatically defined). Anyway, both my perl and gtk install were done as my computer was set to French and the labels are still displayed in English. I'll check the gtk-perl mailing list as you suggest to help me sort this out. Thanks.
        Anyway, both my perl and gtk install were done as my computer was set to French and the labels are still displayed in English

        As someone who speaks only English, I have absolutely no experience of the issues faced by those who would prefer a language other than English.

        When you use warnings; and warnings are emitted, are they in French ?
        If so, I would have expected your Gtk2::Stock buttons to have French labels - unless perhaps your gtk libraries were built for "English".

        I'll check the gtk-perl mailing list

        I do subscribe to the gtk-perl mailing list, and I'll be interested to see what they have to say.

        Cheers,
        Rob
        What is env_c?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1210526]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2018-06-21 04:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (117 votes). Check out past polls.

    Notices?