Links only available in other language than page #311
shawnthompson
started this conversation in
Best Practices (Open Discussions)
Replies: 1 comment
-
|
Also another thing to add to this discussion. Should we be translating titles or link to English only pages into French titles? A great example is when we are linking to the Harmonised European Standard on Accessibility (EN 301 549) on a French page. Question is should we be using the English text when linking to an English page instead of translating it? Another discussion we should have for this example should be about adding the files format and size in the link text also. Feel free to open a new discussion if you'd like to chat about that. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Continued from DAT: Github Footer · gc-da11yn/gc-da11yn.github.io · Discussion #305.
In the footer discussion we talked about adding Problèmes (Issues) | en anglais seulement link to the footer and formatting it with a pipe ( | ) instead of putting the extra text in parenthesis like we usually do for links to something in a different language,.
This discussion was started to come up with an accessible pattern to use on our site when linking to content that isn't the same as the language of the page we are linking from.
Most links on Government of Canada websites use a similar pattern to the following:
If you do a Code search you can see that we are using both variants from above on our site.
The Canada.ca Style guide is using a different variation. The accessibility community is not a fan of their version because it places the (French only) text outside of the actual link text and we feel it should be inside the link text as it's important information needed to understand the link text. So I really don't want to follow their guidance but wanted to acknowledge that we know about it.
See section 7.4 Linking to non-government content for more details.
Regardless of the format we use for the text the HTML should be marked as the following:
Making sure you are using the
hreflangattribute to programatically define the language of the target page. In this example we are also adding a<span lang="fr">around the word Issues because it's the English term.What are your thoughts?
Beta Was this translation helpful? Give feedback.
All reactions