Skip to content

Commit

Permalink
add localization for note titles
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Jul 12, 2019
1 parent 845441b commit 7b8ec2a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion catalogues/dictionary_de.xml
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,9 @@
<entry xml:id="notatedMusic">Notenbeispiel</entry>
<entry xml:id="figure">Abbildung</entry>
<entry xml:id="textConstitution">Textkonstitution</entry>
<entry xml:id="commentary">Einzelstellenerläuterung</entry>
<entry xml:id="note_commentary">Einzelstellenerläuterung</entry>
<entry xml:id="note_definition">Begriffsdefinition</entry>
<entry xml:id="note_textConst">Textkonstitution</entry>
<entry xml:id="additionalSources">Weitere Textquellen</entry>
<entry xml:id="apiDocumentation">API Dokumentation</entry>
<entry xml:id="openapiDocumentation">Swagger OpenAPI Dokumentation</entry>
Expand Down
4 changes: 3 additions & 1 deletion catalogues/dictionary_en.xml
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,9 @@
<entry xml:id="notatedMusic">Sample Notation</entry>
<entry xml:id="figure">Figure</entry>
<entry xml:id="textConstitution">Text Constitution</entry>
<entry xml:id="commentary">Commentary</entry>
<entry xml:id="note_commentary">Commentary</entry>
<entry xml:id="note_definition">Definition</entry>
<entry xml:id="note_textConst">Text Constitution</entry>
<entry xml:id="additionalSources">Additional Sources</entry>
<entry xml:id="apiDocumentation">API Documentation</entry>
<entry xml:id="openapiDocumentation">Swagger OpenAPI Documentation</entry>
Expand Down
2 changes: 1 addition & 1 deletion xsl/apparatus.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<xsl:attribute name="id" select="$id"/>
<xsl:attribute name="data-title">
<xsl:if test="self::tei:note">
<xsl:value-of select="wega:getLanguageString(@type,$lang)"/>
<xsl:value-of select="wega:getLanguageString(string-join((local-name(),@type), '_'),$lang)"/>
</xsl:if>
</xsl:attribute>
<xsl:choose>
Expand Down

0 comments on commit 7b8ec2a

Please sign in to comment.