Go to the source code of this file.
| #define mFromUiStringTodo |
( |
|
i | ) |
i.getFullString() |
| #define mTextTranslationClass |
( |
|
clss, |
|
|
|
application |
|
) |
| |
Value:private: \
static
inline uiString tr(
const char* text,
const char* disambiguation = 0, \
int pluralnr=-1 ) \
{
return uiString( text, #clss, application, disambiguation, pluralnr ); } \
static
inline uiString legacyTr(
const char* text, \
const char* disambiguation = 0, \
int pluralnr=-1 ) \
{
return uiString( text, #clss, application, disambiguation, pluralnr ); }
Definition: uistring.h:88
| uiString od_static_tr |
( |
const char * |
function, |
|
|
const char * |
text, |
|
|
const char * |
disambiguation = 0, |
|
|
int |
pluralnr = -1 |
|
) |
| |
Adds translation of strings outside of classes for the "od" application. It will return a uistring where the context is "static_func_function", where 'function' is whatever is given as the function parameter. This matches what is done in the filtering of the source files before lupdate is run (in ./dtect/update_translations.csh).
1 bool myFunction( int var )
6 od_static_tr( "myFunction", "%1 is less than 5" ).arg( var ) );
| uiString toUiString |
( |
float |
, |
|
|
int |
nrdec |
|
) |
| |
| uiString toUiString |
( |
double |
, |
|
|
int |
nrdec |
|
) |
| |
| uiString toUiString |
( |
float |
, |
|
|
char |
format, |
|
|
int |
precision |
|
) |
| |
| uiString toUiString |
( |
double |
, |
|
|
char |
format, |
|
|
int |
precision |
|
) |
| |