Modify taglib config to correct /WEB-INF/tld/i18n.tld not found errors
Copy i18n.tld to same location as config.xml and update config.xml to point at new location. Fixes #11
This commit is contained in:
parent
50587bfa02
commit
3cd17ed7a1
2 changed files with 27 additions and 1 deletions
|
|
@ -2,6 +2,6 @@
|
|||
<config-name>i18n</config-name>
|
||||
<taglib>
|
||||
<taglib-uri>http://org.libreplan.web/i18n</taglib-uri>
|
||||
<taglib-location>libreplan-webapp/WEB-INF/tld/i18n.tld</taglib-location>
|
||||
<taglib-location>/metainfo/tld/i18n.tld</taglib-location>
|
||||
</taglib>
|
||||
</config>
|
||||
26
libreplan-webapp/src/main/resources/metainfo/tld/i18n.tld
Normal file
26
libreplan-webapp/src/main/resources/metainfo/tld/i18n.tld
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<taglib>
|
||||
<uri>http://org.libreplan.web/i18n</uri>
|
||||
<description>
|
||||
</description>
|
||||
<function>
|
||||
<name>_</name>
|
||||
<function-class>org.libreplan.web.I18nHelper</function-class>
|
||||
<function-signature>
|
||||
java.lang.String _(java.lang.String name)
|
||||
</function-signature>
|
||||
<description>
|
||||
</description>
|
||||
</function>
|
||||
|
||||
<!-- Pass one extra argument -->
|
||||
<function>
|
||||
<name>__</name>
|
||||
<function-class>org.libreplan.web.I18nHelper</function-class>
|
||||
<function-signature>
|
||||
java.lang.String _(java.lang.String name, java.lang.Object arg0)
|
||||
</function-signature>
|
||||
<description>
|
||||
</description>
|
||||
</function>
|
||||
</taglib>
|
||||
Loading…
Add table
Reference in a new issue