Ok, my setup is as follows:
Xwiki Enterprise 1.71 installed on Apache Tomcat server (Win Xp Pro Sp3) and
it's working fine.
Im trying to create .NET Managed -application using C# (Visual Studio 2008)
which connects to Xwiki and displays Xwiki content on a dialog.
Im using CookComputing.XmlRpc -library.
So far I've managed to do the following:
- Connect and login successfully to Xwiki
- Fetch pagesummaries, pages and attachments from Xwiki and displayed them
in Windows.Forms.WebBrowser component.
I have created a space in Xwiki which holds the pages I want to show in my
application. (Space name contains spaces, is this a problem?)
I have created a page inside this space and also translated it to another
language. This page is displayed properly in Xwiki web-client. Page is
created using Xwiki 1.0 syntax.
If I debug my program and inspect PageSummary -properties, I can see that
there is a translation called "en" in translations array.
Best regards,
paristo
-----Original Message-----
From: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] On Behalf Of
Fabio Mancinelli
Sent: 17. maaliskuuta 2009 15:07
To: XWiki Users
Subject: Re: [xwiki-users] Translations cannot be fetched using XML/RPC
interface
On Mar 17, 2009, at 1:37 PM, Ari Oinas wrote:
Hi,
My problem is that I cannot fetch translated pages from Xwiki using
XML/RPC
interface.
I have tried it like this:
xwikiInterface.getPage(iToken, Space.Page + "?language=en");
but it returns the default page.
Hi,
could you tell me your exact setup?
I tried with a multilanguage wiki and a Main.WebHome translated in fr
and it.
rpc.getPage("Main.WebHome?language=en").getContent() -> English
rpc.getPage("Main.WebHome?language=it").getContent() -> Italiano
rpc.getPage("Main.WebHome?language=fr").getContent() -> Français
The available translations are accessible using the
Page.getTranslations()
In the previous example, this call returns [it, fr] (Maybe here we
should explicitly add also the default translation)
Let me know.
Cheers,
Fabio
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users