Changeset 0a41b86


Ignore:
Timestamp:
01/16/2014 11:22:28 PM (12 years ago)
Author:
Calum Lind <calumlind+deluge@gmail.com>
Branches:
2.0.x, develop, master
Children:
8eb215
Parents:
7c808a
git-author:
bendikro <bendikro@gmail.com> (01/16/2014 09:33:32 PM)
git-committer:
Calum Lind <calumlind+deluge@gmail.com> (01/16/2014 11:22:28 PM)
Message:

Reinserted call to translate_strings in common and renamed to translate_size_units.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • deluge/common.py

    r7c808a r0a41b86  
    270270## Formatting text functions
    271271
     272# For performance reasons these fsize units are translated outside the function
    272273byte_txt = "Bytes"
    273274kib_txt = "KiB"
     
    276277
    277278
    278 def translate_strings():
     279def translate_size_units():
     280    global byte_txt, kib_txt, mib_txt, gib_txt
    279281    byte_txt = _("Bytes")
    280282    kib_txt = _("KiB")
     
    906908    """
    907909    lang = str(lang)
    908     # Necessary to set there environment variables for GtkBuilder
     910    # Necessary to set these environment variables for GtkBuilder
    909911    set_env_variable('LANGUAGE', lang)  # Windows/Linux
    910912    set_env_variable('LANG', lang)  # For OSX
     
    957959            import __builtin__
    958960            __builtin__.__dict__["_"] = lambda x: x
    959         translate_strings()
     961
     962        translate_size_units()
    960963
    961964
Note: See TracChangeset for help on using the changeset viewer.