... | ... | @@ -92,6 +92,8 @@ There is this page where you can see some of the [current problematic strings](h |
|
|
|
|
|
## The `alt` attribute
|
|
|
|
|
|
#### in HTML
|
|
|
|
|
|
When we have images for translation, many times they have an alt attribute, as this:
|
|
|
|
|
|
`<img class="" src="../../static/images/how-tor-works.png" alt="How Tor Browser works">`
|
... | ... | @@ -100,8 +102,17 @@ In the example, the `alt` attribute value is `"How Tor Browser works"`**. And we |
|
|
|
|
|
To check the `alt` attributes on our website's image you can use the [translate_alt](https://www.transifex.com/otf/tor-project-support-community-portal/translate/#my/$/158404175?q=tags%3Atranslate_alt) tag in Transifex (change to your language on the dropdown).
|
|
|
|
|
|
#### in markdown
|
|
|
|
|
|
Sometimes the images are included with markdown, as this:
|
|
|
|
|
|
`![Image of an onion with a caution sign](/static/images/black-onion-with-caution.png)`
|
|
|
|
|
|
In this case, `Image of an onion with a caution sign` is the alt attribute that needs translation.The address of the image is between parenthesis and is usually not changed.
|
|
|
|
|
|
Please read this [section of the transifex documentation to see how to edit the HTML attributes](https://docs.transifex.com/translation/html-files#translating-html-attributes). If you are going to translate many, maybe it is better to use the [raw editor mode](https://docs.transifex.com/translation/tools-in-the-editor/#translate-using-the-raw-mode)
|
|
|
|
|
|
|
|
|
## How to find the strings in the websites
|
|
|
|
|
|
When on the transifex page, see in the context tab:
|
... | ... | |