For the future, it would be fun to think about how to extend exhibit localization (which currently covers exhibits built-in terms regarding sorting and filtering) to allow localization of property and item labels. This would allow end users to experience the whole exhibit in their chosen language (as opposed to experiencing it in the language of the author).

On 6/21/2010 1:19 PM, Antoine Blanchard wrote:
Many thanks, it works great!

For future reference, may I just add that the .js file is called using<link href="translation.js" 
type="application/json" rel="exhibit/data" />

Antoine


Le 21 juin 2010 à 15:09, David Karger a écrit :

Sorry, missed that.

Add to your js (in a different file)

{items: [
   {type: "translation",
    label: "inproceedings",
    frenchName: "en conference"},
   {type: "translation",
    label: "thesis",
    frenchName: "these"},
...

etc.

Then set your facets to
<div ex:role="facet" ex:expression=".pub-type.frenchName" 
ex:facetLabel="type"></div>
and so on.  You'll also need to be sure your view only displays items of type "publication" so these 
translations don't show up in the list:<div ex:role="view" ex:itemTypes="Publication">

On 6/21/2010 9:48 AM, Antoine Blanchard wrote:
Thank you David but as mentioned, I am interested in the values taken by the 
facet themselves (not the label of the facet)…

Antoine

Le 21 juin 2010 à 14:36, David Karger a écrit :


Most facets have an ex:facetLabel parameter that you can set to whatever value 
you like.  e.g.
<div ex:role="facet" ex:expression=".Author" ex:facetLabel="Auteur"></div>

On 6/21/2010 9:30 AM, Antoine Blanchard wrote:

Dear all,

I am using Exhibit to display a BibTex file (à la Citeline) : http://enroweb.com/citeulike2.html . 
Therefore, the facet labels are BibTeX standards, and their values as well. I can change the labels 
(ex:facetLabel) but I am stuck with the values as they stand in the source file. Now, I would like 
to translate those into French (e.g. change "techreport" to "rapport")? Is 
there a way to change these values on the fly, between the processing of the date and their 
display? Perhaps by customizing the Babel translator that I use?

Many thanks in advance,

Antoine



--
You received this message because you are subscribed to the Google Groups "SIMILE 
Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.



--
You received this message because you are subscribed to the Google Groups "SIMILE 
Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.


--
You received this message because you are subscribed to the Google Groups "SIMILE 
Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.

Reply via email to