Commit 9d714ed4 authored by Guillaume Porte's avatar Guillaume Porte 😶
Browse files

ajout test sur contenu (text ou html)

parent 697755c3
Loading
Loading
Loading
Loading
+3 −1
Changes for rxq/i18n.xqm: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -19,7 +19,9 @@ declare function max.i18n:getText($projectId as xs:string, $key as xs:string, $l
  
  return
    try{
       if(doc($projectI18nFile)//entry[@key=$key])
       if(doc($projectI18nFile)//entry[@key=$key and @type="html"])
       then doc($projectI18nFile)//entry[@key=$key]
       else if(doc($projectI18nFile)//entry[@key=$key])
       then doc($projectI18nFile)//entry[@key=$key]/text()
       else if(doc($i18nResourceFile)//entry[@key=$key])
            then doc($i18nResourceFile)//entry[@key=$key]/text()