Platforms to show: All Mac Windows Linux Cross-Platform

Back to LCMS2MLUMBS class.

LCMS2MLUMBS.Constructor(context as LCMS2ContextMBS, items as UInt32)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method LCMS2 MBS Images Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Allocates an empty multilocalized unicode object.
Example
dim c as new LCMS2MLUMBS(nil, 3)

call c.setASCII("en", "US", "Hello" )
call c.setASCII("de", "DE", "Hallo" )

LCMS2MLUMBS.getASCII(LanguageCode as string, CountryCode as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method LCMS2 MBS Images Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Gets an ASCII (7 bit) entry for the given Language and country.
Example
dim c as new LCMS2MLUMBS(nil, 3)

call c.setASCII("en", "US", "Hello" )
call c.setASCII("de", "DE", "Hallo" )

MsgBox "en: "+c.getASCII("en", "US") + EndOfLine + "de: "+c.getASCII("de", "DE") + EndOfLine + "any: "+c.getASCII("", "")

Language Code: 3 chars describing the language.
CountryCode: 3 chars describing the country.

Returns the string.

Some examples using this method:

LCMS2MLUMBS.getTranslation(LanguageCode as string, CountryCode as string, byref ObtainedLanguageCode as string, byref ObtainedCountryCode as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method LCMS2 MBS Images Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Obtains the translation rule for given multilocalized unicode object.

Language Code: 3 chars describing the language.
CountryCode: 3 chars describing the country
ObtainedLanguage: 3 chars to get the language translation.
ObtainedCode: 3 chars to get the country translation.

Returns true on success, false on error

LCMS2MLUMBS.getUnicode(LanguageCode as string, CountryCode as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method LCMS2 MBS Images Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Gets an unicode (16 bit) entry for the given Language and country.

Language Code: 3 chars describing the language
CountryCode: 3 chars describing the country

Returns the string value.

Some examples using this method:

LCMS2MLUMBS.setASCII(LanguageCode as string, CountryCode as string, ASCIIString as string) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method LCMS2 MBS Images Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Fills an ASCII (7 bit) entry for the given Language and country.
Example
dim c as new LCMS2MLUMBS(nil, 3)

call c.setASCII("en", "US", "Hello" )
call c.setASCII("de", "DE", "Hallo" )

MsgBox "en: "+c.getASCII("en", "US") + EndOfLine + "de: "+c.getASCII("de", "DE") + EndOfLine + "any: "+c.getASCII("", "")

Language Code: 3 chars describing the language
CountryCode: 3 chars describing the country
ASCIIString: String to add.

Returns true on success, false on error.

LCMS2MLUMBS.setUnicode(LanguageCode as string, CountryCode as string, UnicodeString as string) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method LCMS2 MBS Images Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Fills a UNICODE wide char (16 bit) entry for the given Language and country.
Example
dim c as new LCMS2MLUMBS(nil, 3)
call c.setUnicode("de", "DE", "Kätzchen" )
dim u as string = c.getUnicode("de", "DE")
MsgBox u

Language Code: 3 chars describing the language
CountryCode: 3 chars describing the country
WideString: String to add.

Returns true on success, false on error.

Some examples using this method:

LCMS2MLUMBS.translationsCodes(index as Integer, byref LanguageCode as string, byref CountryCode as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method LCMS2 MBS Images Plugin 13.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries language and country code for the given index.
Example
dim c as new LCMS2MLUMBS(nil, 3)

call c.setASCII("en", "US", "Hello" )
call c.setASCII("de", "DE", "Hallo" )

dim u as Integer = c.TranslationsCount-1
for i as Integer = 0 to u
dim LanguageCode as string
dim CountryCode as string

if c.translationsCodes(i, LanguageCode, CountryCode) then
MsgBox LanguageCode+" "+CountryCode
end if
next

Index is from 0 to TranslationsCount-1.

Some examples using this method:

LCMS2MLUMBS.UnicodeStrings as String()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method LCMS2 MBS Images Plugin 23.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries all available strings.

Some examples using this method:

The items on this page are in the following plugins: MBS Images Plugin.


The biggest plugin in space...