projects
/
Portfolio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f583655
)
Bugfix : mauvais domaine i18n.
author
Benoît Pin
<pin@cri.ensmp.fr>
Thu, 4 Aug 2011 08:14:37 +0000
(10:14 +0200)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Thu, 4 Aug 2011 08:14:37 +0000
(10:14 +0200)
utils.py
patch
|
blob
|
history
diff --git
a/utils.py
b/utils.py
index
56ceb30
..
fe5f6d1
100755
(executable)
--- a/
utils.py
+++ b/
utils.py
@@
-24,11
+24,9
@@
security.declarePublic('translate')
def translate(message, context):
""" Translate i18n message.
"""
def translate(message, context):
""" Translate i18n message.
"""
- # TODO: touver une solution.
- # GTS = getGlobalTranslationService()
if isinstance(message, Exception):
try:
message = message[0]
except (TypeError, IndexError):
pass
if isinstance(message, Exception):
try:
message = message[0]
except (TypeError, IndexError):
pass
- return i18ntranslate(message, domain='p
hotoprint
', context=context.REQUEST)
+ return i18ntranslate(message, domain='p
ortfolio
', context=context.REQUEST)