Encoding problem in translations

Help
2013-06-23
2013-06-27
  • Cilyan Olowen

    Cilyan Olowen - 2013-06-23

    Hi Team,

    Translations that are not in unicode gets wrongly decoded by gettext. This is at least the case for the french one.
    This can be easily corrected by using ugettext. Here is a little patch:

    --- ganyremote.old  2013-06-12 18:24:49.000000000 +0200
    +++ ganyremote  2013-06-23 16:29:37.480342211 +0200
    @@ -95,7 +95,7 @@
     # Get the language to use
     lang = gettext.translation(APP_NAME, local_path, languages=langs, fallback = True)
    
    -_ = lang.gettext
    +_ = lang.ugettext
    
     #
     # String constants (not all!)
    

    Thanks for your work!

    Cilyan

     
  • Mike

    Mike - 2013-06-27

    Thanks !
    I've fixed that in SVN, revision 753

     

Log in to post a comment.