Mono Support how to enable localization ? 

Viewed 10981 time(s), 7 post(s), 1/20/2013 6:17:04 PM - by super
1/20/2013 6:17:04 PM
6018 Reputation 709 Total posts

I want to change a few titles etc in localization.

When I go to localization in administration, I get this "To enable portal localization you need to enable the database provider
in the web.config"

I have read this article but I don't want to change any language, I want to keep english as standard language. All I want to be able to do is edit titles etc in localization in admin side.

How to enable localization in webconfig ? where am I looking and what should I add/change/remove in webconfig to enable this ?

1
1/21/2013 9:00:01 AM
3016 Reputation 428 Total posts

Hi, 

you can get mroe information here.

FYI: your link is not set properly. It links to this page.

Regards

2
1/21/2013 4:22:08 PM
6018 Reputation 709 Total posts

Yea I wanted to link the same blog post / article that you linked - sorry for the wrong link.

I read that article but seems like those things are required for having more than one language. I don't want to enable any other language on my site. All I want is to be able to change localization values which are hardcoded in the site like titles etc... how to do that ? for that also I will have to rebuild the locationzation ? anything that needs to be done in web.config ?

3
1/22/2013 8:40:14 AM
3016 Reputation 428 Total posts

As stated in the mentioned article, there are two approaches, translation and interactive localization. Both approaches are explained there. I guess you would like to set DBResourceManager and do not now how to do it. If that is the case you need to open web.config and set from

<ResourceProviderModel defaultProvider="ResourceManager">
to

<ResourceProviderModel defaultProvider="DBResourceManager">
Regards.

4
1/22/2013 2:21:09 PM
6018 Reputation 709 Total posts

I changed this value in web.config and getting this error:

2013-01-22 09:17:47,450 [5] ERROR MonoX [BaseHttpApplication] - Application Error
System.Web.HttpException (0x80004005): Request timed out.
2013-01-22 09:18:05,700 [11] ERROR MonoX [::1] - Error
SD.LLBLGen.Pro.ORMSupportClasses.ORMQueryExecutionException: An exception was caught during the execution of a retrieval query: Thread was being aborted.. Check InnerException, QueryExecuted and Parameters of this exception to examine the cause of this exception. ---> System.Threading.ThreadAbortException: Thread was being aborted.
   at SNINativeMethodWrapper.SNIPacketGetData(IntPtr packet, Byte[] readBuffer, UInt32& dataSize)
   at System.Data.SqlClient.TdsParserStateObject.ProcessSniPacket(IntPtr packet, UInt32 error)
   at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()
   at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()
   at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()
   at System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior)
   at SD.LLBLGen.Pro.ORMSupportClasses.RetrievalQuery.Execute(CommandBehavior behavior)
   --- End of inner exception stack trace ---
   at SD.LLBLGen.Pro.ORMSupportClasses.RetrievalQuery.Execute(CommandBehavior behavior)
   at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.ExecuteMultiRowRetrievalQuery(IRetrievalQuery queryToExecute, IEntityFactory2 entityFactory, IEntityCollection2 collectionToFill, IFieldPersistenceInfo[] fieldsPersistenceInfo, Boolean allowDuplicates, IEntityFields2 fieldsUsedForQuery)
   at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.FetchEntityCollectionInternal(IEntityCollection2 collectionToFill, IRelationPredicateBucket& filterBucket, Int32 maxNumberOfItemsToReturn, ISortExpression sortClauses, ExcludeIncludeFieldsList excludedIncludedFields, Int32 pageNumber, Int32 pageSize)
   at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.FetchEntityCollection(IEntityCollection2 collectionToFill, IRelationPredicateBucket filterBucket, Int32 maxNumberOfItemsToReturn, ISortExpression sortClauses, IPrefetchPath2 prefetchPath, ExcludeIncludeFieldsList excludedIncludedFields, Int32 pageNumber, Int32 pageSize)
   at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.FetchEntityCollection(IEntityCollection2 collectionToFill, IRelationPredicateBucket filterBucket, Int32 maxNumberOfItemsToReturn, ISortExpression sortClauses, IPrefetchPath2 prefetchPath, Int32 pageNumber, Int32 pageSize)
   at MonoSoftware.LLBLGen.Repository.FetchEntityCollection(IEntityCollection2 collectionToFill, IRelationPredicateBucket filterBucket, Int32 maxNumberOfItemsToReturn, ISortExpression sortClauses, IPrefetchPath2 prefetchPath, Int32 pageNumber, Int32 pageSize)
   at MonoSoftware.MonoX.Repositories.BlogRepository.GetBlogPosts(Nullable`1 languageId, Guid userId, Guid categoryId, String blogSlug, String searchAction, String searchValue, Boolean onlyPublished, Int32 pageNumber, Int32 pageSize, Int32& recordCount)
   at MonoSoftware.MonoX.Repositories.BlogRepository.GetBlogPosts(Guid userId, Guid categoryId, String blogSlug, String searchAction, String searchValue, Boolean onlyPublished, Int32 pageNumber, Int32 pageSize, Int32& recordCount)
   at MonoSoftware.MonoX.ModuleGallery.Blog.BlogPostList.BindData()
   at MonoSoftware.MonoX.ModuleGallery.Blog.BlogPostList.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2013-01-22 09:18:12,940 [11] ERROR MonoX [BaseHttpApplication] - Application Error
System.Web.HttpException (0x80004005): Request timed out.

5
1/22/2013 4:42:50 PM
15993 Reputation 2214 Total posts

It seems to me that this isn't related to resource manager, but with database connectivity. Please check my other answer and get back to us.

6
1/25/2013 1:57:26 PM
526 Reputation 43 Total posts

Hi super,

could you please check your db connection string one more time (if it's not a problem could you perhaps send me your web.conf through the inmail)? We just tested this and we could not reproduce the error you're having. Lines containing "SD.LLBLGen.Pro.ORMSupportClasses" from your error log have nothing to do with localization and indicate a problem with the db connection.

7
This is a demo site for MonoX. Please visit Mono Software for more info.