missed file
This commit is contained in:
parent
a2e6b001b3
commit
2258993861
|
@ -13,6 +13,7 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.hl7.fhir.utilities.DebugUtilities;
|
||||
import org.hl7.fhir.utilities.StringPair;
|
||||
import org.hl7.fhir.utilities.TextFile;
|
||||
import org.hl7.fhir.utilities.Utilities;
|
||||
|
@ -87,6 +88,7 @@ public class POGenerator {
|
|||
}
|
||||
|
||||
private List<String> prefixes = new ArrayList<>();
|
||||
private int noTrans = 0;
|
||||
|
||||
private void execute(String core, String igpub, String pascal) throws IOException {
|
||||
String source = Utilities.path(core, "/org.hl7.fhir.utilities/src/main/resources");
|
||||
|
@ -409,7 +411,10 @@ public class POGenerator {
|
|||
if (o.duplicate) {
|
||||
b.append("msgctxt \""+o.id+"\"\r\n");
|
||||
}
|
||||
String m = tfxMode && Utilities.noString(o.msgid) ? "-- no content: do not translate --" : o.msgid;
|
||||
if (tfxMode && Utilities.noString(o.msgid)) {
|
||||
DebugUtilities.breakpoint();
|
||||
}
|
||||
String m = tfxMode && Utilities.noString(o.msgid) ? "-- no content: do not translate #"+(++noTrans )+" --" : o.msgid;
|
||||
b.append("msgid \""+wrapQuotes(m)+"\"\r\n");
|
||||
if (o.msgidPlural != null) {
|
||||
b.append("msgid_plural \""+wrapQuotes(o.msgidPlural)+"\"\r\n");
|
||||
|
@ -417,7 +422,11 @@ public class POGenerator {
|
|||
o.msgstr.add("");
|
||||
}
|
||||
for (int i = 0; i < o.msgstr.size(); i++) {
|
||||
b.append("msgstr["+i+"] \""+wrapQuotes(o.msgstr.get(i))+"\"\r\n");
|
||||
String s = o.msgstr.get(i);
|
||||
// if (tfxMode && Utilities.noString(s)) {
|
||||
// s = Utilities.noString(i == 0 ? o.msgid : o.msgidPlural) ? "-- no content: do not translate --" : "";
|
||||
// }
|
||||
b.append("msgstr["+i+"] \""+wrapQuotes(s)+"\"\r\n");
|
||||
}
|
||||
} else {
|
||||
if (o.msgstr.size() == 0) {
|
||||
|
|
Loading…
Reference in New Issue