Is is good to use local language on the alt tag?
Asked Answered
T

4

9

Sometimes, we have to do multi-lingual content in e-newsletter. Is is good to use local language on the alt tag? or just plain English.

Tyndall answered 14/6, 2011 at 11:1 Comment(1)
I've never even thought about this before. Good question.Legitimacy
M
13

One important purpose of the alt attribute on the img element is allow screen readers (used by visually impaired people) and other "non-visual" software to know what the image represents. If you want to localize your HTML page you should also localize the contents of the alt attribute.

Modernity answered 14/6, 2011 at 11:7 Comment(0)
G
2

If you could not use an image and had to express the information using text (keeping in mind that text around the image is still there and duplicating content isn't useful) — what language would you use?

That is the language you should use for alt text.

Gayle answered 14/6, 2011 at 11:12 Comment(0)
R
1

It depends on your page content. Use the same language in alt tag what you are using for your page content. Obviously you don't want Arabic language to show-up when image is missing; if your default page language is English.

Hope it answers your question.

Ribonuclease answered 20/5, 2013 at 9:24 Comment(0)
M
0

I can only assure you that you should use translated texts in attributes. Not just alt, but title for example.

If you use English texts there, this should be considered hard-coded string. That is just because that kind of strings are visible to user - even if image is available, contents of these attribute are visible in a tooltip when you place mouse over the image (or in the status bar, depending on web browser).

Mansuetude answered 14/6, 2011 at 13:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.