The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Localization
Posted: 12 May 08 3:41 PM
|
Is there any documentation about localization in the 7.2 web client? I somewhat understand about resource files and .ascx/.aspx files/navigation, how to generate and how to use. Has anyone else done this? Any tips or gotchas? Thanks |
|
|
|
Re: Localization
Posted: 13 May 08 6:16 AM
|
Specific question: Can I add more than one resource file to a smart part in the entity model? It is quite easy to edit the existing one, but I don't see how to add multiple files for multiple languages.. is this possible? |
|
|
|
Re: Localization
Posted: 13 May 08 7:53 AM
|
Originally posted by Steve Knowles
Specific question: Can I add more than one resource file to a smart part in the entity model? It is quite easy to edit the existing one, but I don't see how to add multiple files for multiple languages.. is this possible? |
|
Hi Steve,
Yes you can. At the toolbar of the AA, you'll see a drop-down titled "Culture". OOTB this will be on invariant. However, let's say you wanted to add a specific Spanish translation for a smartpart. Select "es" from that list. Now, any captions you make for controls will be added to a new resx file for spanish. For example, open the AccountDetails quickform and change the "Main Phone" label to "Teléfono Principal". If you now change the culture back to Invariant the "Main Phone" label will show, and if you change it back to "es" you'll see "teléfono principal". When you deploy the portal you'll see the new resx file for spanish. You can test this by changing the language of your browser to spanish and you'll see the "teléfono principal" label for main phone.
Make sense?
-Ryan |
|
|
|
Re: Localization
Posted: 30 May 08 11:35 AM
|
Thanks Ryan. Creating the files makes sense - but I have two problems I am wondering about.. 1. Is there anyway to import a .resx file for quickforms in the entity model? I would like to create the basic files and send them out to individuals to populate with translations as I need to support 4 languages for each page. It sadly looks like each resource file for each language may need to be build from scratch from within the AA. As I am sure many know, VS will autogenerate these files. 2. Can I move these files from a dev server to a Production server? There seems to be a limitation on moving entity model quickforms to another system - like you can't do it. I image the same goes for these resource files..
Any input appreciated. Thanks |
|
|
|
Re: Localization
Posted: 30 May 08 12:54 PM
|
Hi Steve,
Not sure I follow the problem exactly? You can bundle QuickForms, and it will bring with it any and all language resource files for the form. Am I missing something? Or are you referring to adding an externally created resource file to an already existing quickform in AA?
-Ryan |
|
|
|
Re: Localization
Posted: 30 May 08 1:04 PM
|
I am refering to both.. I have not had any luck with bundling QuickForms for the Customer Portal.. When I create the bundle the QF is available only through the 'switchboard' page (ie. Portals/[portalname]/Pages/[page name]/smartparts. There is a bundling choice called QuickForms/Web Platform, but none of the Ticket entity Quickforms appear in the list. So when I install my bundle on the other system it creates a pointer in the switchboard page, but whines about the actual file missing when trying to build the web platform.
The other thing is the actual creation of the resource file in the entity model. For each language I need a resource file for it seems I need to recreate the entire file with the gui tool.. I would like to either dup the entries in the existing one or import one created from VS. Unless I am missing something it looks like I will need to start from scratch on each language I want to create a resource file for on each page.
|
|
|
|
Re: Localization
Posted: 30 May 08 2:04 PM
|
I've not had any problems bundling QuickForms (and I've bundled plenty). I wonder what is going wrong there for you?
You don't necessarily need to create all entries in the resource files if you don't want/need, and missing items will be taken from the culture invariant (default) resource file. I suppose you could bundle the form, open the zip and edit the resource file externally if that helps and then zip it back up and apply the bundle. Would that help the process? |
|
|
|
Re: Localization
Posted: 30 May 08 2:07 PM
|
Thanks Ryan, that may help if I can get the bundling to work. When you bundle your QF's, do you do it from the Swithboard page you added the QF to or the QuickForms option in the bundling tool (where I don't see any QF's I recognize)? I am also bundling out of a non VFS project workspace where I am doing my customizations - possible cause?.. |
|
|
|
Re: Localization
Posted: 30 May 08 3:35 PM
|
When you say "Switchboard page" are you just referring to the page that the QF has been added to?I just want to make sure we're talking about the same thing. 
The way I bundle most items is to open the manifest and then just drag the items from the project explorer tree on the left to the manifest. It works great that way for most things. For bundling a QF, I drag the QF over from the tree and then also add the entry on the page for it as well.
-Ryan |
|
|
|
Re: Localization
Posted: 30 May 08 3:45 PM
|
Yes, that is correct on the switchboard page. I havn't tried drag n drop. I will give that try.
Tried the drag and drop - worked great. Much better than browse and choose. Thanks Ryan |
|
|
|
Re: Localization
Posted: 02 Jun 08 9:36 AM
|
A few more questions.. How do I localize navigation and menus? Picklists?
Also not able to get entity model quickforms localized. I have created addtional resource files through the AA for them, but they don't seem to take. My custom forms are localizing nicely.. Am I missing a trick? I am going to the quickform and clicking resources in the properties. Then choosing es-ES as the culture and adding identical entries as the existing form for name but changing the values. These don't flow through to the front end, even after ctrl build and redeploy. My custom forms however are localizing.. Has anyone seen this actually work? |
|
|
|
Re: Localization
Posted: 02 Jun 08 11:28 AM
|
For menus/navigation it works the same as it does for the forms. You select the culture you want and then set the values.
On my system, I can set localized values for captions on OOTB forms and for custom forms as well and they all show just fine in the browser. Are your language resource files getting deployed to the website?
|
|
|
|
Re: Localization
Posted: 02 Jun 08 7:41 PM
|
Ok, got the oob stuff working - a touch of operator error. Still have some quirky happenings like resx files not always generating, but on the righ track I think.
I am also trying to make the culture changeable with hyperlinks as opposed to browser settings. I have this working, but had to put code in the aspx.cs files that SLX generates for the portal pages. A gui representing the aspx files are in the pages folder of the portal that you add yer smartparts to just to clarify. The .cs file doesn't seem to be available except in VS. I am afraid that these will get overwritten at some point, although they don't seem to yet. I had to add these Usings: using System.Threading; using System.Globalization; and a routine in the #region Page Lifetime Overrides section to set each page to the Culture I have placed in the session object. Is there a better way to edit the .cs file that are not visible in the AA? Is it in danger of being overwritten if I edit in VS? Is there a better place to place this code |
|
|
|
Re: Localization
Posted: 05 Jun 08 10:28 AM
|
Also wondering if anyone has successfully gotten Navigation and Menus to localize. The resoure files are not generating for me, although others I was having problems with in the entity model (operator error) are now. |
|
|
|
Re: Localization
Posted: 07 Jun 13 9:59 AM
|
fiogf49gjkf0d Someone could help me with localization? Im translated all string to the portuguese in the TTks using the software Alchemist...But some strings dont change...remains in english... Like the address screen in Account entity...the menu "Recently Viewed"..someone have some tips? Thanks!!!
Rafael |
|
|
|
Re: Localization
Posted: 08 Jun 13 1:44 AM
|
The problem here is that these resources are stored at different places. Address is completely packed into dll with embedded resources. And "recently viewed" is stored in the blob archive in plugin table. |
|
|
|
Re: Localization
Posted: 08 Jun 13 7:58 AM
|
Thanks for the answer man!
And do you know a way to fix this? I tryed to change in the resource file..and nothing changes...thanks!
Rafael |
|
|
| |
|
Re: Localization
Posted: 10 Jun 13 6:48 AM
|
fiogf49gjkf0d I will look this websites..thank you so much! |
|
|
|