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 )

15546 put(a) pogledan, 6 odgovor(a) 23.11.2011. 0:56:08Kreirao(la) grant.stone007
grant-stone007

grant.stone007

23.11.2011. 0:56:08
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.
Ovaj sadržaj još nije ocijenjen. 
647 Reputacija 69 Ukupno objava
khorvat

khorvat

23.11.2011. 11:01:24
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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
grant-stone007

grant.stone007

24.11.2011. 7:55:14
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>
Ovaj sadržaj još nije ocijenjen. 
647 Reputacija 69 Ukupno objava
denis

denis

23.11.2011. 19:09:17
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?
Ovaj sadržaj još nije ocijenjen. 
7207 Reputacija 956 Ukupno objava
khorvat

khorvat

23.11.2011. 19:16:07
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 
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
khorvat

khorvat

24.11.2011. 17:42:21
Hi,

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

Regards
Ocjena 5,00, 1 glas(ova). 
15993 Reputacija 2214 Ukupno objava