Mono Support Database localization strings for MonoX Mobile 

Viewed 15202 time(s), 6 post(s), 11/23/2011 12:56:08 AM - by grant.stone007
11/23/2011 12:56:08 AM
647 Reputation 69 Total posts

I am using database storage for localization strings in my MonoX portal. It appears that the Mobile pages and controls do not support database localization or the records are missing from my database or perhaps I have mis-configured something. Many of my Mobile pages have missing labels.

Please advise if use of dbo.LocalizationString table is supported and how I can enable it.

I thank you for MonoX and I thank you in advance for your advise.

1
11/23/2011 11:01:24 AM
15993 Reputation 2214 Total posts

Hi,

I need to check what may be causing this issue, as mobile controls are using the standard Web controls so they should have all the resources imported in the database. Can you please send as an example of missing labels ?

I'll check this and get back to you.

Regards

2
11/24/2011 7:55:14 AM
647 Reputation 69 Total posts

I have uploaded a picture of Mobile Default.aspx showing home strings are not being displayed for Home, Desktop, etc buttons.

---------------------------------------------------
mobile/default.aspx
---------------------------------------------------
<%@ Master Language="C#" AutoEventWireup="true" Inherits="MonoSoftware.MonoX.MasterPages.Mobile.Default" EnableTheming="true" Codebehind="Default.master.cs" MasterPageFile="/MonoX/MasterPages/Mobile/Main.Master" %>
<%@ Register Assembly="MonoX" Namespace="MonoSoftware.MonoX" TagPrefix="portal" %>
<%@ Register TagPrefix="MonoX" TagName="Footer" Src="/MonoX/MasterPages/Mobile/PageFooter.ascx" %>
<%@ Import Namespace="MonoSoftware.MonoX.Resources" %>

<asp:Content ContentPlaceHolderID="cp" runat="server">
<div data-role="page" id="home" data-theme="b">
<div data-role="header">
<a href="/MonoX/Mobile/Default.aspx" runat="server" data-icon="home" data-iconpos="left"><%= MobileResources.Home %></a>
<h1><%= MobileResources.Title_Main %></h1>
<a href="/" runat="server" data-icon="grid" data-iconpos="left"><%= MobileResources.Desktop %></a>
<asp:PlaceHolder runat="server" ID="PlaceHolder1">
<div data-role="navbar">
<ul>
<li><asp:HyperLink runat="server" ID="lnkBlog" NavigateUrl="/MonoX/Mobile/blog/posts/MonoX/"><%= MobileResources.Blog %></asp:HyperLink></li>
<li><asp:HyperLink runat="server" ID="lnkFriends" NavigateUrl="/MonoX/Mobile/Friends.aspx"><%= MobileResources.Friends %></asp:HyperLink></li>
<li><asp:HyperLink runat="server" ID="lnkWall" NavigateUrl="/MonoX/Mobile/Wall.aspx"><%= MobileResources.Wall %></asp:HyperLink></li>
</ul>
</div>
</asp:PlaceHolder>
</div>
<div data-role="content">
<asp:ContentPlaceHolder ID="cp" runat="server"></asp:ContentPlaceHolder>
</div>
<MonoX:Footer ID="ctlFooter" runat="server"></MonoX:Footer>
</div>
</asp:Content>

----------------------------------------------------------------
Excerpt from web.config
----------------------------------------------------------------
<!-- <ResourceProviderModel defaultProvider="ResourceManager"> -->
<ResourceProviderModel defaultProvider="DBResourceManager">
<providers>
<clear />
<add name="ResourceManager" type="System.Resources.ResourceManager, Mscorlib" customProperties="" />
<add name="DBResourceManager" type="MonoSoftware.Web.ResourceProviderModel.Providers.DBResourceManager, MonoSoftware.Web.ResourceProviderModel" customProperties="" />
</providers>
</ResourceProviderModel>

3
11/23/2011 7:09:17 PM
7207 Reputation 956 Total posts

I just looked into this locally and was not able to reproduce it. Localized string are showing for home, desktop, blog, profile, and other links.Is the localization working on the "inner" pages, like profile?

4
11/23/2011 7:16:07 PM
15993 Reputation 2214 Total posts

Hi,

I have checked the import scripts and these resources seems to be missing, I'll send you the import script tomorrow.

Before you start importing resources tomorrow can you please tell us if you have modified any of the resources in the database ?

Regards 

5
11/24/2011 5:42:21 PM
15993 Reputation 2214 Total posts

Hi,

please find the mobile resources attached. Let us know the resource import outcome.

Regards

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