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.

Database localization strings for MonoX Mobile  (Mono Support )

Viewed 14512 time(s), 6 post(s) 11/23/2011 12:56:08 AMby grant.stone007
grant-stone007

grant.stone007

11/23/2011 12:56:08 AM
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.
This content has not been rated yet. 
647 Reputation 69 Total posts
khorvat

khorvat

11/23/2011 11:01:24 AM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
grant-stone007

grant.stone007

11/24/2011 7:55:14 AM
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>
This content has not been rated yet. 
647 Reputation 69 Total posts
denis

denis

11/23/2011 7:09:17 PM
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?
This content has not been rated yet. 
7207 Reputation 956 Total posts
khorvat

khorvat

11/23/2011 7:16:07 PM
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 
This content has not been rated yet. 
15993 Reputation 2214 Total posts
khorvat

khorvat

11/24/2011 5:42:21 PM
Hi,

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

Regards
Rated 5.00, 1 vote(s). 
15993 Reputation 2214 Total posts