Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: Gtk stock button translation

by syphilis (Chancellor)
on Mar 09, 2018 at 00:24 UTC ( #1210539=note: print w/replies, xml ) Need Help??


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

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

Replies are listed 'Best First'.
Re^4: Gtk stock button translation
by mtl3 (Novice) on Mar 09, 2018 at 05:53 UTC
    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?
        SOLVED

        Digging more into this problem I managed to find an easy solution. In the gtk+ install, there is a folder gtk+\share\locale which looked very much like internationalization files. I simply copied these files in strawberry_perl\perl\site\share and that made the trick.

        Due to my limited understanding of how gtk and perl interact, I first thought that either perl was able to access the internationalization files in the gtk folder or that the installation had made the job for me.

        Bottom line is: yes the internationalization set is set automatically based on computer settings, provided that the files are present in the perl install folder. If not, it defaults back to English without any warning of any sort.

        Cheers.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1210539]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2018-08-17 05:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (174 votes). Check out past polls.

    Notices?