LibreOffice Module wizards (master) 1
|
Public Member Functions | |
def | ReviewServiceArgs (cls, foldername='', locale='', encoding='UTF-8', locale2='', encoding2='UTF-8') |
def | AddText (self, context='', msgid='', comment='') |
def | AddTextsFromDialog (self, dialog) |
def | ExportToPOTFile (self, filename, header='', encoding='UTF-8') |
def | GetText (self, msgid, *args) |
Public Member Functions inherited from scriptforge.SFServices | |
def | __init__ (self, reference=-1, objtype=None, classmodule=0, name='') |
def | __getattr__ (self, name) |
def | __setattr__ (self, name, value) |
def | __repr__ (self) |
def | Dispose (self) |
def | ExecMethod (self, flags=0, methodname='', *args) |
def | GetProperty (self, propertyname, arg=None) |
def | Properties (self) |
def | basicmethods (self) |
def | basicproperties (self) |
def | SetProperty (self, propertyname, value) |
Static Public Attributes | |
string | serviceimplementation = 'basic' |
string | servicename = 'ScriptForge.L10N' |
tuple | servicesynonyms = ('l10n', 'scriptforge.l10n') |
serviceproperties = dict(Folder = False, Languages = False, Locale = False) | |
Static Public Attributes inherited from scriptforge.SFServices | |
vbGet | |
vbLet | |
vbMethod | |
vbSet | |
int | flgPost = 32 |
int | flgDateArg = 64 |
int | flgDateRet = 128 |
int | flgArrayArg = 512 |
int | flgArrayRet = 1024 |
int | flgUno = 256 |
int | flgObject = 2048 |
int | flgHardCode = 4096 |
moduleClass | |
moduleStandard | |
bool | forceGetProperty = False |
dictionary | propertysynonyms = {} |
tuple | internal_attributes |
SIMPLEEXEC = ScriptForge.InvokeSimpleScript | |
EXEC = ScriptForge.InvokeBasicService | |
Static Private Attributes | |
def | _ = GetText |
Additional Inherited Members | |
Public Attributes inherited from scriptforge.SFServices | |
objectreference | |
objecttype | |
classmodule | |
name | |
internal | |
localProperties | |
serviceimplementation | |
This service provides a number of methods related to the translation of strings with minimal impact on the program's source code. The methods provided by the L10N service can be used mainly to: Create POT files that can be used as templates for translation of all strings in the program. Get translated strings at runtime for the language defined in the Locale property.
Definition at line 1199 of file scriptforge.py.
def scriptforge.SFScriptForge.SF_L10N.AddText | ( | self, | |
context = '' , |
|||
msgid = '' , |
|||
comment = '' |
|||
) |
Definition at line 1221 of file scriptforge.py.
References scriptforge.SFServices.ExecMethod(), sfx2::SfxNotebookBar.ExecMethod(), and scriptforge.SFServices.vbMethod.
def scriptforge.SFScriptForge.SF_L10N.AddTextsFromDialog | ( | self, | |
dialog | |||
) |
Definition at line 1224 of file scriptforge.py.
References scriptforge.SFServices.ExecMethod(), sfx2::SfxNotebookBar.ExecMethod(), scriptforge.SFServices.flgObject, and scriptforge.SFServices.vbMethod.
def scriptforge.SFScriptForge.SF_L10N.ExportToPOTFile | ( | self, | |
filename, | |||
header = '' , |
|||
encoding = 'UTF-8' |
|||
) |
Definition at line 1228 of file scriptforge.py.
References scriptforge.SFServices.ExecMethod(), sfx2::SfxNotebookBar.ExecMethod(), and scriptforge.SFServices.vbMethod.
def scriptforge.SFScriptForge.SF_L10N.GetText | ( | self, | |
msgid, | |||
* | args | ||
) |
Definition at line 1231 of file scriptforge.py.
References scriptforge.SFServices.ExecMethod(), sfx2::SfxNotebookBar.ExecMethod(), and scriptforge.SFServices.vbMethod.
def scriptforge.SFScriptForge.SF_L10N.ReviewServiceArgs | ( | cls, | |
foldername = '' , |
|||
locale = '' , |
|||
encoding = 'UTF-8' , |
|||
locale2 = '' , |
|||
encoding2 = 'UTF-8' |
|||
) |
Transform positional and keyword arguments into positional only
Definition at line 1214 of file scriptforge.py.
|
staticprivate |
Definition at line 1234 of file scriptforge.py.
|
static |
Definition at line 1208 of file scriptforge.py.
Referenced by scriptforge.SFServices.__repr__(), scriptforge.SFServices.__setattr__(), scriptforge.SFServices.basicmethods(), scriptforge.SFServices.basicproperties(), scriptforge.SFServices.Dispose(), scriptforge.SFServices.GetProperty(), and scriptforge.SFServices.SetProperty().
|
static |
Definition at line 1209 of file scriptforge.py.
Referenced by scriptforge.ScriptForge.__init__(), and scriptforge.SFServices.__repr__().
|
static |
Definition at line 1211 of file scriptforge.py.
Referenced by scriptforge.SFServices.__setattr__(), and scriptforge.SFServices.Properties().
|
static |
Definition at line 1210 of file scriptforge.py.