Skip to content

Commit

Permalink
XWIKI-22484: The alternative for the home link on the logo does not m…
Browse files Browse the repository at this point in the history
…ean anything (#3510)

* Updated the companylogo template to add a proper text alternative
* Added translations for those text alternatives

(cherry picked from commit 3dfbed1)
  • Loading branch information
Sereza7 authored and michitux committed Nov 6, 2024
1 parent df5801b commit 8b2008e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@
#end
#end
<div id="companylogo">
<a href="$!xwiki.getURL($services.wiki.currentWikiDescriptor.mainPageReference)" title="Home" rel="home" #if(!$displayPageHeader)class="navbar-brand"#end>
<img src="$!logourl" alt="Wiki Logo"/>
<a href="$!xwiki.getURL($services.wiki.currentWikiDescriptor.mainPageReference)" rel="home" ##
title="$escapetool.xml($services.localization.render('core.document.header.logo.anchor.text'))" ##
#if(!$displayPageHeader)class="navbar-brand"#end>##
<span class="sr-only">$services.localization.render('core.document.header.logo.anchor.text')</span>
<img src="$!logourl" ##
alt="$escapetool.xml($services.localization.render('core.document.header.logo.image.text'))"/>##
</a>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,9 @@ core.footer.modification=Last modified by {0} on {1}
## This label is only visible by AT users to help with understanding the meaning of the top section containing
## the page title and the info about the last modification of the page.
core.document.header.info.label=Page header
## These two text alternatives are only visible by AT users.
core.document.header.logo.anchor.text=Home
core.document.header.logo.image.text=Logo of the wiki
## This label is only visible by AT users to help with understanding the meaning of the top section containing
## the action buttons: 'Edit', 'Create' and 'More Actions'.
core.document.header.menu.nav.label=Page actions
Expand Down

0 comments on commit 8b2008e

Please sign in to comment.