l.t.m.translationmessage : module documentation

Part of lp.translations.model

No module docstring
Function make_plurals_fragment Repeat text fragment for each plural form, separated by separator.
Function make_plurals_sql_fragment Compose SQL fragment consisting of clauses for each plural form.
Class TranslationMessageMixIn This class is not designed to be used directly.
Class DummyTranslationMessage Represents an ITranslationMessage where we don't yet HAVE it.
Class TranslationMessage No class docstring; 15/16 methods documented
Class TranslationMessageSet See ITranslationMessageSet.
def make_plurals_fragment(fragment, separator):
Repeat text fragment for each plural form, separated by separator.

Inside fragment, use "%(form)d" to represent the applicable plural form number.

def make_plurals_sql_fragment(fragment, separator='AND'):
Compose SQL fragment consisting of clauses for each plural form.

Creates fragments like "msgstr0 IS NOT NULL AND msgstr1 IS NOT NULL" etc.

Parametersfragmenta piece of SQL text to repeat for each msgstr*, using "%(form)d" to represent the number of each form: "msgstr%(form)d IS NOT NULL". Parentheses are added.
separatorstring to insert between the repeated clauses, e.g. "AND" (default) or "OR". Spaces are added.
API Documentation for Launchpad, generated by pydoctor at 2018-05-22 00:00:04.