[xwiki-users] WYSIWYG editor language in user interface
Hello I've translated WYSIWYG editor's Strings.properties file into my language. Then I've putted it into place ( .../wysiwyg/client/editor) with name Strings_sk.properties but editor is still in English. What I am doing wrong? -- View this message in context: http://n2.nabble.com/WYSIWYG-editor-language-in-user-interface-tp4440246p444... Sent from the XWiki- Users mailing list archive at Nabble.com.
Frantisek Kall wrote:
Hello
I've translated WYSIWYG editor's Strings.properties file into my language.
You also updated http://l10n.xwiki.org/xwiki/bin/view/Wysiwyg/ Great!
Then I've putted it into place ( .../wysiwyg/client/editor) with name Strings_sk.properties but editor is still in English.
What I am doing wrong?
Enabling a new translation file is unfortunately not that straightforward because GWT includes the translations in the generated JavaScript code so we have to rebuild the editor each time a new language is added. You have three options: (1) Wait for the next release (2.2M2 should be soon) when we take translations files from l10n.xwiki.org and update the SVN. (2) Use a 2.2 snapshot (I can commit your translation from l10n.xwiki.org and it will be available on the next build) (3) Build the editor yourself. For this you have to follow this steps: i) Edit http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/wysiwyg/src/main/resou... and change: <extend-property name="locale" values="fr,de"/> to <extend-property name="locale" values="fr,de,sk"/> If you don't need the French and the German translations then keep just yours, but note that the build time increases with the number of languages. ii) build the editor (mvn clean install) iii) update the editor in your XWiki Enterprise instance. Delete the resources/js/xwiki/wysiwyg/xwe directory from your XE instance and copy the same directory from the war generated by the build. Hope this helps, Marius
Hi Marius, thanks for efficient answer, I will wait for next release - 2.2M2 Frantisek -- View this message in context: http://n2.nabble.com/WYSIWYG-editor-language-in-user-interface-tp4440246p444... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hallo I made the translation in Italian of the same string.properties file and updated l10n.xwiki.org/.../Wysiwyg I hope the file will be included in one of the next release. I would like to update my xwiki but the link provided seems dead. Is there any other way? (I don't want to break my installation)
(3) Build the editor yourself. For this you have to follow this steps:
i) Edit http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/wysiwyg/src/main/resou... and change:
<extend-property name="locale" values="fr,de"/>
to
<extend-property name="locale" values="fr,de,sk"/>
If you don't need the French and the German translations then keep just yours, but note that the build time increases with the number of languages.
ii) build the editor (mvn clean install)
iii) update the editor in your XWiki Enterprise instance. Delete the resources/js/xwiki/wysiwyg/xwe directory from your XE instance and copy the same directory from the war generated by the build.
-- View this message in context: http://n2.nabble.com/WYSIWYG-editor-language-in-user-interface-tp4440246p470... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, AngeloG wrote:
Hallo I made the translation in Italian of the same string.properties file and updated l10n.xwiki.org/.../Wysiwyg
I hope the file will be included in one of the next release.
Definitely. It will be included in 2.3M1 and 2.2.3 releases.
I would like to update my xwiki but the link provided seems dead.
platform/web/wysiwyg module has been refactored on trunk (2.3). I suppose you're using a 2.2.x release, is that right? Then you have to checkout the editor sources from svn.xwiki.org (e.g. http://svn.xwiki.org/svnroot/xwiki/platform/web/tags/xwiki-web-2.2.2/wysiwyg... for XE 2.2.2) and change src/main/resources/com/xpn/xwiki/wysiwyg/Wysiwyg.gwt.xml as indicated below.
Is there any other way? (I don't want to break my installation)
Unfortunately, the only options are: * wait for the next release * build the editor yourself (I can give you all the details you need) This limitation is due to the fact that translations are included in the generated JavaScript code when the editor is compiled. This is how GWT works. Hope this helps, Marius
(3) Build the editor yourself. For this you have to follow this steps:
i) Edit http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/wysiwyg/src/main/resou... and change:
<extend-property name="locale" values="fr,de"/>
to
<extend-property name="locale" values="fr,de,sk"/>
If you don't need the French and the German translations then keep just yours, but note that the build time increases with the number of languages.
ii) build the editor (mvn clean install)
iii) update the editor in your XWiki Enterprise instance. Delete the resources/js/xwiki/wysiwyg/xwe directory from your XE instance and copy the same directory from the war generated by the build.
Marius Dumitru Florea wrote:
Hi Marius, thanks for your reply. I think I'll wait next release... in fact I'm still using 2.1. The wiki is still under construction so I'll move to that rel when ready. Meantime I think I'm going to post also other pieces of resources translated in Italian so next one will be an almost localized version !
bye Angelo
AngeloG wrote:
Hallo I made the translation in Italian of the same string.properties file and updated l10n.xwiki.org/.../Wysiwyg
I hope the file will be included in one of the next release.
Definitely. It will be included in 2.3M1 and 2.2.3 releases.
I would like to update my xwiki but the link provided seems dead.
platform/web/wysiwyg module has been refactored on trunk (2.3). I suppose you're using a 2.2.x release, is that right? Then you have to checkout the editor sources from svn.xwiki.org (e.g. http://svn.xwiki.org/svnroot/xwiki/platform/web/tags/xwiki-web-2.2.2/wysiwyg... for XE 2.2.2) and change src/main/resources/com/xpn/xwiki/wysiwyg/Wysiwyg.gwt.xml as indicated below.
Is there any other way? (I don't want to break my installation)
Unfortunately, the only options are: * wait for the next release * build the editor yourself (I can give you all the details you need)
This limitation is due to the fact that translations are included in the generated JavaScript code when the editor is compiled. This is how GWT works.
Hope this helps, Marius
(3) Build the editor yourself. For this you have to follow this steps:
i) Edit http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/wysiwyg/src/main/resou... and change:
<extend-property name="locale" values="fr,de"/>
to
<extend-property name="locale" values="fr,de,sk"/>
If you don't need the French and the German translations then keep just yours, but note that the build time increases with the number of languages.
ii) build the editor (mvn clean install)
iii) update the editor in your XWiki Enterprise instance. Delete the resources/js/xwiki/wysiwyg/xwe directory from your XE instance and copy the same directory from the war generated by the build.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- View this message in context: http://n2.nabble.com/WYSIWYG-editor-language-in-user-interface-tp4440246p471... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Marius, sorry for bad quoting previous message. By the way, is there any way I can send somewhere the entire resource file of XE core ApplicationResources_it.properties (more than 2000 lines) rather than modifying one by one each item in I10n.xwiki.org site? bye Angelo -- View this message in context: http://n2.nabble.com/WYSIWYG-editor-language-in-user-interface-tp4440246p471... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Angelo, First of all, thanks a lot for your contribution! AngeloG wrote:
Hi Marius, sorry for bad quoting previous message. By the way, is there any way I can send somewhere the entire resource file of XE core ApplicationResources_it.properties (more than 2000 lines) rather than modifying one by one each item in I10n.xwiki.org site?
I think you can open a http://jira.xwiki.org/ issue and attach the resource file, but you have to merge your changes with changes from l10n.xwiki.org because otherwise translations made manually on l10n.xwiki.org since the last release will be lost when we import your resource file. Thomas, WDYT? Thanks, Marius
bye Angelo
participants (3)
-
AngeloG -
Frantisek Kall -
Marius Dumitru Florea