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.

Monox Localization  (Mono Support )

Viewed 165418 time(s), 42 post(s) 3/3/2012 1:30:20 PMby HüseyinDursun

Related topics

imarusic

imarusic

3/26/2012 9:23:36 PM
Hi,

I've managed to fix the localization issue, at least on my side :). Please check if your bin folder contains MonoX.resources.dll. Delete it and transfer localization dlls to your bin folder and let me know if that helped you.

1. You can freely build your localization solution and GlobalText.rex will be included in those localized dlls.
2. I hope you won't need to go by this approach and that the above approach will help you.

Regards.
This content has not been rated yet. 
3016 Reputation 428 Total posts
HueseyinDursun

HüseyinDursun

3/3/2012 1:30:20 PM
Hi,

I have downloaded and started using monox in Turkish. But Some parts are not Turkish (privacy level, footer menu...)

When I click on portal localization on admin area I get the error "To enable portal localization you need to enable the database provider in the web.config."

How can I translate these areas into turkish?

Thanks...
This content has not been rated yet. 
450 Reputation 66 Total posts
HueseyinDursun

HüseyinDursun

3/3/2012 1:51:52 PM
I have changed the web.config file and I can make translations but I get errors while saving the translation:

System.NullReferenceException: Object reference not set to an instance of an object.

at System.Resources.ResourceManager.ReleaseAllResources()

at MonoSoftware.Web.ResourceProviderModel.Providers.DBResourceManager.ReleaseAllResources()

at MonoSoftware.Web.ResourceProviderModel.BaseResourceManager.ClearLocalizationCache()

at MonoSoftware.Web.ResourceProviderModel.ResourceManagerProvider.ClearResourceCache()

at MonoSoftware.Web.ResourceProviderModel.Providers.ResourceDAL.SetResourceByCultureAndResourceKey(CultureInfo culture, String resourceKey, Object resourceValue)

at MonoSoftware.Web.ResourceProviderModel.Providers.DBResourceManager.Save(String source, CultureInfo culture, String resourceKey, Object resourceValue)

at MonoSoftware.MonoX.Admin.PortalLocalization.btnSave_Click(Object sender, EventArgs e)

at System.Web.UI.WebControls.Button.OnClick(EventArgs e)

at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)

at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)

at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)

at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
This content has not been rated yet. 
450 Reputation 66 Total posts
denis

denis

3/4/2012 4:34:44 PM
I would recommend using the standard localization approach based on resource files instead of the DB provider, as we already have a lot of resources translated to the Turkish language. We could provide you with the existing resources so you could translate the remaining entries. An additional advantage of this approach is that it is much easier to share resources between projects this way.
This content has not been rated yet. 
7207 Reputation 956 Total posts
HueseyinDursun

HüseyinDursun

3/4/2012 6:17:59 PM
I tried to translate using visual web developer express but when I click "build" it gives error.

I can send you the resx files translated into Turkish. Can you send me the necessary files (in the bin folder) to make my website totally Turkish?
This content has not been rated yet. 
450 Reputation 66 Total posts
HueseyinDursun

HüseyinDursun

3/4/2012 7:27:03 PM
I couldn't succeed building the project, I'm giving the resx files here.
This content has not been rated yet. 
450 Reputation 66 Total posts
khorvat

khorvat

3/5/2012 9:20:59 PM
Hi,

please find the compiled resource files in the attachment. Let us know if you need anything else.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
HueseyinDursun

HüseyinDursun

3/6/2012 9:48:50 AM
I have uploaded the files in the attachment into the bin folder and replaced the existing ones. But The parts I have translated are still in English. I want to add some pictures from my website to show which parts are English.

1. Footer menu is totally in English (except the login status)
2. Two menus on the forum page.
3. Photo album page
4. Events page
5. Some parts of administration

Please send me the necessary. resx files and I will resend to you after translating.

Thanks...
This content has not been rated yet. 
450 Reputation 66 Total posts
imarusic

imarusic

3/6/2012 11:20:48 PM
Hi,

You can translate those resources by yourseft and additionally you can send it to us so we can include it MonoX. Here are some necessary steps:

Before you start translating the resources we advise you to copy the whole localization solution to your custom location: from "MonoX/Samples/Solution/LocalizationSolution" to "YourCustomFolder/LocalizationSolution" (out of the MonoX CMS folder structure).

New versions of the MonoX CMS that you may upgrade to in the future will overwrite the localization solution folder with the new MonoX resources, and that is why we advise you to copy the whole localization soultion to your custom, protected location. When you do so please open "YourCustomFolder/LocalizationSolution/LocalizationSolution.sln" in the Visual Studio. You can open RESX files and translate the resources as usual.

When you change some resources, build your Localization solution and copy all the files from it's bin folder to the MonoX portal bin folder.

Regards
This content has not been rated yet. 
3016 Reputation 428 Total posts
HueseyinDursun

HüseyinDursun

3/7/2012 4:14:47 PM
OK, I want to tell may translation story;

1. I have downloaded the "MonoX/Samples/Solution/LocalizationSolution" folder to my computer.

2. I have opened the "LocalizationSolution.sln" file with Microsoft Visual Web Developer 2010 Express

3. It warned me about the .Net version, but I didn't changed the version and it stayed as .Net 3.5

4. There were missing Turkish .resx files. I opened the "EventModuleResources.resx" , translated into Turkish and saved as "EventModuleResources.tr-TR.resx". Now I could see the "EventModuleResources.tr-TR.resx" file on the project files list but I couldn't see the "EventModuleResources.resx" file. The same is with the "MobileResources.hr-HR.resx" file. I opened it, translated into Turkish and saved as "MobileResources.tr-TR.resx". I could see the "MobileResources.tr-TR.resx" file in the project file list but not "MobileResources.hr-HR.resx". But they are still in the resources folder.

5. There were some missing strings in the Turkish .resx files. I copied the missing strings from English .resx files and pasted them under the other strings in the Turkish .resx files (not alphabetically ordered). I translated them and saved.

6. I clicked the "Build LocalizationProject" from the "Debug" menu. And I got the following warning and error:

Warning 1   Task attempted to find "AL.exe" in two locations. 1) Under the "C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\" processor specific directory which is generated based on SdkToolsPath 2) The x86 specific directory under "C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\" which is specified by the SDKToolsPath property. You may be able to solve the problem by doing one of the following:  1) Set the "SDKToolsPath" property to the location of the Microsoft Windows SDK.   LocalizationProject
 
Error   2   Task could not find "AL.exe" using the SdkToolsPath "C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed  LocalizationProject

There weren't any files and folders in the bin folder.


7. I clicked on the properties and changed the .net version to 4.0, and clicked the "Build LocalizationProject" from the "Debug" menu. And again I got the following warning and error:

Warning 1   Task attempted to find "AL.exe" in two locations. 1) Under the "C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\" processor specific directory which is generated based on SdkToolsPath 2) The x86 specific directory under "C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\" which is specified by the SDKToolsPath property. You may be able to solve the problem by doing one of the following:  1) Set the "SDKToolsPath" property to the location of the Microsoft Windows SDK.   LocalizationProject
 
Error   2   Task could not find "AL.exe" using the SdkToolsPath "C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed  LocalizationProject

Again there weren't any files and folders in the bin folder.

I am attaching the project as zipped.

I have tried to build on another pc. I got an error telling that the system cannot the path and file (...\LocalizationSolution\bin\MonoX.dll)

There were files in the bin folder and I copied into my website's bin folder. Now I got another error on my web page:

Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
 
Parser Error Message: Could not load type 'MonoSoftware.MonoX.MonoXRoleProvider' from assembly 'MonoX'.
 
Source Error:
 
Line 392:      <providers>
Line 393:        <remove name="AspNetSqlRoleProvider" />
Line 394:        <add connectionStringName="LocalSqlServer" applicationName="MonoX" name="AspNetSqlRoleProvider" type="MonoSoftware.MonoX.MonoXRoleProvider, MonoX" />
Line 395:        <!--<add applicationName="MonoX" name="ActiveDirectoryRoleProvider" type="MonoSoftware.MonoX.ActiveDirectoryRoleProvider" connectionStringName="ADConnectionString"
Line 396:          groupMode="Additive"
 
 
Source File: D:\inetpub\okul-online.com\www\web.config    Line: 394
 
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272


Thanks for your help...
This content has not been rated yet. 
450 Reputation 66 Total posts
imarusic

imarusic

3/8/2012 8:49:11 AM
Hi,

we will check it and get back to you early next week.

Regards.
This content has not been rated yet. 
3016 Reputation 428 Total posts
1 2 3 4 5