[xwiki-users] How to read the document with no access rights to it from velocity script?

2012-12-19 Thread Haru
 Hi, All!

I'm going to make this script running. It works only if user loading this page 
has access to the W.WebPreferences page.
If he does not: Access denied in edit mode on document W.WebPreferences. Author 
of the script's page is admin with programming rights.
Any idea how to read page with no access rights to it in velocity?

{{velocity}}

#set ($mydoc = $xwiki.getDocumentAsAuthor("W.WebPreferences"))
#set ($rightsObject = $mydoc.newObject("XWiki.XWikiGlobalRights"))

#set ($result1 = $rightsObject.set("groups", "XWiki.XWikiAdminGroup"))
#set ($result2 = $rightsObject.set("levels", "view,comment,edit"))
#set ($result3 = $rightsObject.set("users", "$xcontext.getUser()"))
#set ($result4 = $rightsObject.set("allow", 1))

## $mydoc.saveAsAuthor()

{{velocity}}

Any help is appreciated.

Kind regards,

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


Re: [xwiki-users] XWiki and multilingual support bug?

2012-12-19 Thread Haru
 Thanks a lot for help, Sergiu!


Среда, 19 декабря 2012, 20:10  от Sergiu Dumitriu :
>On 12/19/2012 03:29 PM, Haru wrote:
>>  Thanks a lot, Sergiu!
>> 
>> The problem was following: default language is set in UI in XWiki (it was 
>> ru), but was ignored. Is it a bug to jira it? Or it is expected behaviour? 
>> If it's expected, why do we have default language in UI?
>
>It's the expected behavior, at least with the way translations work at
>the moment. I'm not happy with the current mechanism, but changing it
>requires a lot of refactoring.
>
>Configured default wiki language is different from document default
>language, which can be set for each document. See my other reply for
>what the default wiki language actually does.
>
>> Moreover, in XEM it could be possible to have different default languages in 
>> workspaces, so xwiki.cfg hidden setting is not the best option, IMHO.
>
>I agree, this should be a setting configurable in each wiki, or even space.
>
>> 
>> Среда, 19 декабря 2012, 13:40  от Sergiu Dumitriu < ser...@xwiki.org >:
>>> On 12/19/2012 04:34 AM, Haru wrote:
 It's clear now with pages, but why UI falls into browser default language 
 in abovementioned configuration, ignoring default language settings?

>>>
>>> There's a hidden setting in xwiki.cfg, xwiki.language.preferDefault
>>>
>>> Edit xwiki.cfg, find and uncomment that line and set it to 1. Restart XWiki.
>
>
>-- 
>Sergiu Dumitriu
>http://purl.org/net/sergiu/
>___
>users mailing list
>users@xwiki.org
>http://lists.xwiki.org/mailman/listinfo/users


Kind regards,

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


Re: [xwiki-users] XWiki and multilingual support bug?

2012-12-19 Thread Sergiu Dumitriu
On 12/19/2012 03:29 PM, Haru wrote:
>  Thanks a lot, Sergiu!
> 
> The problem was following: default language is set in UI in XWiki (it was 
> ru), but was ignored. Is it a bug to jira it? Or it is expected behaviour? If 
> it's expected, why do we have default language in UI?

It's the expected behavior, at least with the way translations work at
the moment. I'm not happy with the current mechanism, but changing it
requires a lot of refactoring.

Configured default wiki language is different from document default
language, which can be set for each document. See my other reply for
what the default wiki language actually does.

> Moreover, in XEM it could be possible to have different default languages in 
> workspaces, so xwiki.cfg hidden setting is not the best option, IMHO.

I agree, this should be a setting configurable in each wiki, or even space.

> 
> Среда, 19 декабря 2012, 13:40  от Sergiu Dumitriu :
>> On 12/19/2012 04:34 AM, Haru wrote:
>>> It's clear now with pages, but why UI falls into browser default language 
>>> in abovementioned configuration, ignoring default language settings?
>>>
>>
>> There's a hidden setting in xwiki.cfg, xwiki.language.preferDefault
>>
>> Edit xwiki.cfg, find and uncomment that line and set it to 1. Restart XWiki.


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


Re: [xwiki-users] XWiki and multilingual support bug?

2012-12-19 Thread Sergiu Dumitriu
On 12/19/2012 04:55 PM, Marius Dumitru Florea wrote:
> On Wed, Dec 19, 2012 at 10:29 PM, Haru  wrote:
>>  Thanks a lot, Sergiu!
>>
> 
>> The problem was following: default language is set in UI in XWiki (it was 
>> ru), but was ignored. Is it a bug to jira it? Or it is expected behaviour? 
>> If it's expected, why do we have default language in UI?
> 
> I think the default language you set in the Localization section of
> the administration refers to the document content not to the UI. It is
> the default content language when you create a new document.

Almost. To be more precise, it's the default language to fall back when:

- the language(s) requested browser are not available
- a document doesn't specify its default language

When creating a new document, the default language is the current
context language.

But it is NOT the default language that users will see unless they
explicitly select another one. The setting I mentioned is the one that
moves the behavior closer to what you expect.

> Hope this helps,
> Marius
> 
>> Moreover, in XEM it could be possible to have different default languages in 
>> workspaces, so xwiki.cfg hidden setting is not the best option, IMHO.
>>
>>
>> Среда, 19 декабря 2012, 13:40  от Sergiu Dumitriu :
>>> On 12/19/2012 04:34 AM, Haru wrote:
 It's clear now with pages, but why UI falls into browser default language 
 in abovementioned configuration, ignoring default language settings?

>>>
>>> There's a hidden setting in xwiki.cfg, xwiki.language.preferDefault
>>>
>>> Edit xwiki.cfg, find and uncomment that line and set it to 1. Restart XWiki.
>>>

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


Re: [xwiki-users] XWiki and multilingual support bug?

2012-12-19 Thread Marius Dumitru Florea
On Wed, Dec 19, 2012 at 10:29 PM, Haru  wrote:
>  Thanks a lot, Sergiu!
>

> The problem was following: default language is set in UI in XWiki (it was 
> ru), but was ignored. Is it a bug to jira it? Or it is expected behaviour? If 
> it's expected, why do we have default language in UI?

I think the default language you set in the Localization section of
the administration refers to the document content not to the UI. It is
the default content language when you create a new document.

Hope this helps,
Marius

> Moreover, in XEM it could be possible to have different default languages in 
> workspaces, so xwiki.cfg hidden setting is not the best option, IMHO.
>
>
> Среда, 19 декабря 2012, 13:40  от Sergiu Dumitriu :
>>On 12/19/2012 04:34 AM, Haru wrote:
>>> It's clear now with pages, but why UI falls into browser default language 
>>> in abovementioned configuration, ignoring default language settings?
>>>
>>
>>There's a hidden setting in xwiki.cfg, xwiki.language.preferDefault
>>
>>Edit xwiki.cfg, find and uncomment that line and set it to 1. Restart XWiki.
>>
>>--
>>Sergiu Dumitriu
>>http://purl.org/net/sergiu
>>___
>>users mailing list
>>users@xwiki.org
>>http://lists.xwiki.org/mailman/listinfo/users
>
>
> Kind regards,
>
> Dmitry
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki and multilingual support bug?

2012-12-19 Thread Haru
 Thanks a lot, Sergiu!

The problem was following: default language is set in UI in XWiki (it was ru), 
but was ignored. Is it a bug to jira it? Or it is expected behaviour? If it's 
expected, why do we have default language in UI?
Moreover, in XEM it could be possible to have different default languages in 
workspaces, so xwiki.cfg hidden setting is not the best option, IMHO.


Среда, 19 декабря 2012, 13:40  от Sergiu Dumitriu :
>On 12/19/2012 04:34 AM, Haru wrote:
>> It's clear now with pages, but why UI falls into browser default language in 
>> abovementioned configuration, ignoring default language settings?
>> 
>
>There's a hidden setting in xwiki.cfg, xwiki.language.preferDefault
>
>Edit xwiki.cfg, find and uncomment that line and set it to 1. Restart XWiki.
>
>-- 
>Sergiu Dumitriu
>http://purl.org/net/sergiu
>___
>users mailing list
>users@xwiki.org
>http://lists.xwiki.org/mailman/listinfo/users


Kind regards,

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


Re: [xwiki-users] XWiki and multilingual support bug?

2012-12-19 Thread Sergiu Dumitriu
On 12/19/2012 04:34 AM, Haru wrote:
> It's clear now with pages, but why UI falls into browser default language in 
> abovementioned configuration, ignoring default language settings?
> 

There's a hidden setting in xwiki.cfg, xwiki.language.preferDefault

Edit xwiki.cfg, find and uncomment that line and set it to 1. Restart XWiki.

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


Re: [xwiki-users] buffering?

2012-12-19 Thread Sergiu Dumitriu
On 12/19/2012 01:33 PM, Paul Libbrecht wrote:
>> It's not Velocity that's buffering, it's the whole rendering engine that
>> does that. Velocity itself is just one of the steps through which
>> document content passes, and each step outputs everything in a buffer
>> which is later flushed down the socket after every rendering step is
>> finished.
>>
>> At least that's what's happening if you use the rendering engine to
>> "run" code from wiki documents.
> 
> Is there any way to disable buffering at each of the steps?

No, especially not with the current (XRendering) rendering engine, since
Velocity is just a Transformation that works on the XDOM, which will be
actually transformed into real output in a separate process that expects
a final, full DOM.

> I'm thinking this may have a performance impact.

Yes, it does.

> However, for my case, implementing OAI-PMH, I've solved it by using the 
> "query resumption" that the protocol offers.

It's good that you found a workaround.
-- 
Sergiu Dumitriu
http://purl.org/net/sergiu
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] buffering?

2012-12-19 Thread Paul Libbrecht
> It's not Velocity that's buffering, it's the whole rendering engine that
> does that. Velocity itself is just one of the steps through which
> document content passes, and each step outputs everything in a buffer
> which is later flushed down the socket after every rendering step is
> finished.
> 
> At least that's what's happening if you use the rendering engine to
> "run" code from wiki documents.

Is there any way to disable buffering at each of the steps?
I'm thinking this may have a performance impact.

However, for my case, implementing OAI-PMH, I've solved it by using the "query 
resumption" that the protocol offers.

paul

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


Re: [xwiki-users] buffering?

2012-12-19 Thread Sergiu Dumitriu
On 12/17/2012 12:31 PM, Paul Libbrecht wrote:
> 
> Hello XWiki experts,
> 
> I'm implementing OAI-PMH, a service infrastructure to aggregate digital 
> library items.
> I do so with a few velocity pages and a groovy page. I'll happily share it.
> At first, I did not implement the "resumption" flow-control, which allows  a 
> big search list to be paged in several requests as I expected the output of 
> my velocity script to trigger a buffer-full and start delivering the packets 
> down the line.
> 
> But this fails, nothing comes before it's finished.
> And indeed, I receive a content-length header... so there is buffering 
> happening somewhere.
> 
> Do I have a possibility to disable velocity output buffering?
> 

It's not Velocity that's buffering, it's the whole rendering engine that
does that. Velocity itself is just one of the steps through which
document content passes, and each step outputs everything in a buffer
which is later flushed down the socket after every rendering step is
finished.

At least that's what's happening if you use the rendering engine to
"run" code from wiki documents.
-- 
Sergiu Dumitriu
http://purl.org/net/sergiu
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Chart legends

2012-12-19 Thread Gerritjan Koekkoek
Hi,

I see Vincent is the author of the page suggested by Jeremie,
Would he know where to find a more 'user oriented' description of what is 
possible with parameters;
My immediate requirements;
- Take Tick labels for X-Axis in Line Diagram from data table left column
- Format tick labels for X-Axis when text is to long to fit in the width of Tick
- Add Axis labels (both X and Y)
- Define scale of Y axis, it now will automatically adjust scale based on 
values in Data table
- How to create Scatter Graph in XWiki 3.5 (I see it is in the examples for 
XWiki > 4.1
- How to suppress a legend
- More advanced statistical eta showing a variance (scatter would be next best)

Op 17 dec. 2012, om 14:15 heeft Gerritjan Koekkoek 
 het volgende geschreven:

> Hi,
> Op 17 dec. 2012, om 11:36 heeft Jeremie BOUSQUET  
> het volgende geschreven:
> 
>> Hello,
>> 
>> I found the following, but I don't know if that class is still used anymore
>> under the hood (as it's from the original chart plugin). You would need
>> confirmation from xwiki team :)
>> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-chart/xwiki-platform-chart-plugin/src/main/java/com/xpn/xwiki/plugin/charts/params/ChartParams.java
>> 
>> I don't checked either if there are parameters that could help for your
>> use-case.
>> 
> Thanks, but I need a little bit more help? If I look through there are many 
> class "Chart Params". But what do they do/mean?
> Take String AXIS_DOMAIN_PREFIX; ???
> And can I add it to the macro parameter PARAMS??? What values can I Assign to 
> these???
> 
> I appreciate the link, but am not sure if it is of much help to me?
> 
>> BR,
>> Jeremie
>> 
>> 
>> 2012/12/17 Gerritjan Koekkoek 
>> 
>>> Which parameters can be used to 'format' the axis of a chart?
>>> I would like to understand how Text can be used as labels for a Bar and/or
>>> Line chart
>>> Currently if the text is to long it will only show few characters.
>>> In other charting programs it is often possible to rotate the text labels
>>> so they are almost vertical, you can put long label names
>>> I would also like to know if possible to add a Axis Title.
>>> 
>>> Our example of current is:
>>> http://www.cdlsworld.org/xwiki/bin/view/CdLSTopics/SIBCdLS
>>> It holds a chart labeled "Health problems in…", as you can see nobody can
>>> read the X-Axis labels? Or understand what Y-Axis means ("Percentage")?
>>> 
>>> the documentation on:
>>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Chart+Macro
>>> does not specify which options you can add to parameter: params.
>>> 
>>> We use XWiki 3.5.1
>>> 
>>> 
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>> 
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
> 
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users

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


Re: [xwiki-users] [ANN] XWiki Enterprise and XWiki Enterprise Manager 4.3.1 released.

2012-12-19 Thread Eduard Moraru
Hi,

Yes, I am aware of that. I was hoping that the downloads become available
on our hosting platform (ObjectWeb), but it seems that something has gone
wrong.

While we investigate the problem, you can download the release from our
maven repository: http://maven.xwiki.org/releases/

More specifically, for 4.3.1:

= XWiki Enterprise =

EXE:
http://maven.xwiki.org/releases/org/xwiki/enterprise/xwiki-enterprise-installer-windows/4.3.1/xwiki-enterprise-installer-windows-4.3.1.exe
JAR:
http://maven.xwiki.org/releases/org/xwiki/enterprise/xwiki-enterprise-installer-generic/4.3.1/xwiki-enterprise-installer-generic-4.3.1-standard.jar
ZIP:
http://maven.xwiki.org/releases/org/xwiki/enterprise/xwiki-enterprise-jetty-hsqldb/4.3.1/xwiki-enterprise-jetty-hsqldb-4.3.1.zip
WAR:
http://maven.xwiki.org/releases/org/xwiki/enterprise/xwiki-enterprise-web/4.3.1/xwiki-enterprise-web-4.3.1.war
XAR:
http://maven.xwiki.org/releases/org/xwiki/enterprise/xwiki-enterprise-ui-all/4.3.1/xwiki-enterprise-ui-all-4.3.1.xar

= XWiki Enterprise Manager =

ZIP:
http://maven.xwiki.org/releases/org/xwiki/manager/xwiki-manager-jetty-mysql/4.3.1/xwiki-manager-jetty-mysql-4.3.1.zip
WAR:
http://maven.xwiki.org/releases/org/xwiki/manager/xwiki-manager-web/4.3.1/xwiki-manager-web-4.3.1.war
XAR:
http://maven.xwiki.org/releases/org/xwiki/manager/xwiki-manager-ui-all/4.3.1/xwiki-manager-ui-all-4.3.1.xar
XAR:
http://maven.xwiki.org/releases/org/xwiki/manager/xwiki-manager-ui/4.3.1/xwiki-manager-ui-4.3.1.xar(no
dependencies)

Sorry for the inconvenience,
Eduard


On Wed, Dec 19, 2012 at 9:44 AM, Haru  wrote:

>  Direct link
>
> http://download.forge.objectweb.org/xwiki/xwiki-enterprise-web-4.3.1.war
>
> gives 404
>
>
> Вторник, 18 декабря 2012, 20:25  от Eduard Moraru :
> >The XWiki development team is proud to announce the availability of XWiki
> >Enterprise 4.3.1.
> >
> >This is a bugfix and stabilization version that brings fixes for various
> >areas of XWiki's features like Workspaces, Extension Manager, Search and
> >others.
> >
> >You can download it here:
> http://www.xwiki.org/xwiki/bin/view/Main/Download
> >
> >Make sure to review the release notes:
> >http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki431
> >
> >Thanks
> >-The XWiki dev team
> >___
> >users mailing list
> >users@xwiki.org
> >http://lists.xwiki.org/mailman/listinfo/users
>
>
> Kind regards,
>
> Dmitry
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] References Section update proposal

2012-12-19 Thread Silvia Rusu
Hi!

Nice proposal. +1

Thanks,
Silvia

On Tue, Dec 18, 2012 at 5:49 PM, Benjamin Lanciaux
 wrote:
> Hello all,
>
> I would like to propose an update of the xwiki.org references section :
> http://www.xwiki.org/xwiki/bin/view/References/WebHome
>
> At the moment, there is no field mentioning who developed the XWiki
> website/project/reference.
> Some of us are using the "Organization" field to specify what the company
> benefiting from the website is. The others are using it to mention the
> company which developed and implemented the project.
>
> That is why I propose to add a new field : "developed by".
> Thanks to this, it will be easier to understand who did what and who
> benefits from what.
>
> I also suggest to add another criteria : "external/internal" which would
> help users understand if a project is public or private.
>
> Looking forward to your feedback.
>
> --
> Benjamin Lanciaux
> Marketing Project Manager @XWiki SAS
> Skype : benjaminxwiki
> Tel : 01.45.42.40.90
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] References Section update proposal

2012-12-19 Thread Benjamin Lanciaux
Hi,

So it seems that we agree on the fact that the field "developed by" may be
useful.
I can implement it on xwiki.org. Ok for you ?
@Denis : indeed, it could be great to update the current references.

About the external/internal field, the idea was to precise if the project
is an extranet/website or an intranet.
I really think that that kind of info is interesting.
Indeed the tags can do the trick.

Any other point of view ?

Benjamin


2012/12/18 Vincent Massol 

>
> On Dec 18, 2012, at 5:54 PM, Denis Gervalle  wrote:
>
> > Hi Benjamin,
> >
> > On Tue, Dec 18, 2012 at 4:49 PM, Benjamin Lanciaux <
> > benjamin.lanci...@xwiki.com> wrote:
> >
> >> Hello all,
> >>
> >> I would like to propose an update of the xwiki.org references section :
> >> http://www.xwiki.org/xwiki/bin/view/References/WebHome
> >>
> >> At the moment, there is no field mentioning who developed the XWiki
> >> website/project/reference.
> >> Some of us are using the "Organization" field to specify what the
> company
> >> benefiting from the website is. The others are using it to mention the
> >> company which developed and implemented the project.
> >>
> >
> > I had exactly the same discussion with Vincent when I fill in my own
> > project.
> >
> >
> >>
> >> That is why I propose to add a new field : "developed by".
> >> Thanks to this, it will be easier to understand who did what and who
> >> benefits from what.
> >>
> >
> > This sounds good to me, it would be nice to try to have the current
> entries
> > updated.
> >
> >
> >>
> >> I also suggest to add another criteria : "external/internal" which would
> >> help users understand if a project is public or private.
> >>
> >
> > Not sure this is needed, most project published there will be public, and
> > there is the URL anyway, that may stay empty. Using tags is also an
> option,
> > but not sure it will be trivial while filling the form. Does it really
> > provide a really useful info ?
>
> We have already defined a lot of tags to add to references. what's just
> missing is a specific UI or documentation so that users know that they can
> use them.
>
> We are already displaying the tag cloud at
> http://www.xwiki.org/xwiki/bin/view/References/WebHome
>
> Thanks
> -Vincent
>
> >> Looking forward to your feedback.
> >>
> >> --
> >> Benjamin Lanciaux
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Benjamin Lanciaux
Marketing Project Manager @XWiki SAS
Skype : benjaminxwiki
Tel : 01.45.42.40.90
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki and multilingual support bug?

2012-12-19 Thread Haru
 Thanks a lot for help, Marius. Yes, I made screenshot "english" to be readable.
It's clear now with pages, but why UI falls into browser default language in 
abovementioned configuration, ignoring default language settings?


Среда, 19 декабря 2012, 11:15  от Marius Dumitru Florea 
:
>On Wed, Dec 19, 2012 at 9:22 AM, Haru < haru_mamb...@mail.ru > wrote:
>>  Hi, All!
>>
>> Clean XEM 4.3. Default page set. I wan't to set multilanguage support.
>>
>> Multilingual: YES
>> Supported languages : en, ru, uk, fr
>> Default Language : ru
>>
>> After I click on save, XWiki takes default language from browser and shows 
>> me uk as default, ignoring default language settings.
>>
>> Moreover, there is no languages available, besides  en (as shown on the 
>> picture  http://awesomescreenshot.com/04cqa3uc7 )
>>
>> Any ideas how to fix it?
>
>First of all, in your screenshot the default language is set to en.
>Then, you need to understand the distinction between the language of
>the UI (menu text, button labels, notification messages, etc.) and the
>document language (the language of the content of a document). The
>list of available languages you are referring to, displayed on the top
>right side of the page, represents the list of languages the content
>of the current document has been translated to. In this particular
>case, the content of XWiki.XWikiPreferences document has been
>translated only in English, which is normal because this page contains
>code, and code shouldn't be translated.
>
>If you create a new wiki page, you'll see that there is a panel that
>lets you translate the content in any of the supported languages. Once
>you translate the content you'll see the languages listed in the top
>right corner.
>
>
>Hope this helps,
>Marius
>
>>
>>
>> Kind regards,
>>
>> Dmitry
>> ___
>> users mailing list
>>  users@xwiki.org
>>  http://lists.xwiki.org/mailman/listinfo/users


Kind regards,

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


Re: [xwiki-users] XWiki and multilingual support bug?

2012-12-19 Thread Marius Dumitru Florea
On Wed, Dec 19, 2012 at 9:22 AM, Haru  wrote:
>  Hi, All!
>
> Clean XEM 4.3. Default page set. I wan't to set multilanguage support.
>
> Multilingual: YES
> Supported languages : en, ru, uk, fr
> Default Language : ru
>
> After I click on save, XWiki takes default language from browser and shows me 
> uk as default, ignoring default language settings.
>
> Moreover, there is no languages available, besides  en (as shown on the 
> picture  http://awesomescreenshot.com/04cqa3uc7 )
>
> Any ideas how to fix it?

First of all, in your screenshot the default language is set to en.
Then, you need to understand the distinction between the language of
the UI (menu text, button labels, notification messages, etc.) and the
document language (the language of the content of a document). The
list of available languages you are referring to, displayed on the top
right side of the page, represents the list of languages the content
of the current document has been translated to. In this particular
case, the content of XWiki.XWikiPreferences document has been
translated only in English, which is normal because this page contains
code, and code shouldn't be translated.

If you create a new wiki page, you'll see that there is a panel that
lets you translate the content in any of the supported languages. Once
you translate the content you'll see the languages listed in the top
right corner.

Hope this helps,
Marius

>
>
> Kind regards,
>
> Dmitry
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users