Hi,
I recreated your scenario an published a basic XmlRpc proxy on this page:
- 
http://xoffice.xwiki.org/xwiki/bin/view/CodeBase/XmlRpcProxy
Getting the wiki content of a translated page seems to work fine. Here's
how it can be used:
Page pageInfo = proxy.GetPage(token, "Main.WebHome?language=fr");
String frenchContent = pageInfo.content;
The language parameter value must be a value present in the translations
array.
Notes:
- The translations array contains all available translations for that
page, except the default language of the page.
- The default language of the page is the default language of the wiki
at the moment when the page is created. If ,in time, you change the
wiki's default language, the page default language for the page will not
change.
- If you need the rendered content you will need to make another call to
this API method:
public String renderContent(String token, String space, String pageId, String content)
throws Exception;
Please let me know of your progress
Thanks,
Florin Ciubotaru
Ari Oinas wrote:
  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
 _______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users