Skip to content

Commit

Permalink
add french source files
Browse files Browse the repository at this point in the history
  • Loading branch information
Grahame Grieve committed Nov 21, 2024
1 parent aa22897 commit e7e605c
Show file tree
Hide file tree
Showing 9 changed files with 21,009 additions and 950 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,15 @@ private void execute(String core, String igpub, String pascal) throws IOExceptio
generate(source, "rendering-phrases.properties", "rendering-phrases-de.po", "rendering-phrases_de.properties", 2);
generate(source, "rendering-phrases.properties", "rendering-phrases-es.po", "rendering-phrases_es.properties", 3);
generate(source, "rendering-phrases.properties", "rendering-phrases-ja.po", "rendering-phrases_ja.properties", 2);
generate(source, "rendering-phrases.properties", "rendering-phrases-fr.po", "rendering-phrases_fr.properties", 2);
generate(source, "rendering-phrases.properties", "rendering-phrases-nl.po", "rendering-phrases_nl.properties", 2);
generate(source, "rendering-phrases.properties", "rendering-phrases-pt_BR.po", "rendering-phrases_pt-BR.properties", 2);

generate(source, "Messages.properties", "validator-messages-en.po", null, 2);
generate(source, "Messages.properties", "validator-messages-de.po", "Messages_de.properties", 2);
generate(source, "Messages.properties", "validator-messages-es.po", "Messages_es.properties", 3);
generate(source, "Messages.properties", "validator-messages-ja.po", "Messages_ja.properties", 2);
generate(source, "Messages.properties", "validator-messages-fr.po", "Messages_fr.properties", 2);
generate(source, "Messages.properties", "validator-messages-nl.po", "Messages_nl.properties", 2);
generate(source, "Messages.properties", "validator-messages-pt_BR.po", "Messages_pt-BR.properties", 2);

Expand Down Expand Up @@ -321,7 +323,13 @@ private void generate(String source, String src, String dest, String tgt, int co
// load the source file
// update the destination object set for changes from the source file
// save the destination file
List<POObject> objects = loadPOFile(Utilities.path(source, "source", dest));
String fn = Utilities.path(source, "source", dest);
List<POObject> objects;
if (new File(fn).exists()) {
objects = loadPOFile(fn);
} else {
objects = new ArrayList<POGenerator.POObject>();
}
List<PropertyValue> props = loadProperties(Utilities.path(source, src), false);
for (PropertyValue e : props) {
String name = e.getName();
Expand Down
25 changes: 0 additions & 25 deletions org.hl7.fhir.utilities/src/main/resources/Messages_fr.properties
Original file line number Diff line number Diff line change
@@ -1,26 +1 @@
# InstanceValidator = one,other
ABSTRACT_CODE_NOT_ALLOWED =
ALL_OK =
ARRAY_CANNOT_BE_EMPTY =
ATTEMPT_TO_CHANGE_SLICING =
Adding_wrong_path =
Adding_wrong_path__outcomegetPath___resultPathBase__ =
Adding_wrong_path_in_profile___vs_ =
All_observations_should_have_a_performer =
All_observations_should_have_a_subject =
All_observations_should_have_an_effectiveDateTime_or_an_effectivePeriod =
Attempt_to_a_slice_an_element_that_does_not_repeat__from__in_ =
Attempt_to_replace_element_name_for_a_nonchoice_type =
Attempt_to_use_Terminology_server_when_no_Terminology_server_is_available =
Attempt_to_use_a_snapshot_on_profile__as__before_it_is_generated =
BINDING_MAX =
BUNDLE_BUNDLE_ENTRY_FOUND_MULTIPLE =
BUNDLE_BUNDLE_ENTRY_FOUND_MULTIPLE_FRAGMENT =
BUNDLE_BUNDLE_ENTRY_FULLURL_REQUIRED =
BUNDLE_BUNDLE_ENTRY_MULTIPLE_PROFILES_MULTIPLE_MATCHES =
BUNDLE_BUNDLE_ENTRY_MULTIPLE_PROFILES_NO_MATCH =
BUNDLE_BUNDLE_ENTRY_MULTIPLE_PROFILES_NO_MATCH_REASON =
BUNDLE_BUNDLE_ENTRY_NOTFOUND_APPARENT_other =
BUNDLE_BUNDLE_ENTRY_NOTFOUND_FRAGMENT =
BUNDLE_BUNDLE_ENTRY_REVERSE_MSG =
BUNDLE_BUNDLE_ENTRY_REVERSE_R4 =
Loading

0 comments on commit e7e605c

Please sign in to comment.