39 const std::vector<std::string> targetTexts = {},
40 bool hasPlural =
false);
110 std::string _sourceText;
121 std::vector<std::string> _targetTexts;
Information on plural forms for the supported languages.
std::string getTargetText(int pluralFormIndex=0) const
Get the target text (translated string) associated to pluralFormIndex.
std::string getTranslation() const
Get the target text of a non-plural translation unit.
bool getPluralStatus() const
Return the plural status of a translation unit.
std::size_t getNumberOfTargetTexts() const
Return the number of target texts (plural forms) present in the object.
std::string getSourceText() const
Return the source text of the object, i.e. the “engineering English” form.
TranslationUnit(const std::string sourceText={}, const std::vector< std::string > targetTexts={}, bool hasPlural=false)
void setPluralStatus(int hasPlural)
Set the plural status of a translation unit.
void setTargetTexts(std::vector< std::string > texts)
Set all target texts at once.
void setSourceText(std::string text)
Set the source text of the object, i.e. the “engineering English” form.
static void setupGhost()
Set up a Nasal type that wraps TranslationUnit.
void setTargetText(int pluralFormIndex, std::string text)
Set the target text for the specified plural form.
flightgear::LanguageInfo::intType intType