mail-archives/mono-osx/2011-May/004342.html

185 строки
7.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-osx] Language satellite assemblies not copied into app bundle
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20Language%20satellite%20assemblies%20not%20copied%20into%20app%0A%09bundle&In-Reply-To=4DDBBAA8.5000405%40pt.lu">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="004336.html">
<LINK REL="Next" HREF="004337.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-osx] Language satellite assemblies not copied into app bundle</H1>
<B>Maxi Combina</B>
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20Language%20satellite%20assemblies%20not%20copied%20into%20app%0A%09bundle&In-Reply-To=4DDBBAA8.5000405%40pt.lu"
TITLE="[Mono-osx] Language satellite assemblies not copied into app bundle">maxi.combina at passwordbank.com
</A><BR>
<I>Wed May 25 04:03:59 EDT 2011</I>
<P><UL>
<LI>Previous message: <A HREF="004336.html">[Mono-osx] Language satellite assemblies not copied into app bundle
</A></li>
<LI>Next message: <A HREF="004337.html">[Mono-osx] MonoMac Packaging fails
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4342">[ date ]</a>
<a href="thread.html#4342">[ thread ]</a>
<a href="subject.html#4342">[ subject ]</a>
<a href="author.html#4342">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Hi Kennet,
setting the build action to Content does not work: it copies my
Localte.ca-ES.resx files into MyApp.app/Content/Resources, but I actually
need MyApp.app/Content/Resources/ca-ES/MyApp.resources.dll.
In my Linux project (also using MD) I mark the .resx files as &quot;Embed as
resource&quot;, and it works just fine: the languages directories (ca-ES, en-US,
etc) are created, and a MyApp.resources.dll file is copied inside each
directory.
Please let me clarify one thing, as I did not explain my problem very well
in the first place: when setting Build Action to &quot;Embed as resource&quot;
MonoMac/MD *is* actually generating ca-ES/MyApp.resources.dll (and similar
dir/file structure), but it won't copy them into the final bundle. In the
output directory I can see:
MonoMac.dll
MyApp.app/
MyApp.exe
ca-ES/MyApp.resources.dll
en-US/MyApp.resources.dll
...
As a workaround, I have a script that copies the l10n dir/file structure
into MyApp.app/Content/Resources, but I think it would be nice that MonoMac
could take care of this
Thanks!
maxi
2011/5/24 kjpou &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">kjpou at pt.lu</A>&gt;
&gt;<i> Maxi
</I>&gt;<i>
</I>&gt;<i> Can you change the Build Action to Content and see if that works?
</I>&gt;<i>
</I>&gt;<i> Kenneth
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> On 5/24/11 3:47 PM, Maxi Combina wrote:
</I>&gt;<i>
</I>&gt;<i> Hi,
</I>&gt;<i>
</I>&gt;<i> is there anything I can do to help out with this?
</I>&gt;<i>
</I>&gt;<i> Thanks,
</I>&gt;<i> maxi
</I>&gt;<i>
</I>&gt;<i> 2011/4/5 Maxi Combina &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">maxi.combina at passwordbank.com</A>&gt;
</I>&gt;<i>
</I>&gt;&gt;<i> Hello,
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> my application has language support via .resx files. They correctly
</I>&gt;&gt;<i> generated, but are not copied inside the MyApp.app bundle when I compile.
</I>&gt;&gt;<i> I can see the different directories (one for each culture) such as ca-ES,
</I>&gt;&gt;<i> en-US or zh-CN genereated. It is only that they don't get copied inside the
</I>&gt;&gt;<i> final app bundle.
</I>&gt;&gt;<i> If I manually copy them, I get the expected l10n to work.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Am I missing some configuration option? Or is this an issue?
</I>&gt;&gt;<i> It is not a big deal, just that it would be great that the generated
</I>&gt;&gt;<i> satellite assemblies got automagically included inside my bundle :)
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Thanks,
</I>&gt;&gt;<i> maxi
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> --
</I>&gt;&gt;<i> *Maxi Combina*
</I>&gt;&gt;<i> Cell:+1 408 300 3614
</I>&gt;&gt;<i> Tel: +1 408 524 1579
</I>&gt;&gt;<i> 440 N. Wolfe Road. Sunnyvale. CA. 94085. USA
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> www.PasswordBank.com &lt;<A HREF="http://www.passwordbank.com/">http://www.passwordbank.com/</A>&gt;
</I>&gt;&gt;<i> This message and its attachments are sent from PasswordBank, Inc. and
</I>&gt;&gt;<i> may contain information that is
</I>&gt;&gt;<i> confidential. If you are not the intended recipient, you are prohibited
</I>&gt;&gt;<i> from printing, copying, forwarding or
</I>&gt;&gt;<i> saving them. Please delete the message and attachments without printing,
</I>&gt;&gt;<i> copying, forwarding or saving
</I>&gt;&gt;<i> them, and notify the sender immediately. Message transmission is not
</I>&gt;&gt;<i> guaranteed to be secure.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> --
</I>&gt;<i> *Maxi Combina*
</I>&gt;<i> Cell:+1 408 300 3614
</I>&gt;<i> Tel: +1 408 524 1579
</I>&gt;<i> 440 N. Wolfe Road. Sunnyvale. CA. 94085. USA
</I>&gt;<i>
</I>&gt;<i> www.PasswordBank.com &lt;<A HREF="http://www.passwordbank.com/">http://www.passwordbank.com/</A>&gt;
</I>&gt;<i> This message and its attachments are sent from PasswordBank, Inc. and
</I>&gt;<i> may contain information that is
</I>&gt;<i> confidential. If you are not the intended recipient, you are prohibited
</I>&gt;<i> from printing, copying, forwarding or
</I>&gt;<i> saving them. Please delete the message and attachments without printing,
</I>&gt;<i> copying, forwarding or saving
</I>&gt;<i> them, and notify the sender immediately. Message transmission is not
</I>&gt;<i> guaranteed to be secure.
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> _______________________________________________
</I>&gt;<i> Mono-osx mailing <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">listMono-osx at lists.ximian.comhttp</A>://lists.ximian.com/mailman/listinfo/mono-osx
</I>&gt;<i>
</I>&gt;<i>
</I>
--
*Maxi Combina*
Cell:+1 408 300 3614
Tel: +1 408 524 1579
440 N. Wolfe Road. Sunnyvale. CA. 94085. USA
&lt;<A HREF="http://www.passwordbank.com/">http://www.passwordbank.com/</A>&gt;www.PasswordBank.com&lt;<A HREF="http://www.passwordbank.com/">http://www.passwordbank.com/</A>&gt;
This message and its attachments are sent from PasswordBank, Inc. and may
contain information that is
confidential. If you are not the intended recipient, you are prohibited from
printing, copying, forwarding or
saving them. Please delete the message and attachments without printing,
copying, forwarding or saving
them, and notify the sender immediately. Message transmission is not
guaranteed to be secure.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <A HREF="http://lists.ximian.com/pipermail/mono-osx/attachments/20110525/9c3c6eb7/attachment-0001.html">http://lists.ximian.com/pipermail/mono-osx/attachments/20110525/9c3c6eb7/attachment-0001.html</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="004336.html">[Mono-osx] Language satellite assemblies not copied into app bundle
</A></li>
<LI>Next message: <A HREF="004337.html">[Mono-osx] MonoMac Packaging fails
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4342">[ date ]</a>
<a href="thread.html#4342">[ thread ]</a>
<a href="subject.html#4342">[ subject ]</a>
<a href="author.html#4342">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-osx">More information about the Mono-osx
mailing list</a><br>
</body></html>