From: David Kastrup Date: Thu, 26 Dec 2013 21:49:51 +0000 (+0100) Subject: Merge branch 'translation' into staging X-Git-Tag: release/2.19.0-1~35 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2fa31a12ca8c7444ddb5aae5b26d4a2d956d8b1e;hp=-c;p=lilypond.git Merge branch 'translation' into staging --- 2fa31a12ca8c7444ddb5aae5b26d4a2d956d8b1e diff --combined Documentation/lilypond-texi2html.init index b8b1f511f8,cd370bb87d..414c5add23 --- a/Documentation/lilypond-texi2html.init +++ b/Documentation/lilypond-texi2html.init @@@ -121,7 -121,7 +121,7 @@@ $LY_LANGUAGES->{'hu'} = $LY_LANGUAGES->{'it'} = { 'Back to Documentation Index' => 'Torna all\'indice della documentazione', - '

Thanks to ${webdev_link} for hosting ${lily_site}.' => '', + '

Thanks to ${webdev_link} for hosting ${lily_site}.' => 'Grazie a ${webdev_link} per l\'hosting di ${lily_site}.', }; $LY_LANGUAGES->{'ja'} = { @@@ -1094,25 -1094,6 +1094,25 @@@ sub lilypond_css_lines ($$ $Texi2HTML::THISDOC{'CSS_LINES'} .= "\n"; } } + + ## This section makes the manual name visible to CSS through the body tag + ## so that styles can be applied per manual. It will add the manual + ## directory name (e.g., 'notation' or 'learning') as a CSS class, as well + ## as a development status. + + # Parse the input file name to determine the manual we're dealing with. + my ($docu_dir, $docu_name) = split_texi_filename ($Texi2HTML::THISDOC{'input_file_name'}); + + # Hard-coded value to indicate if this is a development version + # ('devStatus') or stable version ('stableStatus') + # TODO: Figure out how to automatically set this value based on the even/odd minor revision number or some other mechanism. + $documentstatus = 'devStatus'; + + # Create the extra information for the tag. + # For example, the development Notation reference in English + # will output in HTML as + $Texi2HTML::Config::BODYTEXT = 'lang="' . $Texi2HTML::THISDOC{current_lang} . '" class="' . $docu_name . ' ' . $documentstatus . '"'; + }