1
#############################################################################
3
## Copyright 2008 Roderick B. Greening <roderick.greening@gmail.com>
5
## This program is free software; you can redistribute it and/or
6
## modify it under the terms of the GNU General Public License as
7
## published by the Free Software Foundation; either version 3 of
8
## the License, or (at your option) any later version.
10
## This program is distributed in the hope that it will be useful,
11
## but WITHOUT ANY WARRANTY; without even the implied warranty of
12
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
## GNU General Public License for more details.
15
## You should have received a copy of the GNU General Public License
16
## along with this program. If not, see <http://www.gnu.org/licenses/>.
18
#############################################################################
20
#############################################################################
23
# Description: Re-usable include which re-implements the translate method
24
# from uic, and changes it to use gettext.
25
#############################################################################
29
# FIXME: apachelogger is not sure that the following function does what it is
30
# supposed to, but generally piping things through _() should yield a
31
# translation, whether that actually is the case or not remains to be verified
34
def translate(self, prop):
35
"""Re-implement method from uic and change it to use gettext"""
36
if prop.get("notr", None) == "true":
38
return self._cstring(prop)