ItEr22S04ArquitecturaServidorItEr21S04: Extend i18n tag so it can receive one extra parameter (only useful if that parameter is not a data binding)
This commit is contained in:
parent
fc56a4b929
commit
ecfc98d41c
3 changed files with 13 additions and 2 deletions
|
|
@ -12,4 +12,15 @@
|
|||
<description>
|
||||
</description>
|
||||
</function>
|
||||
|
||||
<!-- Pass one extra argument -->
|
||||
<function>
|
||||
<name>__</name>
|
||||
<function-class>org.navalplanner.web.I18nHelper</function-class>
|
||||
<function-signature>
|
||||
java.lang.String _(java.lang.String name, java.lang.Object arg0)
|
||||
</function-signature>
|
||||
<description>
|
||||
</description>
|
||||
</function>
|
||||
</taglib>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<window title="${i18n:_('Erro ${requestScope['javax.servlet.error.status_code']}')}"
|
||||
<window title="${i18n:__('Erro', ${requestScope['javax.servlet.error.status_code']})}"
|
||||
width="400px" border="normal" mode="modal"
|
||||
apply="org.navalplanner.web.error.PageForErrorOnEvent">
|
||||
<vbox>
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ use Date::Format;
|
|||
|
||||
my $DEBUG = 0;
|
||||
my $TOKEN = 'i18n:_';
|
||||
my @REG_EXPS = qw(i18n:_\\('(.*?)'\\) <i18n\s.*?value=["'](.*?)["']);
|
||||
my @REG_EXPS = qw(i18n:_{1,2}\\('(.*?)'.*?\\) <i18n\s.*?value=["'](.*?)["']);
|
||||
my $DEFAULT_KEYS_FILE = "./keys.pot";
|
||||
my %ENTRIES;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue