Re: [xwiki-users] Wysiwyg Application Translation
On Sat, Aug 21, 2010 at 03:47, Ivan Levashew wrote: > Ramon Gomes Brandão - SERINT writes: > >> >> Hi, >> >> How can I translate the Wysiwyg application into portuguese? >> I've noticed that there's the editor core >> resources file (Strings.properties) content on >> http://l10n.xwiki.org/xwiki/bin/view/Wysiwyg/ , >> but I cannot understand how I proceed with it with my running >> instance (where do I place it etc). >> >> What should I do to enable this? >> > > Download xwiki-web sources, locate the following folder: > > xwiki-gwt-wysiwyg-client/src/main/resources/org/xwiki/gwt/wysiwyg/client > > Create another Strings.properties file. There might be something > else to be done to enable another language. Yes, you also have to make sure your language is listed in src/main/resources/org/xwiki/gwt/wysiwyg/Wysiwyg.gwt.xml or src/main/resources/org/xwiki/gwt/user/User.gwt.xml. depending of the project your are translating (see http://l10n.xwiki.org/xwiki/bin/view/Wysiwyg/). > > Rebuild everything on maven. GWT compiles something strange called > permutations. There will be lots of html pages in the folder > > standard/target/war/work/com.xpn.xwiki.platform/ > xwiki-web-gwt-wysiwyg-server/resources/js/xwiki/wysiwyg/xwe > > Then you can replace resources/js/xwiki/wysiwyg/xwe contents on a > running instance with new files. > > More on rebuilding sources: > http://dev.xwiki.org/xwiki/bin/view/Community/Building > > -- > If you want to get to the top, you have to start at the bottom > > > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Access denied for user 'xwiki'@'localhost'
[Ricardo Rodriguez] eBioTIC. wrote: > Thanks, Caleb, > > Caleb James DeLisle wrote: >> It doesn't make much sense to me either but if the database is dedicated to >> just that xwiki installation as indicated by GRANT ALL PRIVILEGES ON *.* TO >> 'xwiki'@'localhost' >> you could change the user in the hibernate.cfg.xml to 'root'. >> Not really a fix I know but perhaps it would reveal more information about >> the problem. >> > XWiki is the only application currently using this application, even > though I would like to store there some other information. The command > granting all privileges to xw...@localhost is required by XEM to allow > the application to create new wikis on the fly (I've submitted as > proposed here URL). I think I perfectly understand this as each new wiki > requires its own schema being templatexe the default template created > during the installation. > > Following your proposal, I've done a different test: to grant xwiki user > all privileges when connected from any host ('xwiki'@'%'). And it worked. > > After re-importing xwiki-enterprise-manager-application-xem-2.4.xar (if > I don't import it, I can not select its contents to import it see this > http://xen.net/fromPeat/importXEM.jpg), I get the same document in > error. It claims that the default template must be imported. Going to > the installation page offers the create the template button and it works > without a glitch now. Creation of new wikis also works fine so far. > > I've added a second ethernet interface to the server, messed a bit with > host names, edit sudoers file,.. but I don't know how this could affect > to the privileges granted to xw...@localhost. It seems like if MySQL > identifies the connections as done from a different host in Internet, Check your ifconfig for different addresses attached to the the loopback device. Also you will get a lot more info by running tcpdump on the loopback and then on ethernet and filtering by destination port = mysql port. A wild guess is that the ethernet device is being used as a loopback. Caleb > not from localhost. Please, does this make any sense for you? Thanks!!! > > Thank you so much for your help! > > Ricardo > > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Wysiwyg Application Translation
Ramon Gomes Brandão - SERINT writes: > > Hi, > > How can I translate the Wysiwyg application into portuguese? > I've noticed that there's the editor core > resources file (Strings.properties) content on > http://l10n.xwiki.org/xwiki/bin/view/Wysiwyg/ , > but I cannot understand how I proceed with it with my running > instance (where do I place it etc). > > What should I do to enable this? > Download xwiki-web sources, locate the following folder: xwiki-gwt-wysiwyg-client/src/main/resources/org/xwiki/gwt/wysiwyg/client Create another Strings.properties file. There might be something else to be done to enable another language. Rebuild everything on maven. GWT compiles something strange called permutations. There will be lots of html pages in the folder standard/target/war/work/com.xpn.xwiki.platform/ xwiki-web-gwt-wysiwyg-server/resources/js/xwiki/wysiwyg/xwe Then you can replace resources/js/xwiki/wysiwyg/xwe contents on a running instance with new files. More on rebuilding sources: http://dev.xwiki.org/xwiki/bin/view/Community/Building -- If you want to get to the top, you have to start at the bottom ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Space drop down list on Main.WebSearch page shows all the XWiki spaces ignoring user rights
Hi, I have a question about the *space drop down list filter* on Main.WebSearch page (You can see what I mean by *space drop down list filter *at http://dl.dropbox.com/u/3688604/websearch-page.png). At the moment the drop down list shows all the spaces, even the ones that the user is not allow to view. I want to be able to show in that filter just the spaces that the current user is allow to view. How can I achieve that? Thanks in advance! Regards, Abel ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Access denied for user 'xwiki'@'localhost'
Thanks, Caleb, Caleb James DeLisle wrote: > It doesn't make much sense to me either but if the database is dedicated to > just that xwiki installation as indicated by GRANT ALL PRIVILEGES ON *.* TO > 'xwiki'@'localhost' > you could change the user in the hibernate.cfg.xml to 'root'. > Not really a fix I know but perhaps it would reveal more information about > the problem. > XWiki is the only application currently using this application, even though I would like to store there some other information. The command granting all privileges to xw...@localhost is required by XEM to allow the application to create new wikis on the fly (I've submitted as proposed here URL). I think I perfectly understand this as each new wiki requires its own schema being templatexe the default template created during the installation. Following your proposal, I've done a different test: to grant xwiki user all privileges when connected from any host ('xwiki'@'%'). And it worked. After re-importing xwiki-enterprise-manager-application-xem-2.4.xar (if I don't import it, I can not select its contents to import it see this http://xen.net/fromPeat/importXEM.jpg), I get the same document in error. It claims that the default template must be imported. Going to the installation page offers the create the template button and it works without a glitch now. Creation of new wikis also works fine so far. I've added a second ethernet interface to the server, messed a bit with host names, edit sudoers file,.. but I don't know how this could affect to the privileges granted to xw...@localhost. It seems like if MySQL identifies the connections as done from a different host in Internet, not from localhost. Please, does this make any sense for you? Thanks!!! Thank you so much for your help! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [xwiki-devs] [UX] Action Menus: What menu items we have into "Simple/Advanced" mode
Hi Caty, sorry for the delay answering, I got reminded of this email while working on something else and thought I'll give my 2 cents as well. On Sun, Aug 8, 2010 at 08:47, Ecaterina Valica wrote: > Hi, > > "Simple/Advanced" mode definition > > http://platform.xwiki.org/xwiki/bin/view/Features/PageEditing#HSimpleandAdvancededitingmodes > > After discussing Action Menu Improvements part 2 ( > > http://incubator.myxwiki.org/xwiki/bin/view/Improvements/ActionMenuProposal2 > ) > we changed the position of "Access rights" from "Edit" submenu to > "Page" > submenu. Until now, changes done by "Advanced" mode were located only in > "Edit" submenu. > > A. The question is: what other items do you think should go under > "Simple"/"Advanced" mode? Do we keep the same items? Do we add more? Do we > simplify? > I think Simple/Advanced was a good first step but that it doesn't match actual use of XWiki closely enough. The distinction in 3 tiers (User/Admin/Developer) sounds better to me in this regard. B. Another idea is to change "Simple"/"Advanced" mode into > "User"/"Developer"/"Admin" in the structure we also have the documentation > written. > After thinking a bit about it, I think this would be the best option. I think the distinction should be as follows : - User: as little options as possible (maybe even less than right now -> what's the point of letting users do a page XAR export when they can't import it or view page source when they're sent straight to WYSIWYG edition?) - Admin: a bit more choice (wiki/WYSIWYG/XAR export) and access to wiki / space admin and page access rights - Developer: everything Obs1. The problem with menus is that they don't rely only on these modes, > but also on the rights the users has to do some actions (like edit, delete, > admin). > You're right about this, but I don't think those are incompatible. You can say that delete / rename should be displayed to User unless they don't have the right to do those actions. Obs2. The ideal way for this topic would be to let administrators decide > what goes into what mode, but even like that, we should still have some > standards values for the modes. > Having 3 modes with standard values would be a great start. We can always see about making this configurable later. I also agree with Thibaut on making the top line more understandable, especially in single-wiki mode or when the user isn't expected to know that her wiki is part of a farm -> we should find a way to make the "wiki" menu easier to understand. Thanks, > Caty > ___ > devs mailing list > d...@xwiki.org > http://lists.xwiki.org/mailman/listinfo/devs ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to access the com.xpn.xwiki.api.Document of the page where a "Rendering Macro" is included
Thanks a lot Thomas, it works perfect. On Fri, Aug 20, 2010 at 1:37 AM, Thomas Mortagne wrote: > In the meantime you could do the following to get the current document > in groovy: > > {{velocity}}$xcontext.put("currentdocument", $doc){{/velocity}} > > {{groovy}}print xcontext.currentdocument.toString();{{/groovy}} > > On Fri, Aug 20, 2010 at 09:32, Thomas Mortagne > wrote: > > Hmm seems to be related to groovy (and probably other non velocity > > languages) actually, i will look at it. > > > > On Fri, Aug 20, 2010 at 09:28, Thomas Mortagne > > wrote: > >> Hi, > >> > >> On Fri, Aug 20, 2010 at 02:24, Abel Solórzano Astorga > >> wrote: > >>> Hi, > >>> > >>> I want to know how to access the *com.xpn.xwiki.api.Document* of the > page > >>> where a "*Rendering Macro*" is included. I created a macro using the > >>> documentation at > >>> http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial. > The > >>> problem is that when I try to access the *doc* object inside the Macro > I am > >>> getting the doc of the XWiki page where the Macro was defined. But I > want > >>> doc object of the XWiki page where the Macro is included. If you need > more > >>> details please let me know. I appreciate the help you can give me :). > >> > >> Well i can't reproduce your issue. > >> > >> I wrote a macro in > http://tuska.myxwiki.org/xwiki/bin/view/view/MacrosToto with > >> > >> {{velocity}}$doc{{/velocity}} > >> > >> as macro code and when i use it in > >> http://tuska.myxwiki.org/xwiki/bin/view/view/MacrosTotoTest it print > >> me > >> > >> view.MacrosTotoTest > >> > >> which seems to be what you want. > >> > >>> > >>> Regards, > >>> > >>> Abel > >>> ___ > >>> users mailing list > >>> users@xwiki.org > >>> http://lists.xwiki.org/mailman/listinfo/users > >>> > >> > >> > >> > >> -- > >> Thomas Mortagne > >> > > > > > > > > -- > > Thomas Mortagne > > > > > > -- > Thomas Mortagne > ___ > 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] RES: RES: Calendar Application on XE 2.4 not working properly
Ah, sorry, I forgot to tell you that in order to use the stylesheet extension, you have to add this line in the XWiki.CalendarSheet page: $xwiki.ssx.use('XWiki.CalendarSheet') You'll see that there is this line somewhere at the end of the patch . Using the extension 'Always on this wiki' will load the CSS code on opening any page of your wiki instance, even where you don't need that CSS. Raluca. On Thu, Aug 19, 2010 at 3:06 AM, Lockie wrote: > > I got it to work, however I had to to put the 'Use This Extension' part to > 'Always on this wiki'. I guess the 'Always on this page' part would work as > well if thats what you're after. I left the name part blank. > > Thanks Raluca it looks much better. > > Lockie > -- > View this message in context: > http://xwiki.475771.n2.nabble.com/Calendar-Application-on-XE-2-4-not-working-properly-tp5420827p5438405.html > Sent from the XWiki- Users mailing list archive at Nabble.com. > ___ > 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] How to access the com.xpn.xwiki.api.Document of the page where a "Rendering Macro" is included
In the meantime you could do the following to get the current document in groovy: {{velocity}}$xcontext.put("currentdocument", $doc){{/velocity}} {{groovy}}print xcontext.currentdocument.toString();{{/groovy}} On Fri, Aug 20, 2010 at 09:32, Thomas Mortagne wrote: > Hmm seems to be related to groovy (and probably other non velocity > languages) actually, i will look at it. > > On Fri, Aug 20, 2010 at 09:28, Thomas Mortagne > wrote: >> Hi, >> >> On Fri, Aug 20, 2010 at 02:24, Abel Solórzano Astorga >> wrote: >>> Hi, >>> >>> I want to know how to access the *com.xpn.xwiki.api.Document* of the page >>> where a "*Rendering Macro*" is included. I created a macro using the >>> documentation at >>> http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial. The >>> problem is that when I try to access the *doc* object inside the Macro I am >>> getting the doc of the XWiki page where the Macro was defined. But I want >>> doc object of the XWiki page where the Macro is included. If you need more >>> details please let me know. I appreciate the help you can give me :). >> >> Well i can't reproduce your issue. >> >> I wrote a macro in http://tuska.myxwiki.org/xwiki/bin/view/view/MacrosToto >> with >> >> {{velocity}}$doc{{/velocity}} >> >> as macro code and when i use it in >> http://tuska.myxwiki.org/xwiki/bin/view/view/MacrosTotoTest it print >> me >> >> view.MacrosTotoTest >> >> which seems to be what you want. >> >>> >>> Regards, >>> >>> Abel >>> ___ >>> users mailing list >>> users@xwiki.org >>> http://lists.xwiki.org/mailman/listinfo/users >>> >> >> >> >> -- >> Thomas Mortagne >> > > > > -- > Thomas Mortagne > -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to access the com.xpn.xwiki.api.Document of the page where a "Rendering Macro" is included
Hmm seems to be related to groovy (and probably other non velocity languages) actually, i will look at it. On Fri, Aug 20, 2010 at 09:28, Thomas Mortagne wrote: > Hi, > > On Fri, Aug 20, 2010 at 02:24, Abel Solórzano Astorga > wrote: >> Hi, >> >> I want to know how to access the *com.xpn.xwiki.api.Document* of the page >> where a "*Rendering Macro*" is included. I created a macro using the >> documentation at >> http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial. The >> problem is that when I try to access the *doc* object inside the Macro I am >> getting the doc of the XWiki page where the Macro was defined. But I want >> doc object of the XWiki page where the Macro is included. If you need more >> details please let me know. I appreciate the help you can give me :). > > Well i can't reproduce your issue. > > I wrote a macro in http://tuska.myxwiki.org/xwiki/bin/view/view/MacrosToto > with > > {{velocity}}$doc{{/velocity}} > > as macro code and when i use it in > http://tuska.myxwiki.org/xwiki/bin/view/view/MacrosTotoTest it print > me > > view.MacrosTotoTest > > which seems to be what you want. > >> >> Regards, >> >> Abel >> ___ >> users mailing list >> users@xwiki.org >> http://lists.xwiki.org/mailman/listinfo/users >> > > > > -- > Thomas Mortagne > -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to access the com.xpn.xwiki.api.Document of the page where a "Rendering Macro" is included
Hi, On Fri, Aug 20, 2010 at 02:24, Abel Solórzano Astorga wrote: > Hi, > > I want to know how to access the *com.xpn.xwiki.api.Document* of the page > where a "*Rendering Macro*" is included. I created a macro using the > documentation at > http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial. The > problem is that when I try to access the *doc* object inside the Macro I am > getting the doc of the XWiki page where the Macro was defined. But I want > doc object of the XWiki page where the Macro is included. If you need more > details please let me know. I appreciate the help you can give me :). Well i can't reproduce your issue. I wrote a macro in http://tuska.myxwiki.org/xwiki/bin/view/view/MacrosToto with {{velocity}}$doc{{/velocity}} as macro code and when i use it in http://tuska.myxwiki.org/xwiki/bin/view/view/MacrosTotoTest it print me view.MacrosTotoTest which seems to be what you want. > > Regards, > > Abel > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users