On 05/27/2011 05:47 PM, Ramon Gomes Brandão wrote:
Hi Sergiu,
I could return, at least, for a working copy with the original xwe in
english for a 3.1M1 XE, working on all browsers. But the problem still
exists both for 3.1M1 and 3.1M2 - my wiki is on portuguese and the pt_br
translated compiled-from-the-sources wysiwyg module does lot get loaded
when editing a page. The steps I followed are:
1 - I've downloaded the last available sources
from the github website
(xwiki-platform-core);
2 - Imported xwiki-platform-core in eclipse with m2eclipse
3 - edited
xwiki-platform-core/xwiki-platform-gwt/xwiki-platform-gwt-user/src/main/resources/org.../user/User.gwt.xml
and added pt to the locale, and a file Strings_pt.properties (with
wizardCancel, wizardPrevious etc) on the user/client folder;
Side note: if you need only the pt translation you can add the following
to User.gwt.xml:
<extend-property name="locale" values="pt"/>
<set-property name="locale" value="pt"/>
<set-property-fallback name="locale" value="pt"/>
3 - compiled the xwiki-platform-gwt module;
4 - Edited
xwiki-platform-wysiwyg/xwiki-platform-wysiwyg-client/src/resources/.../Wysiwyg.gwt.xml
and added pt to the locale property, and added Strings_pt.properties and
Messages_pt.properties to the client folder;
Same side note as for User.gwt.xml
5 - Compiled the xwiki-platform-wysiwyg module;
6 - Extracted the xwe folder from the resulting
wysiwyg-war-3.1-SNAPSHOT
file and replaced completely the one in english from the xwiki default
war file;
So you deleted the existing xwe folder and copied the new one.
7 - Cleared the Jboss cache and deployed again the
application;
8 - Cleared browser's cache (Firefox, Chrome and IE);
9 - Edited a page and the wysiwyg didn't load.
These steps are good. Note that we upgraded the GWT version between
3.1M1 and 3.1M2 (
http://jira.xwiki.org/jira/browse/XWIKI-6602 ) so
please make sure that the version of the gwt-server jar from WEB-INF/lib
matches the version of GWT used for building the editor.
I've tested also replacing the jars resulting from
step 5 on the
WEB-INF/lib folder of the xwiki war, as well as adding the resulting jar
from step 3 to the libs, without success. I've tested also replacing
completely the WEB-INF folder (resulting from step 5) in the wysiwyg
folder of the xwiki war, but no success: the wysiwyg module still didn't
load.
This is not needed if you just added a new translation.
Did I miss any steps? Is it a source code version problem? Is there any
workaround I can proceed?
Is there any Java exception logged on the server side or any JavaScript
exception logged in the Firebug console when the WYSIWYG editor fails to
load?
Sorry for the long mail, and thanks for all the help. Regards,
After you manage to test your translation it would be good to add it to
http://l10n.xwiki.org so that it gets included in the next release.
Thanks,
Marius
* *
* *
*Ramon Gomes Brandão*
Em 26/5/2011 13:55, Sergiu Dumitriu escreveu:
On 05/26/2011 05:24 PM, Ramon Gomes Brandão
wrote:
Hi All,
I'm facing a big problem since yesterday, and no idea how to fix: my
wysiwyg stop working. The fresh install was ok. Then I've replaced the
original xwe folder with my compiled one from the sources (since I've
translated it for pt_br) on the xwiki war, deployed it on Jboss 4.2.3
and the translated version did not work (the wysiwig didn't load, the
loading gif keeps on the screen when I edit any page). Well, thought it
might be a compilation problem. Then I've returned the original xwe to
my war, deployed again and, unforntunately, it stop working, even with
the version of the original xwe in english. There's no stack trace on
Jboss (no exceptions) and no error messages.
Is it somewhere on the database that I need to reset to return to the
working xwe in english? It's going to production next few days and now
I'm scared I cannot fix it in time. It was working and now, even
returning to the original xwiki package, it doesn't work (I'm using the
same populated database from my first fresh install).
How can I fix it?
Did you try to clear the cache of the browser?
Also, when you say "replaced", you actually removed the old version and
installed the new one, right? Merging a new version on top of an older
one will not replace all of the old files, since they have different
names, so you could end up with incompatible files coming from both
versions.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users