Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Gtk stock button translation

by mtl3 (Novice)
on Mar 09, 2018 at 05:53 UTC ( [id://1210542]=note: print w/replies, xml ) Need Help??


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

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.

Replies are listed 'Best First'.
Re^5: Gtk stock button translation
by syphilis (Archbishop) on Mar 09, 2018 at 12:48 UTC
    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
Re^5: Gtk stock button translation
by Anonymous Monk on Mar 09, 2018 at 11:02 UTC
    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.
        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

        Thanks for getting back to us with that.
        It has relevance to Gtk2 ppm packages that I provide.

        Cheers,
        Rob

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-03-29 14:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found