Javascript and i18n

1 message Options
Embed this post
Permalink
Cequi Chlorraine

Javascript and i18n

Reply Threaded More More options
Print post
Permalink
Hi again,

Another question : how would you translate a sentence in a javascript (inlined in html template), please ? 

Example : 

    xml:lang="en"
    lang="en"
    tal:attributes="lang language;
                    xml:lang language"
metal:use-macro="here/main_template/macros/master"
i18n:domain="mydomain">

<h1>This is life ? </h1>

<script>
alert("How do I translate this string, please");

</script>
</html>

Thanx for your help


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive,highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today http://p.sf.net/sfu/adobe-com
_______________________________________________
Plone-i18n mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-i18n