QtTsDocument#
Provides access to the content of a Ts file (Qt linguist). More...
import Script
Properties#
| Name | |
|---|---|
| string | language |
| array<QtUiMessage> | messages |
| string | sourceLanguage |
Methods#
| Name | |
|---|---|
| addMessage(string context, string location, string source, string translation) | |
| setLanguage(string lang) | |
| setSourceLanguage(string lang) |
Property Documentation#
string language#
Return language name.
array<QtUiMessage> messages#
List of all translations in the ts file.
string sourceLanguage#
Return source language name.
Method Documentation#
addMessage(string context, string location, string source, string translation)#
Add a new source text, its translation located in location within the given context.
setLanguage(string lang)#
Change language.
setSourceLanguage(string lang)#
Change source language.