Method | Description | |
---|---|---|
PrepareDataBookTranslationGroups ( |
Normally, the connection between bloom-translationGroups and the dataDiv is that each bloom-editable child (which has an @lang) pulls the corresponding string from the dataDiv. This happens in BookData. That works except in the case of xmatter which a) start empty and b) only normally get filled with .bloom-editable's for the current languages. Then, when bloom would normally show a source bubble listing the string in other languages, well there's nothing to show (the bubble can't pull from dataDiv). So our solution here is to pre-pack the translationGroup with bloom-editable's for each of the languages in the data-div. The original (an possibly only) instance of this is with book titles. See bl-1210.
|
|
PrepareElementsInPageOrDocument ( |
For each group of editable elements in the div which have lang attributes (normally, a .bloom-translationGroup div), make a new element with the lang code of the vernacular (normally, a .bloom-editable). Also enable/disable editing as warranted (e.g. in shell mode or not)
|
|
SetInitialMultilingualSetting ( |
This is used when a book is first created from a source; without it, if the shell maker left the book as trilingual when working on it, then every time someone created a new book based on it, it too would be trilingual.
|
|
UpdateContentLanguageClasses ( |
We stick 'contentLanguage2' and 'contentLanguage3' classes on editable things in bilingual and trilingual books
|
Method | Description | |
---|---|---|
GetOrderOfThisLanguageInTheTextBlock ( string editableIso, string vernacularIso, string contentLanguageIso2, string contentLanguageIso3 ) : int | ||
MakeElementWithLanguageForOneGroup ( |
For each group (meaning they have a common parent) of editable items, we need to make sure there are the correct set of copies, with appropriate @lang attributes
|
|
PrepareElementsOnPageOneLanguage ( |
||
RemoveXmlChildren ( List |
||
ShouldNormallyShowEditable ( string lang, string dataDefaultLanguages, string contentLanguageIso2, string contentLanguageIso3, |
Here, "normally" means unless the user overrides via a .bloom-visibility-user-on/off
|
|
StripOutText ( |
Remove nodes that are either pure text or exist only to contain text, including BR and P Elements with a "bloom-cloneToOtherLanguages" class are preserved
|
|
UpdateRightToLeftSetting ( |
public static PrepareDataBookTranslationGroups ( |
||
pageOrDocumentNode | ||
languageCodes | IEnumerable |
|
return | void |
public static PrepareElementsInPageOrDocument ( |
||
pageOrDocumentNode | ||
collectionSettings | ||
return | void |
public static SetInitialMultilingualSetting ( |
||
bookData | ||
oneTwoOrThreeContentLanguages | int | |
collectionSettings | ||
return | void |
public static UpdateContentLanguageClasses ( |
||
elementOrDom | ||
settings | ||
vernacularIso | string | |
contentLanguageIso2 | string | |
contentLanguageIso3 | string | |
return | void |