Hello,

I read the internationalization manual 
http://sphinx-doc.org/latest/intl.html but I am missing a way to 
internationalize images.

I would like to have a source manual in english with english 
screenshots/images and localize both text and images.

I found here:

https://wiki.typo3.org/Localization_%28reST%29

the following part:

Localizing Images 
>
> As for any other reST command, images are not extracted as text. A trick 
> to change the image to be used in a language with another one is to insert 
> images as named images instead: 
>
> .. |some_name_EN| image:: path/to/image.png
>     :alt: Some text describing the image
>
> .. |some_name_FR| image:: path/to/image_for_french.png
>     :alt: Un texte pour décrire l'image
>
> and then use |some_name_EN| as you would insert an image. Running make 
> gettext will extract the marker |some_name_EN| and let you "translate" it 
> to |some_name_FR|, effectively localizing the corresponding image. 
>
> (Francois 
> <https://wiki.typo3.org/wiki/index.php?title=User:Francois&action=edit&redlink=1>
>  
> (talk 
> <https://wiki.typo3.org/wiki/index.php?title=User_talk:Francois&action=edit&redlink=1>)
>  
> 13:37, 17 February 2013 (CET)) Note: in the official documentation, we are 
> switching to using the figure directive which will enable us (in the 
> future) to build a table of contents of images used in a manual. The figure 
> directive cannot be used with inclusions, so the point is rather moot. The 
> figure directive would be translated like the rest of the content. 
>


For me this does not work. As soon as I put something like |some_name_EN| 
in front of my image the image is no longer show in my target html document 
after make html.

Is there a good way / common practice for this scenario? I cannot find 
anything in the documentation or online...

Kind Regards
Niklas

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to