1
0

translation.py 437 B

12345678910
  1. # this is here until the client imports the correct module everywhere.
  2. # when that's done, this file can go away.
  3. # BTL code that imports it should get the BitTorrent version if it's the client,
  4. # or a pass-through if it's not. Since I'm not sure how best to implement that,
  5. # it just grabs the client's function if I see it
  6. import sys
  7. if 'BitTorrent' in sys.modules:
  8. from BitTorrent.translation import _
  9. else:
  10. def _(i): return i