Skip to content

Commit

Permalink
In messages.xsd, rename format to type, and adjust messages.xml accor…
Browse files Browse the repository at this point in the history
…dingly.
  • Loading branch information
jhellingman committed Feb 5, 2024
1 parent c003330 commit 2cd7397
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
8 changes: 4 additions & 4 deletions locale/messages.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<msg:message name="msgCountCorrectionsAppliedToText" plural="zero">No corrections have been applied to the text.</msg:message>
<msg:message name="msgCountCorrectionsAppliedToText" plural="one">The following correction has been applied to the text:</msg:message>
<msg:message name="msgCountCorrectionsAppliedToText">The following <msg:param name="count" format="number"/> corrections have been applied to the text:</msg:message>
<msg:message name="msgCountCorrectionsAppliedToText">The following <msg:param name="count" type="integer"/> corrections have been applied to the text:</msg:message>

<msg:message name="msgCorrectionsNotAppliedToText">The following potential corrections have not been applied.</msg:message>
<msg:message name="msgQuestionablesOverview">Overview of potential corrections.</msg:message>
Expand Down Expand Up @@ -58,7 +58,7 @@
<msg:message name="msgPassim" help="Used in references to indicate a word or phrase occurs many times in the work referenced.">Passim</msg:message>
<msg:message name="msgCountOccurrences" plural="zero">no occurrences</msg:message>
<msg:message name="msgCountOccurrences" plural="one">one occurrence</msg:message>
<msg:message name="msgCountOccurrences"><msg:param name="count" format="number"/> occurrences</msg:message>
<msg:message name="msgCountOccurrences"><msg:param name="count" type="integer"/> occurrences</msg:message>
<msg:message name="msgEditDistance">Edit distance</msg:message>
<msg:message name="msgAbbreviationOverview">Overview of abbreviations used.</msg:message>
<msg:message name="msgExpansion" help="An expansion is the fully written form of an abbreviation.">Expansion</msg:message>
Expand Down Expand Up @@ -1255,7 +1255,7 @@
<msg:message name="msgPassim">Passim</msg:message>
<msg:message name="msgCountOccurrences" plural="zero">geen gevallen</msg:message>
<msg:message name="msgCountOccurrences" plural="one">één geval</msg:message>
<msg:message name="msgCountOccurrences"><msg:param name="count" format="number"/> gevallen</msg:message>
<msg:message name="msgCountOccurrences"><msg:param name="count" type="integer"/> gevallen</msg:message>
<msg:message name="msgOpenLibraryBook">Open Library (Boek)</msg:message>
<msg:message name="msgOpenLibraryWork">Open Library (Werk)</msg:message>

Expand Down Expand Up @@ -1356,7 +1356,7 @@
<msg:message name="msgCorrectionsAppliedToText">De volgende verbeteringen zijn aangebracht in de tekst:</msg:message>
<msg:message name="msgCountCorrectionsAppliedToText" plural="zero">Er zijn geen verbeteringen aangebracht in de tekst.</msg:message>
<msg:message name="msgCountCorrectionsAppliedToText" plural="one">De volgende verbetering is aangebracht in de tekst:</msg:message>
<msg:message name="msgCountCorrectionsAppliedToText">De volgende <msg:param name="count" format="number"/> verbeteringen zijn aangebracht in de tekst:</msg:message>
<msg:message name="msgCountCorrectionsAppliedToText">De volgende <msg:param name="count" type="integer"/> verbeteringen zijn aangebracht in de tekst:</msg:message>
<msg:message name="msgCorrectionsOverview">Overzicht van verbeteringen aangebracht in de tekst.</msg:message>
<msg:message name="msgCover">Omslag</msg:message>
<msg:message name="msgCoverImage">Kaftafbeelding</msg:message>
Expand Down
2 changes: 1 addition & 1 deletion locale/messages.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
</xsl:template>

<xsl:template match="msg:param" mode="cp">
<span class="param">{<xsl:value-of select="@name"/><xsl:if test="@format">:<xsl:value-of select="@format"/></xsl:if>}</span>
<span class="param">{<xsl:value-of select="@name"/><xsl:if test="@type">:<xsl:value-of select="@type"/></xsl:if>}</span>
</xsl:template>

</xsl:stylesheet>
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xml-maven-plugin</artifactId>
<version>1.0.2</version>
<executions>
<execution>
<id>transform-examples</id>
Expand Down
6 changes: 4 additions & 2 deletions schemas/messages.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
<xs:documentation>A place-holder for parameters.</xs:documentation>
</xs:annotation>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="format" type="Format" default="string"/>
<xs:attribute name="type" type="Type" default="string"/>
<xs:attribute name="format" type="xs:string"/>
</xs:complexType>

<xs:simpleType name="Plural">
Expand All @@ -103,10 +104,11 @@
</xs:restriction>
</xs:simpleType>

<xs:simpleType name="Format">
<xs:simpleType name="Type">
<xs:restriction base="xs:string">
<xs:enumeration value="string"/>
<xs:enumeration value="number"/>
<xs:enumeration value="integer"/>
<xs:enumeration value="date"/>
<xs:enumeration value="time"/>
</xs:restriction>
Expand Down

0 comments on commit 2cd7397

Please sign in to comment.