Nuxeo mailing list archives
[Nuxeo-tickets] Re: [Nuxeo Repository] #1645: alt attribute of
icons img tags is not translated.
Nuxeo Repository
trac at nuxeo.com
Wed Jun 28 16:40:49 CEST 2006
#1645: alt attribute of icons img tags is not translated.
--------------------------------------+-------------------------------------
Reporter: joseluis.rosa at iavante.es | Owner: jmorliaguet
Type: enhancement | Status: new
Priority: P2 | Milestone: CPS 3.4.3
Component: CPSPortlets | Version: 3.4.0
Severity: normal | Resolution:
Keywords: |
--------------------------------------+-------------------------------------
Comment (by joseluis.rosa at iavante.es):
Even, the title attribute of the img tag could be set too.
{{{
IMG_TAG = '<img src="%s" width="%s" height="%s" alt="%s" title="%s"/>'
}}}
{{{
language = self.translation_service.getSelectedLanguage()
alt_text = self.Localizer.default.gettext(alt, language)
img_tag = IMG_TAG % (base_url + icon_path,
getattr(img, 'width', 0),
getattr(img, 'height', 0),
alt_text, alt_text)
}}}
--
Ticket URL: <http://svn.nuxeo.org/trac/pub/ticket/1645>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository
More information about the Nuxeo-tickets
mailing list
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.