Changeset 0a41b86
- Timestamp:
- 01/16/2014 11:22:28 PM (12 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
deluge/common.py
r7c808a r0a41b86 270 270 ## Formatting text functions 271 271 272 # For performance reasons these fsize units are translated outside the function 272 273 byte_txt = "Bytes" 273 274 kib_txt = "KiB" … … 276 277 277 278 278 def translate_strings(): 279 def translate_size_units(): 280 global byte_txt, kib_txt, mib_txt, gib_txt 279 281 byte_txt = _("Bytes") 280 282 kib_txt = _("KiB") … … 906 908 """ 907 909 lang = str(lang) 908 # Necessary to set the re environment variables for GtkBuilder910 # Necessary to set these environment variables for GtkBuilder 909 911 set_env_variable('LANGUAGE', lang) # Windows/Linux 910 912 set_env_variable('LANG', lang) # For OSX … … 957 959 import __builtin__ 958 960 __builtin__.__dict__["_"] = lambda x: x 959 translate_strings() 961 962 translate_size_units() 960 963 961 964
Note:
See TracChangeset
for help on using the changeset viewer.