Add reading translations
This commit is contained in:
parent
3df8593c48
commit
e18cfcf0f8
|
@ -1,9 +1,29 @@
|
|||
package org.hl7.fhir.utilities.i18n;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
|
||||
|
||||
public abstract class LanguageFileProducer {
|
||||
|
||||
public class Translations {
|
||||
private String id;
|
||||
private Map<String, String> translations = new HashMap<>();
|
||||
protected Translations(String id) {
|
||||
super();
|
||||
this.id = id;
|
||||
}
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public Map<String, String> getTranslations() {
|
||||
return translations;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public abstract class LanguageProducerLanguageSession {
|
||||
|
||||
protected String id;
|
||||
|
@ -58,4 +78,5 @@ public abstract class LanguageFileProducer {
|
|||
public abstract LanguageProducerSession startSession(String id, String baseLang) throws IOException;
|
||||
public abstract void finish();
|
||||
|
||||
public abstract List<Translations> loadTranslations(String id);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package org.hl7.fhir.utilities.i18n;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
import org.hl7.fhir.utilities.TextFile;
|
||||
import org.hl7.fhir.utilities.Utilities;
|
||||
|
@ -83,4 +84,11 @@ public class PoGetTextProducer extends LanguageFileProducer {
|
|||
}
|
||||
|
||||
|
||||
@Override
|
||||
public List<Translations> loadTranslations(String id) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package org.hl7.fhir.utilities.i18n;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
import org.hl7.fhir.utilities.TextFile;
|
||||
import org.hl7.fhir.utilities.Utilities;
|
||||
|
@ -81,4 +82,10 @@ public class XLIFFProducer extends LanguageFileProducer {
|
|||
public void finish() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Translations> loadTranslations(String id) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue