Commit 126d4436 authored by Luc Maisonobe's avatar Luc Maisonobe

Added Danish translations.

Thanks to Lars Næsbye Christensen for the translations!

Fixes issue #346.
parent c2421dc7
......@@ -179,7 +179,7 @@
<name>Christine Fernandez-Martin</name>
</contributor>
<contributor>
<name>Hank Grabowski</name>
<name>Lars N&#230;sbye Christensen</name>
</contributor>
<contributor>
<name>Steven Ports</name>
......
......@@ -203,6 +203,7 @@
* Localized in several languages
* Danish
* English
* French
* Galician
......
......@@ -21,6 +21,10 @@
</properties>
<body>
<release version="9.0" date="TBD" description="TBD">
<action dev="luc" type="add" due-to="Lars Næsbye Christensen">
Added Danish translations.
Fixes issue #346.
</action>
<action dev="luc" type="add" >
Allow estimation of polar motion (offset plus linear drift) and prime meridian
correction (offset plus linear drift) in orbit determination. This is essentially
......
......@@ -27,6 +27,8 @@ import org.junit.Test;
public class OrekitMessagesTest {
private final String[] LANGUAGES_LIST = { "da", "de", "el", "en", "es", "fr", "gl", "it", "no", "ro" };
@Test
public void testMessageNumber() {
Assert.assertEquals(147, OrekitMessages.values().length);
......@@ -34,7 +36,7 @@ public class OrekitMessagesTest {
@Test
public void testAllKeysPresentInPropertiesFiles() {
for (final String language : new String[] { "de", "el", "en", "es", "fr", "gl", "it", "no", "ro" } ) {
for (final String language : LANGUAGES_LIST) {
ResourceBundle bundle =
ResourceBundle.getBundle("assets/org/orekit/localization/OrekitMessages",
new Locale(language), new OrekitMessages.UTF8Control());
......@@ -54,7 +56,7 @@ public class OrekitMessagesTest {
@Test
public void testAllPropertiesCorrespondToKeys() {
for (final String language : new String[] { "de", "el", "en", "es", "fr", "gl", "it", "no", "ro" } ) {
for (final String language : LANGUAGES_LIST) {
ResourceBundle bundle =
ResourceBundle.getBundle("assets/org/orekit/localization/OrekitMessages",
new Locale(language), new OrekitMessages.UTF8Control());
......@@ -89,7 +91,7 @@ public class OrekitMessagesTest {
@Test
public void testVariablePartsConsistency() {
for (final String language : new String[] { "de", "el", "en", "es", "fr", "gl", "it", "no", "ro" } ) {
for (final String language : LANGUAGES_LIST) {
Locale locale = new Locale(language);
for (OrekitMessages message : OrekitMessages.values()) {
MessageFormat source = new MessageFormat(message.getSourceString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment