Skip to content

ts.Library.TargetLanguage

Joel Lonbeck edited this page Oct 15, 2015 · 3 revisions

DEPRECATED

A target language is any language to which a project (ts.Library.Project) is being translated.

##Interface

  • setReady(ts.Translator.Project p, boolean ready=true) flags the translation as being complete
  • getTranslation(ts.Translator.Frame f) returns the translation for the frame
  • saveTranslation(ts.Translator.Frame f, string text) saves the translation for the frame
  • getTitleTranslation(ts.Translator.Chapter c) returns the title translation for the chapter
  • saveTitleTranslation(ts.Translator.Chapter c, string text) saves the title translation for the chapter
  • getReferenceTranslation(ts.Translator.Chapter c) returns the reference translation for the chapter
  • saveReferenceTranslation(ts.Translator.Chapter c, string text) saves the reference translation for the chapter

#Searching When a user searches for a target language in the ui the results should be filtered first by language code and second by the language name.

For example when searching for aa the list will be filtered to

Afaraf aa
Ghotuo aaa
Alumu-Tesu aab
...