File tree 1 file changed +9
-7
lines changed
form-builder/jvm/src/main/resources/forms/orbeon/builder/form
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 179
179
name =" template"
180
180
value =" instance('fr-form-instance')" />
181
181
182
- <!-- Set language in all blank @xml:lang on template -->
183
- <!-- See https://github.com/orbeon/orbeon-forms/issues/3457 -->
184
182
<xf : var
185
183
name =" fb-lang"
186
184
value ="
213
211
)
214
212
)" />
215
213
216
- <xf : setvalue
217
- iterate =" $template//@xml:lang[xxf:is-blank()]"
218
- ref =" ."
219
- value =" $fb-lang" />
220
-
221
214
<!-- Used after loading a template -->
222
215
<xf : action if =" exists(event('allow-template-use'))" >
223
216
<!-- Add/remove allow-template-use setting as needed -->
234
227
ref =" $metadata/thumbnail" />
235
228
</xf : action >
236
229
230
+ <!-- Set language in all blank `@xml:lang` on template to `$fb-lang` computed above.
231
+ See https://github.com/orbeon/orbeon-forms/issues/3457
232
+ Q: What if someone creates a template in multiple languages?
233
+ In default templates: `title`, `description`, and `resource` element.
234
+ TODO: If `xml:lang` is already populated, skip? -->
235
+ <xf : setvalue
236
+ iterate =" $template//@xml:lang[xxf:is-blank()]"
237
+ ref =" ."
238
+ value =" $fb-lang" />
237
239
238
240
<xf : setvalue
239
241
if =" exists(event('title'))"
You can’t perform that action at this time.
0 commit comments