-
Notifications
You must be signed in to change notification settings - Fork 2
ts.Library.Project
A project at a high level is some digital content that has been prepared to be translated into any number of target languages (ts.Library.TargetLanguage). The digital content in the project exists as a translation in one of of possibly several source/gateway languages (ts.Library.SourceLanguage). Within a single source language there may be one or more versions of the translated content represented as a resource (ts.Library.Resource). These resources contain the translated content along with additional supplemental information.
The translated content is further organized into chapters (ts.Library.Chapter) and frames (ts.Library.Frame). This organization allows translators to work on a small piece of the project at a time.
##Interface
ts.Translator.Chapter getChapter(string chapterId)
ts.Translator.Chapter[] getChapters()
ts.Translator.Frame getFrame(string chapterId, string frameId)
ts.Translator.SourceLanguage getSourceLanguage()
-
ts.Translator.SourceLanguage[] getSourceLanguages()
convenience method to return all source languages for the project -
string getTitle()
returns the title of the project -
string getDescription()
returns the description of the project -
string getImage()
returns the path to the project image -
string getSortKey()
returns the sort key -
ts.Translator.Term getTerm(string id)
returns a key term by id -
ts.Translator.Term[] getTerms()
returns all the key terms in the project
TODO: we need to spec out how the project meta will be handled. These are really just categories.