Add ConcatenatedLazyText object

This object will allow splitting large translatable strings into more
pieces, so translators don't have to re-translate the entire text
when a small part changes.

https://fedorahosted.org/freeipa/ticket/3587
This commit is contained in:
Petr Viktorin
2013-11-21 10:34:25 +01:00
parent 35c3a5f161
commit 8f57f25e82
3 changed files with 94 additions and 2 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ import operator
from ipalib import api
from ipalib.parameters import Param
from ipalib.output import Output
from ipalib.text import Gettext, NGettext
from ipalib.text import Gettext, NGettext, ConcatenatedLazyText
from ipalib.capabilities import capabilities
API_FILE='API.txt'
@@ -120,7 +120,7 @@ def validate_doc():
def is_i18n(obj):
'Helper utility to determine if object has been internationalized'
return isinstance(obj, (Gettext, NGettext))
return isinstance(obj, (Gettext, NGettext, ConcatenatedLazyText))
# The return value
rval = 0