[
http://www.jahia.net/jira/browse/JAHIA-3698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35762#action_35762
]
xlawrence edited comment on JAHIA-3698 at 11/3/08 10:53 AM:
------------------------------------------------------------------
Hi Clément,
I believe the problem comes form the templates. Indeed, I found that some
<input> elements didn't have any "value" attribute specified. For example, the
SearchForm code looked like this:
<%@ include file="declarations.jspf" %>
<div class="box searchForm"><!--start box searchForm -->
<h3><content:resourceBundle resourceName='search'
defaultValue="Search"/></h3>
<div class="searchForm"><!--start searchForm -->
<s:form>
<fieldset>
<legend><content:resourceBundle resourceName='search'
defaultValue="Search"/></legend>
<p><s:term class="searchFormField" tabindex="6"/></p>
<p><input type="submit" class="button" tabindex="7" />
</p>
</fieldset>
</s:form>
</div>
<!--stop searchForm -->
</div>
<!--stop box searchForm -->
If you look at the submit input, you can see that it has no "value" attribute.
So the browser is going to take the default value for that input in the default
language of the browser. To solve that kind of problem, you simply need to
provide a value that come from a resource bundle. Here is the code that solves
the problem for the above example:
<input type="submit" class="button" tabindex="7"
value="<content:resourceBundle resourceName='submit'
defaultValue="Submit"/>"/>
I let your WG have a quick look at the rest of the code of the community
templates. All input elements should have a value attribute implemented the way
I just showed.
was (Author: xlawrence):
Hi Clément,
I believe the problem comes form the templates. Indeed, I found that some
<input> elements didn't have any "value" attribute specified. For example, the
SearchForm code looked like this:
<%@ include file="declarations.jspf" %>
<div class="box searchForm"><!--start box searchForm -->
<h3><content:resourceBundle resourceName='search'
defaultValue="Search"/></h3>
<div class="searchForm"><!--start searchForm -->
<s:form>
<fieldset>
<legend><content:resourceBundle resourceName='search'
defaultValue="Search"/></legend>
<p><s:term class="searchFormField" tabindex="6"/></p>
<p><input type="submit" class="button" tabindex="7" />
</p>
</fieldset>
</s:form>
</div>
<!--stop searchForm -->
</div>
<!--stop box searchForm -->
If you look at the submit input, you can see that it has no attribute. So the
browser is going to take the default value for that input in the default
language of the browser. To solve that kind of problem, you simply need to
provide a value that come from a resource bundle. Here is the code that solves
the problem for the above example:
<input type="submit" class="button" tabindex="7"
value="<content:resourceBundle resourceName='submit'
defaultValue="Submit"/>"/>
I let your WG have a quick look at the rest of the code of the community
templates. All input elements should have a value attribute implemented the way
I just showed.
> Wrong lang ressource bundles
> ----------------------------
>
> Key: JAHIA-3698
> URL: http://www.jahia.net/jira/browse/JAHIA-3698
> Project: Jahia Web Content Management Server (WCMS)
> Issue Type: Bug
> Components: Multilanguage
> Reporter: Clement Egger
> Assignee: Clement Egger
> Priority: Critical
> Fix For: WCM 6.0 (Andromeda)
>
>
> It seems that sometimes the ressurce bundles called in templates depends on
> the local language of the navigator and not on the site language version
> For instance :
> - create a site in two languages (fr / en)
> - open a navigator which default lang is french
> - open another navigator which default lang is english
> go to the home of community templates with both, call the french versin of
> the page
> with the french navigator the label is "envoyer"
> with the english navigator the label is "submit query"
> I wish you could explain here how to correct this, if we find the same
> problem elswhere WG3 must be able to correct it by itself. thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.jahia.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
jira_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/jira_list