[xwiki-users] How to test new language translation for XWiki user interface
Hello, My purpose is using unsupported language in XWiki for my XWiki interface language for Users of my site who use the unsupported language. My first aim is Japanese language. However, I am not sure that I can translate all of words for XWiki interface, so I firstly just want to try to translate some interfaces words which will be used for basic usage like editing and post an article and post a comment for it. I already installed XWiki enterprise 8.1 for tomcat8 and postgre sql by Debian package install to Ubunch16 vps server. I read the page below and I tried the steps of “Translate and test an ApplicationResources file" http://l10n.xwiki.org/xwiki/bin/view/L10N/AddALanguage I copied codes of ApplicationResources.properties in the link (https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwik...) and changed some words for testing translation works or not in that way. For example, line 97 “preview=Preview” to “preview=aaaaaa" line 984 “core.viewers.comments.preview.button.preview=Preview“ to "core.viewers.comments.preview.button.preview=aaaaa” line 2363 “xe.userdirectory.customizePreviewTitle=Preview” to “xe.userdirectory.customizePreviewTitle=aaaaaaa” After that, I stopped tomcat8. Then, I made file named “ApplicationResources_jp.properties” in “/usr/lib/xwiki/WEB-INF/classes” directory. I started tomcat8 and accessed my xwiki site and changed SUPPORTED LANGUAGES to jp, DEFAULT LANGUAGE to jp and saved localization setting. However, I could not see interface language is translated. I see Preview buttons shows “Preview” letters, not “aaaa”. I would like to know what step I am doing wrong. I am new to XWiki and web development, so I may be missing some steps. Thank you for your help in advance. -- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-test-new-language-translation-for-X... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi penguin,
On 03 Jul 2016, at 11:49, penguin <levtrian@gmail.com> wrote:
Hello,
My purpose is using unsupported language in XWiki for my XWiki interface language for Users of my site who use the unsupported language.
My first aim is Japanese language.
Contributing a Japanese translation on l10n.xwiki.org would be awesome! :)
However, I am not sure that I can translate all of words for XWiki interface, so I firstly just want to try to translate some interfaces words which will be used for basic usage like editing and post an article and post a comment for it.
Yes that’s very easy to do. There are some instructions at http://platform.xwiki.org/xwiki/bin/view/DevGuide/InternationalizingApplicat... Basically you just need to put the translations in a page, set the proper xobject and use existing translation keys and you’re done! Let us know how it goes! Thanks -Vincent
I already installed XWiki enterprise 8.1 for tomcat8 and postgre sql by Debian package install to Ubunch16 vps server.
I read the page below and I tried the steps of “Translate and test an ApplicationResources file" http://l10n.xwiki.org/xwiki/bin/view/L10N/AddALanguage
I copied codes of ApplicationResources.properties in the link (https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwik...) and changed some words for testing translation works or not in that way.
For example, line 97 “preview=Preview” to “preview=aaaaaa" line 984 “core.viewers.comments.preview.button.preview=Preview“ to "core.viewers.comments.preview.button.preview=aaaaa” line 2363 “xe.userdirectory.customizePreviewTitle=Preview” to “xe.userdirectory.customizePreviewTitle=aaaaaaa”
After that, I stopped tomcat8. Then, I made file named “ApplicationResources_jp.properties” in “/usr/lib/xwiki/WEB-INF/classes” directory. I started tomcat8 and accessed my xwiki site and changed SUPPORTED LANGUAGES to jp, DEFAULT LANGUAGE to jp and saved localization setting.
However, I could not see interface language is translated.
I see Preview buttons shows “Preview” letters, not “aaaa”. I would like to know what step I am doing wrong.
I am new to XWiki and web development, so I may be missing some steps. Thank you for your help in advance.
-- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-test-new-language-translation-for-X... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Hi, Vincent, I followed the instructions on the document and the translation worked perfectly. Thank you very much. You saved my day! Regards, -Penguin -- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-test-new-language-translation-for-X... Sent from the XWiki- Users mailing list archive at Nabble.com.
On 03 Jul 2016, at 17:47, penguin <levtrian@gmail.com> wrote:
Hi, Vincent,
I followed the instructions on the document and the translation worked perfectly.
Thank you very much. You saved my day!
Glad it worked! Are you going to start contributing Japanese translations on l10n? If so we can create the Japanes language there for you, see http://l10n.xwiki.org/xwiki/bin/view/L10N/AddALanguage Thanks -Vincent
Regards, -Penguin
View this message in context: http://xwiki.475771.n2.nabble.com/How-to-test-new-language-translation-for-X...
Hi, I think I can add translations to l10n when I add user interface translation to my site. However, I am not sure that I can finish all of translation. Regards, -Penguin -- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-test-new-language-translation-for-X... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi penguin, I'm sure you won't finish all the translations :) but any contribution is a step towards that direction :) Thanks, Caty On Mon, Jul 4, 2016 at 5:55 PM, penguin <levtrian@gmail.com> wrote:
Hi,
I think I can add translations to l10n when I add user interface translation to my site.
However, I am not sure that I can finish all of translation.
Regards, -Penguin
-- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-test-new-language-translation-for-X... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Hi Caty, I see, I will give it a try to add some translations step by step. Thank you:) Regards, -Penguin -- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-test-new-language-translation-for-X... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (3)
-
Ecaterina Moraru (Valica) -
penguin -
Vincent Massol