I would like a specific element to be translated in a specific way for a specific language pair. For example, a movie-related web page like:
<!DOCTYPE html>
<html lang="tr">
...
<p>
<span>Kamera:</span>
<span translate="no">XYZ</span>
</p>
when translated (by Google) from Turkish to English, it becomes:
Camera: XYZ
which is OK. But when translated to Greek, it becomes:
ΦΩΤΟΓΡΑΦΙΚΗ ΜΗΧΑΝΗ: XYZ
which is not correct in this context and also the letter case becomes strangely UPPERCASE.
So, I would like to be able to give a hint to the translation engine, with a code like this:
<p>
<span translate="tr:el:Κάμερα">Kamera:</span>
<span translate="no">XYZ</span>
</p>
I know that the HTML code above is invalid. Is there a pure HTML-type method to give such hints to translation engines? A Google-specific method might also help.
2
Answers
This is one way you can do it.
I don’t know any good solution to that problem, though you can try to exploit css queries to replace content, something like this:
it is not very reliable method, but it works at least in chrome