google-code-export / multi-language-translation

Automatically exported from code.google.com/p/multi-language-translation
1 stars 0 forks source link

Unable to easily show source language of regions that are in the site's base language #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The script can optionally append some text to the bottom of a specified element 
which indicates the source language of the enclosed region, using code similar 
to this:

["elementID", "fr", true],

However this does not work if the region is in the site's base language, e.g. 
using the format:

["elementID", true],

If this is attempted, the script will break. Although it is possible to work 
around this by manually specifying the base language, e.g. 

["elementID", "en", true],

... this is not particularly elegant. 

Ideally the script should check if the final parameter is set to true, and if 
this is the case, to instead interpret it as meaning that the source language 
should be shown. 

This will also need to be compatible with the upcoming feature allowing a 
destination language to be specified also (see 
http://code.google.com/p/multi-language-translation/issues/detail?id=12).

Original issue reported on code.google.com by phathway@gmail.com on 10 Jan 2011 at 9:46