/* Script: Translate model - ADD properties to objects : EN and FR Christine DESSUS - 2023 10 27 */ console.log("Translate model"); console.clear(); $("concept").each(function(e) { if($(e).prop("EN") == null) { $(e).prop("EN", e.name); } if($(e).prop("FR") == null) { $(e).prop("FR", e.name); } $("element").not("junction").objectRefs().attr("label-expression", "${property:$model{property:Language}}\n(${type})"); }) $("relationship").each(function(e) { if($(e).prop("EN") == null) { $(e).prop("EN", e.name); } if($(e).prop("FR") == null) { $(e).prop("FR", e.name); } $("relationship").not("junction").objectRefs().attr("label-expression", "${property:$model{property:Language}}\n(${type})"); })