comparison MoinMoin/macro/SystemInfo.py @ 3123:5cb80bd604b4

refactored _() getText calls to match new api
author Radomir Dopieralski <moindev@sheep.art.pl>
date Wed, 27 Feb 2008 00:28:28 +0100
parents 01f05e74aa9c
children 924a9abe5689
comparison
equal deleted inserted replaced
3122:a1322262398a 3123:5cb80bd604b4
159 import Stemmer 159 import Stemmer
160 try: 160 try:
161 stems = Stemmer.algorithms() 161 stems = Stemmer.algorithms()
162 stemVersion = Stemmer.version() 162 stemVersion = Stemmer.version()
163 except: 163 except:
164 stemVersion = _('!PyStemmer not installed') 164 stemVersion = _('PyStemmer not installed')
165 except ImportError: 165 except ImportError:
166 stemVersion = _('!PyStemmer not installed') 166 stemVersion = _('PyStemmer not installed')
167 167
168 row(_('Stemming for Xapian'), xapState[request.cfg.xapian_stemming]) 168 row(_('Stemming for Xapian'), xapState[request.cfg.xapian_stemming])
169 row(_('!PyStemmer Version'), stemVersion) 169 row(_('PyStemmer Version'), stemVersion)
170 row(_('!PyStemmer stems'), ', '.join(stems) or nonestr) 170 row(_('PyStemmer stems'), ', '.join(stems) or nonestr)
171 171
172 try: 172 try:
173 from threading import activeCount 173 from threading import activeCount
174 t_count = activeCount() 174 t_count = activeCount()
175 except ImportError: 175 except ImportError: