\TransvisionTMX

TMX class

Methods to create and manage TMX files

Summary

Methods
Properties
Constants
create()
createOmegat()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

create()

create(array  $strings, string  $target_lang, string  $source_lang) : mixed

Generate a TMX file from a data source

Parameters

array $strings

All the strings the user picked

string $target_lang

Locale picked from which we get translations

string $source_lang

Source locale

Returns

mixed —

string that contains a TMX in xml format, False otherwise

createOmegat()

createOmegat(array  $strings, string  $target_lang, string  $source_lang) : mixed

Generate a TMX file from a data source with the format of OmegaT

Parameters

array $strings

All the strings the user picked

string $target_lang

Locale picked from which we get translations

string $source_lang

Source locale

Returns

mixed —

string that contains a TMX in xml format, False otherwise