LibreOffice Module wizards (master) 1
Public Member Functions | Static Public Attributes | Static Private Attributes | List of all members
scriptforge.SFScriptForge.SF_L10N Class Reference
Inheritance diagram for scriptforge.SFScriptForge.SF_L10N:
[legend]
Collaboration diagram for scriptforge.SFScriptForge.SF_L10N:
[legend]

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
 

Detailed Description

    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.

Member Function Documentation

◆ AddText()

def scriptforge.SFScriptForge.SF_L10N.AddText (   self,
  context = '',
  msgid = '',
  comment = '' 
)

◆ AddTextsFromDialog()

def scriptforge.SFScriptForge.SF_L10N.AddTextsFromDialog (   self,
  dialog 
)

◆ ExportToPOTFile()

def scriptforge.SFScriptForge.SF_L10N.ExportToPOTFile (   self,
  filename,
  header = '',
  encoding = 'UTF-8' 
)

◆ GetText()

def scriptforge.SFScriptForge.SF_L10N.GetText (   self,
  msgid,
args 
)

◆ ReviewServiceArgs()

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.

Member Data Documentation

◆ _

def scriptforge.SFScriptForge.SF_L10N._ = GetText
staticprivate

Definition at line 1234 of file scriptforge.py.

◆ serviceimplementation

string scriptforge.SFScriptForge.SF_L10N.serviceimplementation = 'basic'
static

◆ servicename

string scriptforge.SFScriptForge.SF_L10N.servicename = 'ScriptForge.L10N'
static

◆ serviceproperties

scriptforge.SFScriptForge.SF_L10N.serviceproperties = dict(Folder = False, Languages = False, Locale = False)
static

◆ servicesynonyms

tuple scriptforge.SFScriptForge.SF_L10N.servicesynonyms = ('l10n', 'scriptforge.l10n')
static

Definition at line 1210 of file scriptforge.py.


The documentation for this class was generated from the following file: