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 )

45876 put(a) pogledan, 25 odgovor(a) 22.8.2010. 9:52:23Kreirao(la) JoeUser
JoeUser

JoeUser

22.8.2010. 9:52:23
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?
Ovaj sadržaj još nije ocijenjen. 
26 Reputacija 11 Ukupno objava
denis

denis

23.8.2010. 18:35:29
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.
Ovaj sadržaj još nije ocijenjen. 
7207 Reputacija 956 Ukupno objava
abhi00729

abhi00729

18.3.2015. 11:16:05

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.

Ovaj sadržaj još nije ocijenjen. 
127 Reputacija 21 Ukupno objava
vzakanj

vzakanj

18.3.2015. 13:28:15
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
Ovaj sadržaj još nije ocijenjen. 
345 Reputacija 61 Ukupno objava
abhi00729

abhi00729

19.3.2015. 7:15:01

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.

Ovaj sadržaj još nije ocijenjen. 
127 Reputacija 21 Ukupno objava
mzilic

mzilic

19.3.2015. 10:37:16
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
Ovaj sadržaj još nije ocijenjen. 
2218 Reputacija 300 Ukupno objava
abhi00729

abhi00729

19.3.2015. 12:44:04

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.

Ovaj sadržaj još nije ocijenjen. 
127 Reputacija 21 Ukupno objava
abhi00729

abhi00729

19.3.2015. 12:49:33

Hi mzilic,

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

Ovaj sadržaj još nije ocijenjen. 
127 Reputacija 21 Ukupno objava
mzilic

mzilic

19.3.2015. 14:31:31
Hello,

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

Regards
Ovaj sadržaj još nije ocijenjen. 
2218 Reputacija 300 Ukupno objava
abhi00729

abhi00729

19.3.2015. 18:52:38

Please tell me where I can find the LLBLGen utility.

Regards

Ovaj sadržaj još nije ocijenjen. 
127 Reputacija 21 Ukupno objava
1 2 3