CLES

12 views
Skip to first unread message

Florian

unread,
Jun 5, 2009, 5:07:45 PM6/5/09
to Google Enterprise Labs
Great work on the Translation integration. I do like the example
stylesheet. I would like though one that has the same functionality
like the one in the Video.
I'm more interested in translating the results than the search term.
We work on a very important implementation, a possible candidate for a
Google business case. If someone could get in touch with me would be
great because I don't want to start reinventing the wheel, I am good
but not so XSLT+java good.

I had the translate engine from some time but didn't manage to
integrate it as beautiful as you did. I really need your help and I'm
sure I can deliver some collateral advantage to you too.

Thanks!


Florian B

unread,
Jun 9, 2009, 9:24:52 AM6/9/09
to Google Enterprise Labs
What I want basically is to know how to recall the variables for
language (dst and src) and how to throw tags around a particular text
to have it translated.

Cyrus Mistry

unread,
Jun 9, 2009, 10:32:02 AM6/9/09
to google-ente...@googlegroups.com
Hi Florian,

The documentation located at http://code.google.com/apis/ajaxlanguage/ should be able to give you all the information you need as well as a lot of great examples of other sample code.

Enjoy!

-Cyrus

Florian B

unread,
Jun 10, 2009, 10:06:26 AM6/10/09
to Google Enterprise Labs
Answer straight from the product manager :D .
Thanks a lot Cyrus. Nice work by the way. I'll send you a PM when the
implementation is finished.



On Jun 9, 5:32 pm, Cyrus Mistry <cyr...@gmail.com> wrote:
> Hi Florian,
>
> The documentation located athttp://code.google.com/apis/ajaxlanguage/shouldbe able to give you

Florian B

unread,
Jun 12, 2009, 6:33:38 AM6/12/09
to Google Enterprise Labs
Cyrus, guys,

I'm reading the documentation but I'm not able to find a way to parse
a JavaScript variable into an XSL variable. I don't even know if
that's possible because the XSL is processed first I think and after
that the JavaScript.
I need the dest_lang variable from the drop down list or from the
cookie to transform it into a xsl variable to be able to use it
anytime I want it in the XSLT.
Could someone help me with the code.

I want either:

<script......
dest_lang_var= cookie (dest_lang)
document.write(.....<xsl variable " + variable from javascript+....</
script>

or

<xsl variable =.... <script...... print variable .... </script> /
>

I don't know how to do it, I do know what I want to achieve.


Reply all
Reply to author
Forward
0 new messages