VirtualBox

Changeset 93801 in vbox for trunk/doc


Ignore:
Timestamp:
Feb 16, 2022 7:21:18 PM (3 years ago)
Author:
vboxsync
Message:

doc/manual: Unify translation file handling for the manpage link replacement generation.

Location:
trunk/doc/manual
Files:
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/Config.kmk

    r93800 r93801  
    344344+ $$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/xref-to-text.xsl.cat: \
    345345                $$(VBOX_PATH_MANUAL_SRC)/$(1)/docbook-refentry-link-replacement-xsl-gen.xsl \
     346                $$(VBOX_PATH_MANUAL_SRC)/docbook-refentry-link-replacement-xsl-gen.xsl \
    346347                $$(addprefix $$(VBOX_PATH_MANUAL_SRC)/en_US/,$$(VBOX_MANUAL_XML_FILES)) \
    347348                $$(VBOX_MANUAL_XML_FILES_COMMON) \
  • trunk/doc/manual/docbook-refentry-link-replacement-xsl-gen.xsl

    r92824 r93801  
    11<?xml version="1.0"?>
    22<!--
    3     docbook-refentry-link-replacement-xsl-gen.xsl.xsl:
     3    docbook-refentry-link-replacement-xsl-gen.xsl:
    44        XSLT stylesheet for generate a stylesheet that replaces links
    55        to the user manual in the manpages.
     
    149149</xsl:template>
    150150
     151<xsl:template match="refsect2[@id]/title">
     152  <xsl:text>&lt;xsl:template match="xref[@linkend='</xsl:text>
     153  <xsl:value-of select="../@id"/><xsl:text>']"&gt;
     154  &lt;xsl:text&gt;&quot;</xsl:text>
     155  <xsl:value-of select="normalize-space()"/><xsl:text>&quot;&lt;/xsl:text&gt;
     156&lt;/xsl:template&gt;
     157</xsl:text>
     158  <xsl:apply-templates/>
     159</xsl:template>
     160
    151161
    152162<!--
  • trunk/doc/manual/en_US/docbook-refentry-link-replacement-xsl-gen.xsl

    r93737 r93801  
    11<?xml version="1.0"?>
    22<!--
    3     docbook-refentry-link-replacement-xsl-gen.xsl.xsl:
     3    docbook-refentry-link-replacement-xsl-gen.xsl:
    44        XSLT stylesheet for generate a stylesheet that replaces links
    55        to the user manual in the manpages.
     
    2525
    2626  <!-- Translated strings -->
    27   <xsl:variable name="sChapter" select="'глава'"/>
    28   <xsl:variable name="sSection" select="'секция'"/>
    29   <xsl:variable name="sOfManual" select="'руководства пользователя'"/>
    30   <xsl:variable name="sInManual" select="'руководства пользователя'"/>
     27  <!-- none needed, English is the base language -->
    3128
    3229</xsl:stylesheet>
  • trunk/doc/manual/ru_RU/docbook-refentry-link-replacement-xsl-gen.xsl

    r93478 r93801  
    11<?xml version="1.0"?>
    22<!--
    3     docbook-refentry-link-replacement-xsl-gen.xsl.xsl:
     3    docbook-refentry-link-replacement-xsl-gen.xsl:
    44        XSLT stylesheet for generate a stylesheet that replaces links
    55        to the user manual in the manpages.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette