Package translate :: Package storage :: Module ts2
[hide private]
[frames] | no frames]

Module ts2

source code

Module for handling Qt linguist (.ts) files.

This will eventually replace the older ts.py which only supports the older format. While converters haven't been updated to use this module, we retain both.

TS file format 4.3, Example, Plurals forms

Specification of the valid variable entries, 2

Classes [hide private]
  tsunit
A single term in the xliff file.
  tsfile
Class representing a XLIFF file store.
Variables [hide private]
  NPLURALS = {'ar': 6, 'cs': 3, 'cy': 5, 'en': 2, 'fr': 2, 'ga':...
Variables Details [hide private]

NPLURALS

Value:
{'ar': 6,
 'cs': 3,
 'cy': 5,
 'en': 2,
 'fr': 2,
 'ga': 3,
 'jp': 1,
 'lt': 3,
...