Trans translation class
What is a multi language site without translations? It's like computer without it's monitor or a pizza without cheese, can't have one without the other. The system holds few option that gives ability to translate from the default language and the other available languages that set on lang.
Singular — the singular form of the sentence.
Plural — the plural form of the sentence.
Count — the number of objects, which will determine whether the singular or the plural form should be returned (there are languages, which have even more than 2 forms).
Option 1 - Translate words or sentences/phrases on the fly as describes at T, usually operates on the view logic. For casual and instant results - Have also ability to define: singular,plural and count to distinct language differences, as described above.
Option 2 - Translate entire pages as describes at lang.
Option 3 - Translate sentences/phrases through model logic as describes at model.
loadTrans this::loadTrans();
loadTransViaArray this::loadTransViaArray();
loadTransViaXml this::loadTransViaXml();
extractTrans this::extractTrans();
extractTransFromArray this::extractTransFromArray();
extractTransFromXml this::extractTransFromXml();
T this::T();
seconds2Human this::seconds2Human();