mail-archives/monodroid/2011-December/007433.html

164 строки
7.9 KiB
HTML
Исходник Постоянная ссылка Обычный вид История

2019-06-06 22:06:39 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [mono-android] Problems localizing monodroid app
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20Problems%20localizing%20monodroid%20app&In-Reply-To=CACWcBbnOozZsE1WKfX6vkmiYu2sF2-OSrz8vZOQ3wXeVRA16VQ%40mail.gmail.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="007428.html">
<LINK REL="Next" HREF="007434.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[mono-android] Problems localizing monodroid app</H1>
<B>Igor Russkih</B>
<A HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20Problems%20localizing%20monodroid%20app&In-Reply-To=CACWcBbnOozZsE1WKfX6vkmiYu2sF2-OSrz8vZOQ3wXeVRA16VQ%40mail.gmail.com"
TITLE="[mono-android] Problems localizing monodroid app">irusskih at gmail.com
</A><BR>
<I>Fri Dec 2 08:27:55 EST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="007428.html">[mono-android] Problems localizing monodroid app
</A></li>
<LI>Next message: <A HREF="007434.html">[mono-android] Problems localizing monodroid app
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7433">[ date ]</a>
<a href="thread.html#7433">[ thread ]</a>
<a href="subject.html#7433">[ subject ]</a>
<a href="author.html#7433">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>In my app I've created the translator which converts original language
files into android's string.xml format. Works nicely.
Igor
On Fri, Dec 2, 2011 at 2:36 PM, Tomasz Cielecki &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">tomasz at ostebaronen.dk</A>&gt;wrote:
&gt;<i> Yes but if you want to share localization code between apps that is
</I>&gt;<i> not a nice solution.
</I>&gt;<i>
</I>&gt;<i> On Fri, Dec 2, 2011 at 11:08 AM, Emiel Metselaar &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">edmetselaar at gmail.com</A>&gt;
</I>&gt;<i> wrote:
</I>&gt;<i> &gt; I am localising by placing my strings.xml under Values and Values-nl,
</I>&gt;<i> this
</I>&gt;<i> &gt; works.
</I>&gt;<i> &gt;
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; On Fri, Dec 2, 2011 at 10:15 AM, Tomasz Cielecki &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">tomasz at ostebaronen.dk</A>&gt;
</I>&gt;<i> &gt; wrote:
</I>&gt;<i> &gt;&gt;
</I>&gt;<i> &gt;&gt; It is supposed to be available since Mono for Android 1.0.1, though I
</I>&gt;<i> &gt;&gt; am not sure if you have to use their template. You can try make one
</I>&gt;<i> &gt;&gt; from the Mono for Android template and see if that works.
</I>&gt;<i> &gt;&gt;
</I>&gt;<i> &gt;&gt; On Fri, Dec 2, 2011 at 10:01 AM, warren burch &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">warrenburch at gmail.com</A>&gt;
</I>&gt;<i> &gt;&gt; wrote:
</I>&gt;<i> &gt;&gt; &gt; My app is localized using the standard .NET RESX methods (ie.
</I>&gt;<i> &gt;&gt; &gt; String.fr.resx,
</I>&gt;<i> &gt;&gt; &gt; Strings.de.resx etc.) works great under Windows Phone.
</I>&gt;<i> &gt;&gt; &gt;
</I>&gt;<i> &gt;&gt; &gt; I am porting to Android using MonoDroid and I do not see the localized
</I>&gt;<i> &gt;&gt; &gt; UI
</I>&gt;<i> &gt;&gt; &gt; when I switch locales on the phone. If I rename the APK file to ZIP
</I>&gt;<i> and
</I>&gt;<i> &gt;&gt; &gt; open
</I>&gt;<i> &gt;&gt; &gt; it I see that it has not packaged up the locale DLLs produced during
</I>&gt;<i> the
</I>&gt;<i> &gt;&gt; &gt; build (ie. the intermediate \.Resources.dll files are under the bin
</I>&gt;<i> &gt;&gt; &gt; directory but are not packaged into the APK).
</I>&gt;<i> &gt;&gt; &gt;
</I>&gt;<i> &gt;&gt; &gt; What am I missing? I have tried changing the build action on the RESX
</I>&gt;<i> &gt;&gt; &gt; files
</I>&gt;<i> &gt;&gt; &gt; from &quot;Embedded Resource&quot; to &quot;Android Resource&quot; and even &quot;Android
</I>&gt;<i> Asset&quot;
</I>&gt;<i> &gt;&gt; &gt; but
</I>&gt;<i> &gt;&gt; &gt; to no avail.
</I>&gt;<i> &gt;&gt; &gt;
</I>&gt;<i> &gt;&gt; &gt; Thanks in advance for any help!
</I>&gt;<i> &gt;&gt; &gt;
</I>&gt;<i> &gt;&gt; &gt; Cheers Warren
</I>&gt;<i> &gt;&gt; &gt;
</I>&gt;<i> &gt;&gt; &gt;
</I>&gt;<i> &gt;&gt; &gt; --
</I>&gt;<i> &gt;&gt; &gt; View this message in context:
</I>&gt;<i> &gt;&gt; &gt;
</I>&gt;<i> <A HREF="http://mono-for-android.1047100.n5.nabble.com/Problems-localizing-monodroid-app-tp5041118p5041118.html">http://mono-for-android.1047100.n5.nabble.com/Problems-localizing-monodroid-app-tp5041118p5041118.html</A>
</I>&gt;<i> &gt;&gt; &gt; Sent from the Mono for Android mailing list archive at Nabble.com.
</I>&gt;<i> &gt;&gt; &gt; _______________________________________________
</I>&gt;<i> &gt;&gt; &gt; Monodroid mailing list
</I>&gt;<i> &gt;&gt; &gt; <A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">Monodroid at lists.ximian.com</A>
</I>&gt;<i> &gt;&gt; &gt;
</I>&gt;<i> &gt;&gt; &gt; UNSUBSCRIBE INFORMATION:
</I>&gt;<i> &gt;&gt; &gt; <A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">http://lists.ximian.com/mailman/listinfo/monodroid</A>
</I>&gt;<i> &gt;&gt;
</I>&gt;<i> &gt;&gt;
</I>&gt;<i> &gt;&gt;
</I>&gt;<i> &gt;&gt; --
</I>&gt;<i> &gt;&gt; Med Venlig Hilsen / With Best Regards
</I>&gt;<i> &gt;&gt; Tomasz Cielecki
</I>&gt;<i> &gt;&gt; <A HREF="http://ostebaronen.dk">http://ostebaronen.dk</A>
</I>&gt;<i> &gt;&gt; _______________________________________________
</I>&gt;<i> &gt;&gt; Monodroid mailing list
</I>&gt;<i> &gt;&gt; <A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">Monodroid at lists.ximian.com</A>
</I>&gt;<i> &gt;&gt;
</I>&gt;<i> &gt;&gt; UNSUBSCRIBE INFORMATION:
</I>&gt;<i> &gt;&gt; <A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">http://lists.ximian.com/mailman/listinfo/monodroid</A>
</I>&gt;<i> &gt;
</I>&gt;<i> &gt;
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; _______________________________________________
</I>&gt;<i> &gt; Monodroid mailing list
</I>&gt;<i> &gt; <A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">Monodroid at lists.ximian.com</A>
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; UNSUBSCRIBE INFORMATION:
</I>&gt;<i> &gt; <A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">http://lists.ximian.com/mailman/listinfo/monodroid</A>
</I>&gt;<i> &gt;
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> --
</I>&gt;<i> Med Venlig Hilsen / With Best Regards
</I>&gt;<i> Tomasz Cielecki
</I>&gt;<i> <A HREF="http://ostebaronen.dk">http://ostebaronen.dk</A>
</I>&gt;<i> _______________________________________________
</I>&gt;<i> Monodroid mailing list
</I>&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">Monodroid at lists.ximian.com</A>
</I>&gt;<i>
</I>&gt;<i> UNSUBSCRIBE INFORMATION:
</I>&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/monodroid">http://lists.ximian.com/mailman/listinfo/monodroid</A>
</I>&gt;<i>
</I>-------------- next part --------------
An HTML attachment was scrubbed...
URL: <A HREF="http://lists.ximian.com/pipermail/monodroid/attachments/20111202/13ba50f2/attachment.html">http://lists.ximian.com/pipermail/monodroid/attachments/20111202/13ba50f2/attachment.html</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="007428.html">[mono-android] Problems localizing monodroid app
</A></li>
<LI>Next message: <A HREF="007434.html">[mono-android] Problems localizing monodroid app
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7433">[ date ]</a>
<a href="thread.html#7433">[ thread ]</a>
<a href="subject.html#7433">[ subject ]</a>
<a href="author.html#7433">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/monodroid">More information about the Monodroid
mailing list</a><br>
</body></html>