MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Localization again  (Mono Support )

Viewed 41325 time(s), 25 post(s) 8/22/2010 9:52:23 AMby JoeUser
JoeUser

JoeUser

8/22/2010 9:52:23 AM
I did some initial development that required localization a while ago, but I see that localization support have changed recently. Does MonoX support dynamic localization? How to localize the base package?
This content has not been rated yet. 
26 Reputation 11 Total posts
denis

denis

8/23/2010 6:35:29 PM
MonoX can be fully localized using two different approaches. First one is standard: it involves translating MonoX resource (.resx) files (available from our support team on request) and sending it back to us for recompilation and inclusion to the installation package. This approach is quick and simple, and is more suited if you plan to develop multiple projects on top of MonoX - once you got a localized version, it is easy to open as many sites as you want with that particular language.

Additionally, MonoX includes support for completely interactive localization that does not require recompilation of the project, as all resources are stored in the database. This gives users more power and flexibility, since it would be impossible to localize all resources at run time (both built-in and custom ones) using only a "resx approach". It is possible to export values from database to resx files and vice versa, both for a single page/control or for a whole portal at once. To start using this approach you will have to change the default ResourceProviderModel in the web.config file and set it to DBResourceManager. This will enable the Portal localization management utility (found under "Other tasks" on the main administrative screen), that does the real job for all portal pages and controls.

This pane allows administrators to localize each and every localizable resource in the portal. Note that MonoX uses translation engines to suggest a correct translation for each text.

Regardless of the active resource provider model, administrators can dynamically add or remove languages from a list of supported portal languages in the Language manager administration section.

Note that everything I said above applies to the localization of the base MonoX package. You can choose additional custom scenarios for your projects built on top of MonoX, it will not interfere with any other technique.
This content has not been rated yet. 
7207 Reputation 956 Total posts
abhi00729

abhi00729

3/18/2015 11:16:05 AM

I am trying to convert MonoX 4.5 version to DB based localization.

I changed the defaultProvider to DBResourceManager after generating the source and string for Chinese language.

when I am running the project it is giving me following error:

</br>

The prefetch path element at index 0 in the passed in prefetch path for root entity type 31 is meant for root entity type 32 which isn't a subtype of 31. This means that you've added a prefetch path node to a Path of an unrelated entity, for example adding OrderDetailsEntity.PrefetchPathProduct to a prefetch path for CustomerEntity.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
</br>
</br> Exception Details: System.ApplicationException: The prefetch path element at index 0 in the passed in prefetch path for root entity type 31 is meant for root entity type 32 which isn't a subtype of 31. This means that you've added a prefetch path node to a Path of an unrelated entity, for example adding OrderDetailsEntity.PrefetchPathProduct to a prefetch path for CustomerEntity.
</br>
</br>Source Error:
</br>
</br>

<table width="100%" style="background-color: rgb(255, 255, 204);"> <tbody> <tr> <td><code>
Line 462:        public static string AdminHeader_imgLogo_AlternateText {
Line 463:            get {
Line 464:                return ResourceManager.GetString("AdminHeader_imgLogo_AlternateText", _resourceCulture);
Line 465:            }
Line 466:        }
</code> </td> </tr> </tbody> </table>

</br> Source File: e:\Projects_Staging\cloudscape_staging\CloudscapeStaging\Portal\MonoX\Resources\AdminResources.Designer.cs    Line: 464
</br>

</br>

Please help.

This content has not been rated yet. 
127 Reputation 21 Total posts
vzakanj

vzakanj

3/18/2015 1:28:15 PM
Hi abhi00729, 
have you done a recent MonoX upgrade? If yes, have you followed the MonoX upgrade instructions ?

At first look, this looks like an issue caused by an older version of LLBLGen dlls, please first check that you've upgraded those.

Let me know if this helps.

Regards,
Vedran
This content has not been rated yet. 
345 Reputation 61 Total posts
abhi00729

abhi00729

3/19/2015 7:15:01 AM

Hi vzakanj,

When I debug the issue I found it is coming from LLBLGen Dlls only.

Currently we are using version 4.5.3017.

I tried upgrading the LLBLGen dlls from version 4.5.3103 downloaded from MonoX site.

Upgrading LLBGen Dlls didn't worked, and we can not upgrade complete site as lots of changes has been done in the application related to our business.

I found source of the error is from dll : SD.LLBLGen.Pro.ORMSupportClasses.NET20

Please suggest if there is any other way to identify or rectify the issue.

This content has not been rated yet. 
127 Reputation 21 Total posts
mzilic

mzilic

3/19/2015 10:37:16 AM
Hello,

These types of errors occur if LLBLGen 'ConstantsEnums.cs' is not re-generated properly. However, this does seem to be coming from MonoX's DAL. Did you make any changes to the MonoX source code?

Regards
This content has not been rated yet. 
2218 Reputation 300 Total posts
abhi00729

abhi00729

3/19/2015 12:44:04 PM

Hi Mzilic,

We did made some changes in the MonoX source code to make it work with our application, however we have not made any change in the source code of MonoX's DAL project.

This content has not been rated yet. 
127 Reputation 21 Total posts
abhi00729

abhi00729

3/19/2015 12:49:33 PM

Hi mzilic,

Also if you can explain how to regenerate 'ConstantsEnums.cs', I can try that, it might help.

This content has not been rated yet. 
127 Reputation 21 Total posts
mzilic

mzilic

3/19/2015 2:31:31 PM
Hello,

You need to run the LLBLGen utility to regenerate the DAL.

Regards
This content has not been rated yet. 
2218 Reputation 300 Total posts
abhi00729

abhi00729

3/19/2015 6:52:38 PM

Please tell me where I can find the LLBLGen utility.

Regards

This content has not been rated yet. 
127 Reputation 21 Total posts
1 2 3