commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/common/src GImport.py


From: Arturas Kriukovas
Subject: gnue/common/src GImport.py
Date: Tue, 30 Apr 2002 12:54:01 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     Arturas Kriukovas <address@hidden>      02/04/30 12:54:01

Modified files:
        common/src     : GImport.py 

Log message:
        Update.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/common/src/GImport.py.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: gnue/common/src/GImport.py
diff -c gnue/common/src/GImport.py:1.1 gnue/common/src/GImport.py:1.2
*** gnue/common/src/GImport.py:1.1      Tue Apr 30 07:29:57 2002
--- gnue/common/src/GImport.py  Tue Apr 30 12:54:01 2002
***************
*** 33,38 ****
  #
  
  import gettext
  
! gettext.install('gnue','../translations')
! 
--- 33,65 ----
  #
  
  import gettext
+ import os
  
! try:
!   gettext.install('gnue',os.environ['INSTALL_PREFIX']+'/translations')
! except:
!   print """
!     If your error is like this:
!         File "/usr/lib/python2.1/gettext.py", line 251, 
!         in install translation(domain, localedir).install(unicode)
!         File "/usr/lib/python2.1/gettext.py", line 238, in translation
!         raise IOError(ENOENT, 'No translation file found for domain', domain)
!         IOError: [Errno 2] No translation file found for domain: 'gnue'
!     or
!       File "..../gnue/...../......py", line ..., in ?
!           _("some text goes here")
!       NameError: name '_' is not defined    
!                                           
!     Then check if in folder /common/translations exist subfolder called like
!     $LC_ALL shell variable (you can check it by echo $LC_ALL).
!     If folder does not exist, you can create it (and probably solve this 
error)
!     in such steps:
!                   0. cd ....common/translations
!                   1. mkdir $LC_ALL
!                   2. cd $LC_ALL
!                   3. mkdir LC_MESSAGES
!                   3. Copy there gnue.mo file from any other folder
!                      (cp ../en_US/LC_MESSAGES/gnue.mo LC_MESSAGES/gnue.mo)
!                      
!     That's all.
! """



reply via email to

[Prev in Thread] Current Thread [Next in Thread]