All: Reformat according to new standard
This commit is contained in:
committed by
Kacper Donat
parent
eafd18dac0
commit
25c3ba7338
@@ -33,49 +33,61 @@ using namespace Base;
|
||||
Translate::Translate()
|
||||
: Py::ExtensionModule<Translate>("__Translate__")
|
||||
{
|
||||
add_varargs_method("translate",
|
||||
&Translate::translate,
|
||||
"translate(context, sourcetext, disambiguation = None, n=-1)\n"
|
||||
"-- Returns the translation text for sourceText, by querying\n"
|
||||
"the installed translation files. The translation files are\n"
|
||||
"searched from the most recently installed file back to the\n"
|
||||
"first installed file.");
|
||||
add_varargs_method("QT_TRANSLATE_NOOP",
|
||||
&Translate::translateNoop,
|
||||
"QT_TRANSLATE_NOOP(context, sourcetext)\n"
|
||||
"Marks the UTF-8 encoded string literal sourcetext for delayed translation "
|
||||
"in the given context.\n"
|
||||
"The context is typically a class name and also needs to be specified as a "
|
||||
"string literal.");
|
||||
add_varargs_method("QT_TRANSLATE_NOOP3",
|
||||
&Translate::translateNoop3,
|
||||
"QT_TRANSLATE_NOOP3(context, sourcetext, disambiguation)\n"
|
||||
"Marks the UTF-8 encoded string literal sourceText for delayed translation "
|
||||
"in the given context\n"
|
||||
"with the given disambiguation. The context is typically a class and also "
|
||||
"needs to be specified\n"
|
||||
"as a string literal. The string literal disambiguation should be a short "
|
||||
"semantic tag to tell\n"
|
||||
"apart otherwise identical strings.");
|
||||
add_varargs_method("QT_TRANSLATE_NOOP_UTF8",
|
||||
&Translate::translateNoop,
|
||||
"QT_TRANSLATE_NOOP_UTF8(context, sourcetext)\n"
|
||||
"Same as QT_TRANSLATE_NOOP");
|
||||
add_varargs_method("QT_TR_NOOP",
|
||||
&Translate::trNoop,
|
||||
"QT_TR_NOOP(sourcetext)\n"
|
||||
"Marks the UTF-8 encoded string literal sourcetext for delayed translation "
|
||||
"in the current context");
|
||||
add_varargs_method("QT_TR_NOOP_UTF8",
|
||||
&Translate::trNoop,
|
||||
"QT_TR_NOOP_UTF8(sourcetext)\n"
|
||||
"Same as QT_TR_NOOP");
|
||||
add_varargs_method("installTranslator",
|
||||
&Translate::installTranslator,
|
||||
"Install a translator for testing purposes");
|
||||
add_varargs_method("removeTranslators",
|
||||
&Translate::removeTranslators,
|
||||
"Remove test translators");
|
||||
add_varargs_method(
|
||||
"translate",
|
||||
&Translate::translate,
|
||||
"translate(context, sourcetext, disambiguation = None, n=-1)\n"
|
||||
"-- Returns the translation text for sourceText, by querying\n"
|
||||
"the installed translation files. The translation files are\n"
|
||||
"searched from the most recently installed file back to the\n"
|
||||
"first installed file."
|
||||
);
|
||||
add_varargs_method(
|
||||
"QT_TRANSLATE_NOOP",
|
||||
&Translate::translateNoop,
|
||||
"QT_TRANSLATE_NOOP(context, sourcetext)\n"
|
||||
"Marks the UTF-8 encoded string literal sourcetext for delayed translation "
|
||||
"in the given context.\n"
|
||||
"The context is typically a class name and also needs to be specified as a "
|
||||
"string literal."
|
||||
);
|
||||
add_varargs_method(
|
||||
"QT_TRANSLATE_NOOP3",
|
||||
&Translate::translateNoop3,
|
||||
"QT_TRANSLATE_NOOP3(context, sourcetext, disambiguation)\n"
|
||||
"Marks the UTF-8 encoded string literal sourceText for delayed translation "
|
||||
"in the given context\n"
|
||||
"with the given disambiguation. The context is typically a class and also "
|
||||
"needs to be specified\n"
|
||||
"as a string literal. The string literal disambiguation should be a short "
|
||||
"semantic tag to tell\n"
|
||||
"apart otherwise identical strings."
|
||||
);
|
||||
add_varargs_method(
|
||||
"QT_TRANSLATE_NOOP_UTF8",
|
||||
&Translate::translateNoop,
|
||||
"QT_TRANSLATE_NOOP_UTF8(context, sourcetext)\n"
|
||||
"Same as QT_TRANSLATE_NOOP"
|
||||
);
|
||||
add_varargs_method(
|
||||
"QT_TR_NOOP",
|
||||
&Translate::trNoop,
|
||||
"QT_TR_NOOP(sourcetext)\n"
|
||||
"Marks the UTF-8 encoded string literal sourcetext for delayed translation "
|
||||
"in the current context"
|
||||
);
|
||||
add_varargs_method(
|
||||
"QT_TR_NOOP_UTF8",
|
||||
&Translate::trNoop,
|
||||
"QT_TR_NOOP_UTF8(sourcetext)\n"
|
||||
"Same as QT_TR_NOOP"
|
||||
);
|
||||
add_varargs_method(
|
||||
"installTranslator",
|
||||
&Translate::installTranslator,
|
||||
"Install a translator for testing purposes"
|
||||
);
|
||||
add_varargs_method("removeTranslators", &Translate::removeTranslators, "Remove test translators");
|
||||
initialize("This module is the Translate module"); // register with Python
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user