Skip to content

Commit 9b704d6

Browse files
author
Alexander Smishlajev
committed
get_translation: removed 'domain' argument, added 'tracker_home' argument
1 parent eea6819 commit 9b704d6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

roundup/cgi/TranslationService.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# translate(domain, msgid, mapping, context, target_language, default)
1414
#
1515

16-
__version__ = "$Revision: 1.1 $"[11:-2]
17-
__date__ = "$Date: 2004-07-11 14:17:17 $"[7:-2]
16+
__version__ = "$Revision: 1.2 $"[11:-2]
17+
__date__ = "$Date: 2004-10-23 14:04:23 $"[7:-2]
1818

1919
from roundup import i18n
2020
from roundup.cgi.PageTemplates import Expressions, PathIterator, TALES
@@ -93,7 +93,7 @@ def getContext(self, contexts=None, **kwcontexts):
9393

9494
### main API function
9595

96-
def get_translation(language=None, domain=i18n.DOMAIN,
96+
def get_translation(language=None, tracker_home=None,
9797
translation_class=TranslationService,
9898
null_translation_class=NullTranslationService
9999
):
@@ -103,7 +103,8 @@ def get_translation(language=None, domain=i18n.DOMAIN,
103103
specify the classes that are instantiated for existing
104104
and non-existing translations, respectively.
105105
"""
106-
return i18n.get_translation(language=language, domain=domain,
106+
return i18n.get_translation(language=language,
107+
tracker_home=tracker_home,
107108
translation_class=translation_class,
108109
null_translation_class=null_translation_class)
109110

0 commit comments

Comments
 (0)