Re: [xwiki-users] Another language question

2008-03-23 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Guillaume, Sergiu, Vincent, all,

Thanks for the tips. Nice stuff!

Please, just to be sure I am correctly understanding how bundles and 
ApplicationResources_??.properties files.

1. I can use $msg. to get strings defined/declared in a document 
included in ...
2. I can use $!msg.get() to call strings defined in 
ApplicationResources.properties or ApplicationResources_??.properties 
files from any *.vm. It is not possible to use $msg. because how *.vm 
are parsed.

I think these are two easy questions... for whom know how does XWiki 
work! I am on my way :-) Thanks for your help,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Another language question

2008-03-07 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team

Sergiu Dumitriu wrote:



Unfortunately, attachment and comments are the same for all the 
languages, using the default XWiki code.


  


I am afraid this is also true for panels. Or am I missing anything?

Thanks!

--
Ricardo Rodríguez
Your EPEC Network ICT Team

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Another language question

2008-03-07 Thread Vincent Massol

On Mar 7, 2008, at 9:24 AM, [Ricardo Rodriguez] Your EPEC Network ICT  
Team wrote:

 Sergiu Dumitriu wrote:


 Unfortunately, attachment and comments are the same for all the
 languages, using the default XWiki code.



 I am afraid this is also true for panels. Or am I missing anything?

Yes this is true for objects. There's no translation system for  
objects and since Panels are objects there are no translations for them.

However it's possible to find workaround. One possibility is to have  
one object per language and write some script to choose the correct  
panel.

-Vincent

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Another language question

2008-03-07 Thread Vincent Massol


On Mar 7, 2008, at 10:56 AM, Guillaume Lerouge wrote:


Hi Ricardo,

for panels a much better solution is available:
Define a list of messages (such as the one in BBCode.Translations).  
You'll have :

message1=Hello
message2=Goodnight
and so on...
Where you need your name to be printed (typically in a panel) use  
$msg.message1 , $msg.message2... you will have :

[$msg.message1MySpace.MyPage] (will show up as Hello)
[$msg.message2MySpace.MyPage2] (will show up as Goodnight)
Declare your translation page in the wiki administration console  
(same as for the BB)
For each language you need, write a translation of the page in that  
language.
The result will be something similar to what you see on xwiki.com  
when you switch languages (look at the menu bar for try,  
partners and so on)

BTW this is all documented here:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/InternationalizingApplications

-Vincent


Hope this helps,

Guillaume

On 07/03/2008, [Ricardo Rodriguez] Your EPEC Network ICT Team [EMAIL PROTECTED] 
 wrote:

Vincent Massol wrote:
 I forgot to point to one of our oldest jira issue:
 http://jira.xwiki.org/jira/browse/XWIKI-69

 A workaround is proposed in http://jira.xwiki.org/jira/browse/XWIKI-585





Thanks Vincent. I have adopted the first strategy (better, just a  
number
of if/then structures in the panel code) here: I have to deliver a  
small
sample supporting panels in several languages by Monday. I will then  
try

to catch up with Sergiu proposals.

I can't go ahead with XWiki here without a solution to this issue. Of
course attachments and comments will be quickly required if we get
solved panels...

Cheers,

Ricardo


--
Ricardo Rodríguez

Your EPEC Network ICT Team
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Another language question

2008-03-07 Thread Sergiu Dumitriu
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
 Sergiu Dumitriu wrote:


 Unfortunately, attachment and comments are the same for all the 
 languages, using the default XWiki code.

   
 
 I am afraid this is also true for panels. Or am I missing anything?
 
 Thanks!
 

Yes, but panels can be localized using bundles.
-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Another language question

2008-03-06 Thread Dowson_Jim
Can xwiki handle page entries in different languages as parallel entries
(similar to mediawiki/Wikipedia)?

 

e.g. see 

 

http://en.wikipedia.org/wiki/EMC_Corporation,
http://de.wikipedia.org/wiki/EMC_Corporation ,
http://fr.wikipedia.org/wiki/EMC_Corporation etc...

 

I'm looking for a way to support international access and collaboration.

 

Also, are people using simple Chinese to support Japanese users?

 

Thanks in advance...

--

Jim Dowson

CTO, Global Services, EMC Corporation

Linx: (617) 598-0505

 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Another language question

2008-03-06 Thread Sergiu Dumitriu
But also note that:
- XWiki supports interwiki links, like Wikipedia does, meaning that you 
can install several instances of XWiki, put interwiki links in the 
document content, and create a panel that lists these links.
- Better than that, XWiki supports virtual wikis, meaning that the same 
server and the same XWiki instance can host more than one wiki at 
different addresses (like en.company.com, fr.company.com, 
de.company.com) and linking between them is really easy, without any 
additional setup, instead of linking to [Some.Document] you link to 
[fr:Some.Document]. You can also write a snippet that creates automatic 
links if a document with the same name exists in another wiki, something 
like:

foreach existing wiki, if wikiprefix + ':' + this document's name 
exists, then write a link to it

- Even better, you can write an RelatedDocs XClass, so that the links 
are not written in the document content, but in attached XObjects. And a 
custom panel can be used to display these objects as links and add a new 
one.


In many ways, XWiki is much more powerful than mediawiki. It just 
requires some knowledge about how to master it.

Ludovic Dubost wrote:
 Jim,
 
 Note that our handling of multilinguism is different than Wikiepdia. 
 Wikipedia links documents on the same subject in different wikis (one 
 per language).
 In XWiki we make one document have multiple languages. The same URL will 
 have different content.
 
 By default the user will receive the one that has the lanugage of its 
 browser.
 
 Ludovic
 
 Vincent Massol wrote:
 Hi Jim,

 On Mar 6, 2008, at 11:10 PM, [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Can xwiki handle page entries in different languages as parallel 
 entries (similar to mediawiki/Wikipedia)?
  
 e.g. see
  
 http://en.wikipedia.org/wiki/EMC_Corporation, 
  http://de.wikipedia.org/wiki/EMC_Corporation 
 ,http://fr.wikipedia.org/wiki/EMC_Corporation etc...
  
 I’m looking for a way to support international access and collaboration.
 Sure. See http://platform.xwiki.org/xwiki/bin/view/Features/I18N

 Thanks
 -Vincent

  
 Also, are people using “simple Chinese” to support Japanese users?
  
 Thanks in advance…

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Another language question

2008-03-06 Thread Sergiu Dumitriu
[EMAIL PROTECTED] wrote:
 Ludovic writes:
 Note that our handling of multilinguism is different than Wikiepdia. 
 Wikipedia links documents on the same subject in different wikis (one 
 per language).
 In XWiki we make one document have multiple languages. The same URL
 will 
 have different content.
 
 By default the user will receive the one that has the lanugage of its 
 browser.
 
 So as you probably know, our European brethren's ability to read other
 languages is better than that of the new world ;-)
 
 Is it easy/possible to switch between language pages on the same url?
 (German user wants to read the English version)
 
 I see the Language flag in the upper right hand corner - is that how you
 switch? What happens to attachments, comments etc...

Unfortunately, attachment and comments are the same for all the 
languages, using the default XWiki code.

 PS: Vincent - the documentation page you linked to is not clear (to me)
 on this use case. 
 
 Thanks in advance!


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Another language question

2008-03-06 Thread Vincent Massol
Hi Jim,

On Mar 7, 2008, at 12:10 AM, [EMAIL PROTECTED] wrote:

 Ludovic writes:
 Note that our handling of multilinguism is different than Wikiepdia.
 Wikipedia links documents on the same subject in different wikis (one
 per language).
 In XWiki we make one document have multiple languages. The same URL
 will
 have different content.

 By default the user will receive the one that has the lanugage of its
 browser.

 So as you probably know, our European brethren's ability to read other
 languages is better than that of the new world ;-)

 Is it easy/possible to switch between language pages on the same url?
 (German user wants to read the English version)

 I see the Language flag in the upper right hand corner - is that how  
 you
 switch? What happens to attachments, comments etc...

 PS: Vincent - the documentation page you linked to is not clear (to  
 me)
 on this use case.

I've updated it on http://platform.xwiki.org/xwiki/bin/view/Features/I18N 
. I hope it's better now ;)

Thanks
-Vincent

PS: Guys, it would be cool if we all had the habit of improving the  
documentation before answering to someone so that the time we take in  
writing the email with the answer is actually spent on improving the  
doc since that'll help everyone at the same time without costing much.  
If we can do this for all user's questions we'll have rock solid  
documentation on xwiki.org ;)
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users