Gonzalo,<br><br>I may be understanding my problem better now. In the three Activities I had trouble with the locale directory was in .git.  I never heard from anyone that it was not supposed to be there.  In the old bundlebuilder that used MANIFEST I had the locale directory in the MANIFEST.  Maybe the thing to do is do a git rm on the locale directory, commit and push it, then run setup.py again.<br>
<br>There are chapters in "Make Your Own Sugar Activities!" that describe packaging an Activity, using Pootle, and distributing the Activity.  It looks like some of the stuff in these chapters is no longer true (I'd like to think it was all true at one time).  I'd appreciate it if you and Alan could look over these chapters and identify anything that needs revision.  I don't want the book to lead anyone astray.<br>
<br>James Simmons<br><br><br><div class="gmail_quote">On Sat, Mar 2, 2013 at 5:25 PM, Gonzalo Odiard <span dir="ltr"><<a href="mailto:gonzalo@laptop.org" target="_blank">gonzalo@laptop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The .mo and the .linfo files should not be in git anyway, right?<div><br></div><div>Gonzalo<br><br><div class="gmail_quote"><div><div class="h5">On Sat, Mar 2, 2013 at 12:04 AM, Alan Jhonn Aguiar Schwyn <span dir="ltr"><<a href="mailto:alanjas@hotmail.com" target="_blank">alanjas@hotmail.com</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">


<div><div dir="ltr">Hi,<div><br></div><div>I found a problem with bundlebuilder (sugar-toolkit) when use "dist_xo" out</div><div>of git. The locale folder adds twice times the same .mo and the same .linfo.</div>

<div>The problem is easy solved, but exist some ways.</div><div>Basically: when execute the command, the .po are compiled. After, when</div><div>no git -> use list_files function (that returns all files including the locale</div>

<div>folder files).</div><div>In the package function, the files of get_files_in_git are add to the .zip</div><div>After, the locale files are again added:</div><div><br></div><div><div>    def package(self):</div><div>        bundle_zip = zipfile.ZipFile(self.package_path, 'w',</div>

<div>                                     zipfile.ZIP_DEFLATED)</div><div><br></div><div>        for f in self.get_files_in_git():</div><div>            bundle_zip.write(os.path.join(self.config.source_dir, f),</div><div>

                             os.path.join(self.config.bundle_root_dir, f))</div><div>        locale_dir = os.path.join(self.config.source_dir, 'locale')</div><div>        locale_files = list_files(locale_dir, IGNORE_DIRS, IGNORE_FILES)</div>

<div><br></div><div>        for f in locale_files:</div><div>            bundle_zip.write(os.path.join(locale_dir, f),</div><div>                             os.path.join(self.config.bundle_root_dir,</div><div>                                          'locale', f))</div>

</div><div><br></div><div>I have installed "python-sugar-toolkit-0.96".</div><div>Some .XO can have bigger size due to this issue.</div><div><br></div><div>Regards!</div><span><font color="#888888"><div>
<br></div><div>Alan</div><div><br></div>                                        </font></span></div></div>
<br></div></div>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><br>