Skip to content
Permalink
Browse files

Fix invalid lang codes in internationalization example

  • Loading branch information
amoeba committed Sep 29, 2017
1 parent 7ae63c7 commit b3efd4192dd5f9421abdbf0b3251fcfa83abc7d5
Showing with 5 additions and 5 deletions.
  1. +5 −5 buildDocBook.xsl
@@ -447,28 +447,28 @@
<dataset id="ds.1">

<!-- English title with Portuguese translation -->
<title xml:lang=""en_US">
<title xml:lang="en-US">
Sample Dataset Description
<value xml:lang="pt_BR">Exemplo Descrição Dataset</value>
<value xml:lang="pt-BR">Exemplo Descrição Dataset</value>
</title>
...
<!-- Portuguese abstract with English translation -->
<abstract>
<para>
Neste exemplo, a tradução em Inglês é secundário
<value xml:lang="en_US">In this example, the English translation is secondary</value>
<value xml:lang="">In this example, the English translation is secondary</value>
</para>
</abstract>
...
<!-- two keywords, each with an equivalent translation -->
<keywordSet>
<keyword keywordType="theme">
árvore
<value xml:lang="en_US">tree</value>
<value xml:lang="en-US">tree</value>
</keyword>
<keyword keywordType="theme">
água
<value xml:lang="en_US">water</value>
<value xml:lang="en-US">water</value>
</keyword>
</keywordSet>
...

0 comments on commit b3efd41

Please sign in to comment.
You can’t perform that action at this time.