You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rave.apache.org by René Peinl <re...@hof-university.de> on 2013/01/29 15:08:37 UTC

Internationalization and rendering of RAVE gadgets

Dear RAVE community,

we are currently working on an intranet portal based on RAVE/Shindig and are
implementing some Open Social gadgets for that (see attached screenshots, up
to now only in German).

We encountered two issues and we are not sure what is the “right” way to do
it.

-        Gadgets are written in HTML and JavaScript, but you are usually
fetching some data/prerendered html from a backend system. In our case it is
not quite clear what the backend system is. My guess would be that Rave is
the backend and Shindig is only the data provider, so we are looking for the
“right” way to implement a gadget backend in Rave. I think there should be a
JSP page for that, but we would be interested in seeing a working example.

-        We want to provide all labels in German and English based on either
browser settings or user preferences. What is the Rave way of doing that?

Any advice is welcome.

Thanks in advance

René

 

 

 

 

Prof. Dr. René Peinl

Lehrgebiet: Architektur von Web-Anwendungen

Hochschule Hof

Alfons-Goppel-Platz 1

95028 Hof

 

Tel: 09281 409-4820

mailto:  <ma...@hof-university.de> rene.peinl@hof-university.de

 


AW: Internationalization and rendering of RAVE gadgets

Posted by René Peinl <re...@hof-university.de>.
Just noticed that file attachments are stripped by the mailing list system.
http://dl.dropbox.com/u/32445341/messages_de.properties


-----Ursprüngliche Nachricht-----
Von: René Peinl [mailto:rene.peinl@hof-university.de] 
Gesendet: Freitag, 1. Februar 2013 13:55
An: dev@rave.apache.org; matthias.niederhausen@t-systems-mms.com
Cc: Florian Holzschuher
Betreff: AW: Internationalization and rendering of RAVE gadgets

Dear Matthias,
please find enclosed our translation file for Rave 0.16. 
As you can see, special characters have to be written with their unicode
code \uXXXX.
We also found out, that some labels are missing.
Hope that helps. Have a nice weekend
René

-----Ursprüngliche Nachricht-----
Von: Matthias Niederhausen [mailto:matthias.niederhausen@t-systems-mms.com]
Gesendet: Freitag, 1. Februar 2013 13:36
An: dev@rave.apache.org
Betreff: AW: Internationalization and rendering of RAVE gadgets

Hi guys,

I have begun to create a German translation file for Rave, and now it is
just missing the labels for the admin area. However, I have trouble with
special characters, which are garbled in the final output. I have tried both
ISO-8859-1 and UTF-8 encodings, but to no avail. Maybe anyone has an idea?

You can find my file at
https://dl.dropbox.com/u/2387326/messages_de.properties


Kind regards,
Matthias

---
Dipl.-Medieninf. Matthias Niederhausen
T-Systems Multimedia Solutions GmbH
CU Innovation Services

Phone: +49 351 2820 2099
E-Mail: mtni@mms-dresden.de 

---
T-Systems Multimedia Solutions GmbH
Commercial register: Municipal Court Dresden HRB 11433

-----Ursprüngliche Nachricht-----
Von: Matt Franklin [mailto:m.ben.franklin@gmail.com]
Gesendet: Dienstag, 29. Januar 2013 17:20
An: dev@rave.apache.org
Betreff: Re: Internationalization and rendering of RAVE gadgets

Hi René,

Responses are inline below.

-Matt

On Tue, Jan 29, 2013 at 9:08 AM, René Peinl <re...@hof-university.de>
wrote:
> Dear RAVE community,
>
> we are currently working on an intranet portal based on RAVE/Shindig 
> and are implementing some Open Social gadgets for that (see attached 
> screenshots, up to now only in German).
>
> We encountered two issues and we are not sure what is the “right” way 
> to do it.
>
> -        Gadgets are written in HTML and JavaScript, but you are usually
> fetching some data/prerendered html from a backend system. In our case 
> it is not quite clear what the backend system is. My guess would be 
> that Rave is the backend and Shindig is only the data provider, so we 
> are looking for the “right” way to implement a gadget backend in Rave.
> I think there should be a JSP page for that, but we would be 
> interested in
seeing a working example.

It is possible to use a JSP, PHP or other page to render content that a
gadget just "points" to.  This is termed a URL type[1] gadget and is the
least flexible option in terms of API integration.  Most of the time, it is
recommended that you use the osapi.http [2] or gadgets.io.makeRequest [3]
methods for proxying calls back to HTTP services that return JSON.  These
services can live anywhere on the network, so long as the location is
accessible to Shindig.
Additionally, you can look at data pipelining [4], which makes the call
during the gadget rendering operation and inserts the result into the
javascript data context.

Shindig does have a few data elements that it exposes on its own
(ActivityStreams, People, etc).  These can be accessed using the social data
wrappers[5].

[1]:
http://opensocial-resources.googlecode.com/svn/spec/2.5/Core-Gadget.xml#Rend
ering
[2]:
http://opensocial-resources.googlecode.com/svn/spec/2.5/Core-Gadget.xml#osap
i.http
[3]:
http://opensocial-resources.googlecode.com/svn/spec/2.5/Core-Gadget.xml#gadg
ets.io.makeRequest
[4]:
http://opensocial-resources.googlecode.com/svn/spec/2.5/Core-Gadget.xml#Data
Pipelining
[5]:
http://opensocial-resources.googlecode.com/svn/spec/2.5/Social-Gadget.xml

>
> -        We want to provide all labels in German and English based on
either
> browser settings or user preferences. What is the Rave way of doing that?

Rave has support for English, Dutch & Spanish.  To add German, visit
http://rave.apache.org/documentation/translate-portal.html for instructions.
We would love to have the German translations added back to our codebase, so
please consider submitting a patch.


>
> Any advice is welcome.
>
> Thanks in advance
>
> René
>
>
>
>
>
>
>
>
>
> Prof. Dr. René Peinl
>
> Lehrgebiet: Architektur von Web-Anwendungen
>
> Hochschule Hof
>
> Alfons-Goppel-Platz 1
>
> 95028 Hof
>
>
>
> Tel: 09281 409-4820
>
> mailto: rene.peinl@hof-university.de
>
>



AW: Internationalization and rendering of RAVE gadgets

Posted by René Peinl <re...@hof-university.de>.
Dear Matthias,
please find enclosed our translation file for Rave 0.16. 
As you can see, special characters have to be written with their unicode
code \uXXXX.
We also found out, that some labels are missing.
Hope that helps. Have a nice weekend
René

-----Ursprüngliche Nachricht-----
Von: Matthias Niederhausen [mailto:matthias.niederhausen@t-systems-mms.com] 
Gesendet: Freitag, 1. Februar 2013 13:36
An: dev@rave.apache.org
Betreff: AW: Internationalization and rendering of RAVE gadgets

Hi guys,

I have begun to create a German translation file for Rave, and now it is
just missing the labels for the admin area. However, I have trouble with
special characters, which are garbled in the final output. I have tried both
ISO-8859-1 and UTF-8 encodings, but to no avail. Maybe anyone has an idea?

You can find my file at
https://dl.dropbox.com/u/2387326/messages_de.properties


Kind regards,
Matthias

---
Dipl.-Medieninf. Matthias Niederhausen
T-Systems Multimedia Solutions GmbH
CU Innovation Services

Phone: +49 351 2820 2099
E-Mail: mtni@mms-dresden.de 

---
T-Systems Multimedia Solutions GmbH
Commercial register: Municipal Court Dresden HRB 11433

-----Ursprüngliche Nachricht-----
Von: Matt Franklin [mailto:m.ben.franklin@gmail.com]
Gesendet: Dienstag, 29. Januar 2013 17:20
An: dev@rave.apache.org
Betreff: Re: Internationalization and rendering of RAVE gadgets

Hi René,

Responses are inline below.

-Matt

On Tue, Jan 29, 2013 at 9:08 AM, René Peinl <re...@hof-university.de>
wrote:
> Dear RAVE community,
>
> we are currently working on an intranet portal based on RAVE/Shindig 
> and are implementing some Open Social gadgets for that (see attached 
> screenshots, up to now only in German).
>
> We encountered two issues and we are not sure what is the “right” way 
> to do it.
>
> -        Gadgets are written in HTML and JavaScript, but you are usually
> fetching some data/prerendered html from a backend system. In our case 
> it is not quite clear what the backend system is. My guess would be 
> that Rave is the backend and Shindig is only the data provider, so we 
> are looking for the “right” way to implement a gadget backend in Rave.
> I think there should be a JSP page for that, but we would be 
> interested in
seeing a working example.

It is possible to use a JSP, PHP or other page to render content that a
gadget just "points" to.  This is termed a URL type[1] gadget and is the
least flexible option in terms of API integration.  Most of the time, it is
recommended that you use the osapi.http [2] or gadgets.io.makeRequest [3]
methods for proxying calls back to HTTP services that return JSON.  These
services can live anywhere on the network, so long as the location is
accessible to Shindig.
Additionally, you can look at data pipelining [4], which makes the call
during the gadget rendering operation and inserts the result into the
javascript data context.

Shindig does have a few data elements that it exposes on its own
(ActivityStreams, People, etc).  These can be accessed using the social data
wrappers[5].

[1]:
http://opensocial-resources.googlecode.com/svn/spec/2.5/Core-Gadget.xml#Rend
ering
[2]:
http://opensocial-resources.googlecode.com/svn/spec/2.5/Core-Gadget.xml#osap
i.http
[3]:
http://opensocial-resources.googlecode.com/svn/spec/2.5/Core-Gadget.xml#gadg
ets.io.makeRequest
[4]:
http://opensocial-resources.googlecode.com/svn/spec/2.5/Core-Gadget.xml#Data
Pipelining
[5]:
http://opensocial-resources.googlecode.com/svn/spec/2.5/Social-Gadget.xml

>
> -        We want to provide all labels in German and English based on
either
> browser settings or user preferences. What is the Rave way of doing that?

Rave has support for English, Dutch & Spanish.  To add German, visit
http://rave.apache.org/documentation/translate-portal.html for instructions.
We would love to have the German translations added back to our codebase, so
please consider submitting a patch.


>
> Any advice is welcome.
>
> Thanks in advance
>
> René
>
>
>
>
>
>
>
>
>
> Prof. Dr. René Peinl
>
> Lehrgebiet: Architektur von Web-Anwendungen
>
> Hochschule Hof
>
> Alfons-Goppel-Platz 1
>
> 95028 Hof
>
>
>
> Tel: 09281 409-4820
>
> mailto: rene.peinl@hof-university.de
>
>


AW: Internationalization and rendering of RAVE gadgets

Posted by Matthias Niederhausen <ma...@t-systems-mms.com>.
Hi guys,

I have begun to create a German translation file for Rave, and now it is
just missing the labels for the admin area. However, I have trouble with
special characters, which are garbled in the final output. I have tried both
ISO-8859-1 and UTF-8 encodings, but to no avail. Maybe anyone has an idea?

You can find my file at
https://dl.dropbox.com/u/2387326/messages_de.properties


Kind regards,
Matthias

---
Dipl.-Medieninf. Matthias Niederhausen 
T-Systems Multimedia Solutions GmbH 
CU Innovation Services

Phone: +49 351 2820 2099
E-Mail: mtni@mms-dresden.de 

---
T-Systems Multimedia Solutions GmbH
Commercial register: Municipal Court Dresden HRB 11433

-----Ursprüngliche Nachricht-----
Von: Matt Franklin [mailto:m.ben.franklin@gmail.com] 
Gesendet: Dienstag, 29. Januar 2013 17:20
An: dev@rave.apache.org
Betreff: Re: Internationalization and rendering of RAVE gadgets

Hi René,

Responses are inline below.

-Matt

On Tue, Jan 29, 2013 at 9:08 AM, René Peinl <re...@hof-university.de>
wrote:
> Dear RAVE community,
>
> we are currently working on an intranet portal based on RAVE/Shindig 
> and are implementing some Open Social gadgets for that (see attached 
> screenshots, up to now only in German).
>
> We encountered two issues and we are not sure what is the “right” way 
> to do it.
>
> -        Gadgets are written in HTML and JavaScript, but you are usually
> fetching some data/prerendered html from a backend system. In our case 
> it is not quite clear what the backend system is. My guess would be 
> that Rave is the backend and Shindig is only the data provider, so we 
> are looking for the “right” way to implement a gadget backend in Rave. 
> I think there should be a JSP page for that, but we would be interested in
seeing a working example.

It is possible to use a JSP, PHP or other page to render content that a
gadget just "points" to.  This is termed a URL type[1] gadget and is the
least flexible option in terms of API integration.  Most of the time, it is
recommended that you use the osapi.http [2] or gadgets.io.makeRequest [3]
methods for proxying calls back to HTTP services that return JSON.  These
services can live anywhere on the network, so long as the location is
accessible to Shindig.
Additionally, you can look at data pipelining [4], which makes the call
during the gadget rendering operation and inserts the result into the
javascript data context.

Shindig does have a few data elements that it exposes on its own
(ActivityStreams, People, etc).  These can be accessed using the social data
wrappers[5].

[1]:
http://opensocial-resources.googlecode.com/svn/spec/2.5/Core-Gadget.xml#Rend
ering
[2]:
http://opensocial-resources.googlecode.com/svn/spec/2.5/Core-Gadget.xml#osap
i.http
[3]:
http://opensocial-resources.googlecode.com/svn/spec/2.5/Core-Gadget.xml#gadg
ets.io.makeRequest
[4]:
http://opensocial-resources.googlecode.com/svn/spec/2.5/Core-Gadget.xml#Data
Pipelining
[5]:
http://opensocial-resources.googlecode.com/svn/spec/2.5/Social-Gadget.xml

>
> -        We want to provide all labels in German and English based on
either
> browser settings or user preferences. What is the Rave way of doing that?

Rave has support for English, Dutch & Spanish.  To add German, visit
http://rave.apache.org/documentation/translate-portal.html for instructions.
We would love to have the German translations added back to our codebase, so
please consider submitting a patch.


>
> Any advice is welcome.
>
> Thanks in advance
>
> René
>
>
>
>
>
>
>
>
>
> Prof. Dr. René Peinl
>
> Lehrgebiet: Architektur von Web-Anwendungen
>
> Hochschule Hof
>
> Alfons-Goppel-Platz 1
>
> 95028 Hof
>
>
>
> Tel: 09281 409-4820
>
> mailto: rene.peinl@hof-university.de
>
>


Re: Internationalization and rendering of RAVE gadgets

Posted by Matt Franklin <m....@gmail.com>.
Hi René,

Responses are inline below.

-Matt

On Tue, Jan 29, 2013 at 9:08 AM, René Peinl
<re...@hof-university.de> wrote:
> Dear RAVE community,
>
> we are currently working on an intranet portal based on RAVE/Shindig and are
> implementing some Open Social gadgets for that (see attached screenshots, up
> to now only in German).
>
> We encountered two issues and we are not sure what is the “right” way to do
> it.
>
> -        Gadgets are written in HTML and JavaScript, but you are usually
> fetching some data/prerendered html from a backend system. In our case it is
> not quite clear what the backend system is. My guess would be that Rave is
> the backend and Shindig is only the data provider, so we are looking for the
> “right” way to implement a gadget backend in Rave. I think there should be a
> JSP page for that, but we would be interested in seeing a working example.

It is possible to use a JSP, PHP or other page to render content that
a gadget just "points" to.  This is termed a URL type[1] gadget and is
the least flexible option in terms of API integration.  Most of the
time, it is recommended that you use the osapi.http [2] or
gadgets.io.makeRequest [3] methods for proxying calls back to HTTP
services that return JSON.  These services can live anywhere on the
network, so long as the location is accessible to Shindig.
Additionally, you can look at data pipelining [4], which makes the
call during the gadget rendering operation and inserts the result into
the javascript data context.

Shindig does have a few data elements that it exposes on its own
(ActivityStreams, People, etc).  These can be accessed using the
social data wrappers[5].

[1]: http://opensocial-resources.googlecode.com/svn/spec/2.5/Core-Gadget.xml#Rendering
[2]: http://opensocial-resources.googlecode.com/svn/spec/2.5/Core-Gadget.xml#osapi.http
[3]: http://opensocial-resources.googlecode.com/svn/spec/2.5/Core-Gadget.xml#gadgets.io.makeRequest
[4]: http://opensocial-resources.googlecode.com/svn/spec/2.5/Core-Gadget.xml#DataPipelining
[5]: http://opensocial-resources.googlecode.com/svn/spec/2.5/Social-Gadget.xml

>
> -        We want to provide all labels in German and English based on either
> browser settings or user preferences. What is the Rave way of doing that?

Rave has support for English, Dutch & Spanish.  To add German, visit
http://rave.apache.org/documentation/translate-portal.html for
instructions.  We would love to have the German translations added
back to our codebase, so please consider submitting a patch.


>
> Any advice is welcome.
>
> Thanks in advance
>
> René
>
>
>
>
>
>
>
>
>
> Prof. Dr. René Peinl
>
> Lehrgebiet: Architektur von Web-Anwendungen
>
> Hochschule Hof
>
> Alfons-Goppel-Platz 1
>
> 95028 Hof
>
>
>
> Tel: 09281 409-4820
>
> mailto: rene.peinl@hof-university.de
>
>