private String buildTranslateCSChapter ( final BuildData buildData ) { final ContentSpec contentSpec = buildData . getContentSpec ( ) ; final TranslatedContentSpecWrapper translatedContentSpec = EntityUtilities . getClosestTranslatedContentSpecById ( providerFactory , contentSpec . getId ( ) , contentSpec . getRevision ( ) ) ; final String para ; if ( translatedContentSpec != null ) { final String url = translatedContentSpec . getEditorURL ( buildData . getZanataDetails ( ) , buildData . getBuildLocale ( ) ) ; if ( url != null ) { para = DocBookUtilities . wrapInPara ( DocBookUtilities . buildULink ( url , "Translate this Content Spec" ) ) ; } else { para = DocBookUtilities . wrapInPara ( "No editor link available as this Content Specification hasn't been pushed for Translation." ) ; } } else { para = DocBookUtilities . wrapInPara ( "No editor link available as this Content Specification hasn't been pushed for Translation." ) ; } if ( contentSpec . getBookType ( ) == BookType . ARTICLE || contentSpec . getBookType ( ) == BookType . ARTICLE_DRAFT ) { return DocBookUtilities . buildSection ( para , "Content Specification" ) ; } else { return DocBookUtilities . buildChapter ( para , "Content Specification" ) ; } }
Builds a Chapter with a single paragraph that contains a link to translate the Content Specification .