Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31856/spambayes

Modified Files:
        i18n.py 
Log Message:
Fix finding translated dialogs for frozen plug-in.

Index: i18n.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/i18n.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** i18n.py     7 Apr 2005 04:19:45 -0000       1.4
--- i18n.py     7 Apr 2005 05:58:31 -0000       1.5
***************
*** 88,91 ****
--- 88,92 ----
          this_filename = __file__
      LC_DIR = os.path.dirname(os.path.dirname(this_filename))
+     DIALOGS_DIR = os.path.join(os.path.dirname(__file__), "languages")
  else:
      try:
***************
*** 94,97 ****
--- 95,99 ----
          this_filename = os.path.abspath(sys.argv[0])
      LC_DIR = os.path.dirname(this_filename)
+     DIALOGS_DIR = LC_DIR
      
  
***************
*** 166,171 ****
          self._clear_syspath()
          for lcode in self.current_langs_codes:
!             code_and_country = os.path.join(LC_DIR, "languages", lcode,
!                                             'DIALOGS')
              code_only = os.path.join(LC_DIR, lcode.split("_")[0], 'DIALOGS')
              if code_and_country not in sys.path:
--- 168,172 ----
          self._clear_syspath()
          for lcode in self.current_langs_codes:
!             code_and_country = os.path.join(DIALOGS_DIR, lcode, 'DIALOGS')
              code_only = os.path.join(LC_DIR, lcode.split("_")[0], 'DIALOGS')
              if code_and_country not in sys.path:

_______________________________________________
Spambayes-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-checkins

Reply via email to