Will, Thanks. I read the Javadoc in MultiLanguageDialogEdit but not whole the code. It works now.
Br, Benoît From: [email protected] [mailto:[email protected]] On Behalf Of Will Scheidegger Sent: lundi 21 mars 2011 10:33 To: Magnolia User-List Subject: Re: [magnolia-user] Magnolia Shop Module: dialog problem resolved Hi Benoît Sorry, I've gotten something wrong. I checked the code (info.magnolia.module.shop.dialog.MultiLanguageDialogEdit line 121) and noticed that the path should be config:/server/i18n/conten/[my_shop_folder_name]/locales/... So the "locales" was missing. The switch away from the DIY-multi-lingual dialogs to the proper Magnolia way should not have any effect on the output since the data is stored exactly the same way (i.e. in properties [property_name]_[language], e.g. title_en). You should actually be able to exchange the multiLanguageEdit controls with regular edit controls and turn on the i18n authoring support and you should end up with the exact same thing. -will On 21.03.2011, at 10:19, Benoit Segaert wrote: Will, I use currently the "sampleShop" and the following folder in data repository /sampleShop/products. I added : - server - i18n - content - sampleShop - en country : - enabled: true language: en - fr country : - enabled: true language: fr I tested the update or the creation of a new product in AdminCentral but the Multilanguage was not activate in the dialogs. Do I have to do something else? We will use the i18n in site definitions but what is the impacted in the Product management? I suppose that will only provide multilingual functionality in STK paragraphs (then on the front-end). Br, Benoît From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Will Scheidegger Sent: vendredi 18 mars 2011 18:18 To: Magnolia User-List Subject: Re: [magnolia-user] Magnolia Shop Module: dialog problem resolved Well, it actually _is_ multilingual... but the mechanism is quite "hidden" - as I said: It's a relict from old times. If you have your products in the data repository in a folder /myshop/products you need to add a "myshop" mgnl:contentNode to config:/server/i18n/content and in it you place the languages you need. The multiLanguageEdit compares the name of the root folder with the folders found in config:/server/18n/content and sets up the input fields accordingly. :-) Nowadays you have i18n settings in site definitions... -will On 18.03.2011, at 17:30, Benoit Segaert wrote: Will, Thanks but the product description is not multilingual. I suppose that the only way to translate the Product info is to duplicate the field in the dialog with _<language>. So the translation will be put into the repository and we will be able to use i18n functionalities in the paragraphs. Benoît From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Will Scheidegger Sent: vendredi 18 mars 2011 17:07 To: Magnolia User-List Subject: Re: [magnolia-user] Magnolia Shop Module: dialog problem resolved The MultiLanguageDialogEdit is a relict from old times before there was the multi-language capabilities built into the Magnolia dialogs. It does exactly the same except that all language variant fields are shown simultaneously: If you have a title field and the languages "en", "fr" and "de" defined, it will display 3 fields for "title_en", "title_fr" and "title_de". What Theresa is trying to do right now is to get rid of such old relicts and move to the "state-of-the-art". -will On 18.03.2011, at 16:58, Benoit Segaert wrote: Teresa, How do you manage the multilingual with this module? I see the class MultiLanguageDialogEdit which is a control but it is not used in the dialogs. Do you know how to use it? Benoît From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Benoit Segaert Sent: vendredi 18 mars 2011 14:57 To: Magnolia User-List Subject: RE: [magnolia-user] Magnolia Shop Module: dialog problem resolved Teresa, Can you explain me what you added? STK migration? Do you create an entrypoint for payment system? The pom does not work because data module version and templating kit are not present or correct It compile now. I will test it. Benoît From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Teresa Miyar Sent: mardi 15 mars 2011 17:51 To: Magnolia User-List Subject: RE: [magnolia-user] Magnolia Shop Module: dialog problem resolved Hi, I am currently working on the shop module to use stk templates. I think I forgot to upload that class, will do tomorrow together with other changes. Teresa ________________________________ From: Benoit Segaert [mailto:[email protected]] To: Magnolia User-List [mailto:[email protected]] Sent: Tue, 15 Mar 2011 17:15:26 +0100 Subject: RE: [magnolia-user] Magnolia Shop Module: dialog problem resolved Will, After multiple months, I come back for the shop. I tried to compile it but it seems that the followin class is no more available : info.magnolia.module.shop.util.ShopUtil Br, Benoît -----Original Message----- From: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Will Scheidegger Sent: jeudi 21 octobre 2010 19:12 To: Magnolia User-List Subject: [magnolia-user] Magnolia Shop Module: dialog problem resolved O.k., finally found the time to have a look at it. I bootstrapped a fresh magnolia and ran through the steps in the INSTALL.txt and then tried to open the product dialog, which did lead to a info.magnolia.cms.beans.config.ConfigurationException: no dialog registered for name: shopProduct But looking at config:/modules/data/dialogs you will find a "shopProduct" dialog there. So there must be some other problem with that dialog. So I restarted Magnolia and hat a close look at the log... et voilà: java.lang.ClassNotFoundException: ch.fastforward.magnolia.module.utils.dialog.RootSpecificConfigurableTreeDialog This should be info.magnolia.module.shop.dialog.RootSpecificConfigurableTreeDialog I now fixed the package names and checked to modified bootstrap files back in. Since I gotta run now I did not have a chance to go through the installation steps again. Please let me know when if things still should not be working as expected. -will P.S.: We will be starting two new projects soon which will make use of the shop module, so I guess you will see more updates from our side. However, please provide your fixes, extensions, bells & whistles! I'll be happy to add them to the project. On 17.10.2010, at 21:35, Giancarlo F. Berner wrote: > > Hi Will > > I think what Benoit means is that no dialogs are registered. > > In the Sample Shop menu click on "Products", then double-click on one of the > products. I get the following error: > info.magnolia.cms.beans.config.ConfigurationException: no dialog registered > for name: shopProduct > info.magnolia.module.admininterface.DialogMVCServlet.getHandler(DialogMVCServlet.java:72) > info.magnolia.cms.servlets.MVCServlet.doPost(MVCServlet.java:110) > info.magnolia.cms.servlets.MVCServlet.doGet(MVCServlet.java:68) > javax.servlet.http.HttpServlet.service(HttpServlet.java:627) > javax.servlet.http.HttpServlet.service(HttpServlet.java:729) > and so on. > > Cheers > /giancarlo ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]<mailto:[email protected]>> ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]<mailto:[email protected]>> ---------------------------------------------------------------- ________________________________ ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]<mailto:[email protected]>> ---------------------------------------------------------------- ________________________________ ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]<mailto:[email protected]>> ---------------------------------------------------------------- ________________________________ ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]<mailto:[email protected]>> ---------------------------------------------------------------- ________________________________ ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]<mailto:[email protected]>> ---------------------------------------------------------------- ________________________________ ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]<mailto:[email protected]>> ---------------------------------------------------------------- ________________________________ ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]<mailto:[email protected]>> ---------------------------------------------------------------- ________________________________ ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]<mailto:[email protected]>> ---------------------------------------------------------------- ________________________________ ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]<mailto:[email protected]>> ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
