** Description changed:

  Binary package hint: pkgbinarymangler
  
  Following a conversation at UDS and subsequent follow-ups with the OEM
  group, I'd like to request the possibility to enable the translation of
  selected universe packages in Launchpad.
  
  That would require:
- * Changes in pkgbinarymangler to create a whitelisting system to be able to 
selectively build 
+ * Changes in pkgbinarymangler to create a whitelisting system to be able to 
selectively build
  * Changes in Launchpad to stop ignoring translation imports coming from 
universe packages and start importing any translation tarball that 
pkgbinarymangler provides.
  
  Note that for source packages with upstream translations sharing enabled
  in Launchpad, this might not be even necessary (is there any check to
  ignore sharing if the Ubuntu source package comes from universe?), but
  it will be to import translations for packages not supported by upstream
  imports sharing (i.e. any project not based on intltool)
  
  Background notes
  ----------------
  
  (from conversations with pitti and danilo)
  
  In order to import universe translations and ship them in language packs we 
need:
  * A trivial patch to pkgbinarymangler and get its tests updated. Estimated 
time 15 m.
  * A small patch in Launchpad to stop ignoring universe translation tarball 
uploads.
  * Research on how the amount of universe translations compare with those from 
main. Results:
-   - We ship a total of ~1.25 GB (1252512038 bytes) of translation data as the 
sum of all language packs
-   - We ship a total of ~0.85 GB (845977204 bytes) of translation data as the 
sum of all universe packages
-   - This means universe translations have roughly 70% of the size of the 
translations we ship in language packs
+   - We ship a total of ~1.25 GB (1252512038 bytes) of translation data as the 
sum of all language packs
+   - We ship a total of ~0.85 GB (845977204 bytes) of translation data as the 
sum of all universe packages
+   - This means universe translations have roughly 70% of the size of the 
translations we ship in language packs
  * A decision from the research action above on whether to ship separate 
language packs or not
  * If we decide to ship separate universe language packs, a (not too hard) 
modification to langpack-o-matic to generate them.
  
  Other notes:
  * IIRC, from the previous UDS discussion in Brussels, we'd only want to 
enable this for selected universe packages, those which are well maintained, 
since this would introduce a delta with those packages coming from debian (the 
delta being the .pot building rules).
  * The discussion at UDS-O was not about mass-enabling universe translations, 
but rather the context was about enabling them for some packages in which we'd 
want to have more flexibility with translations and be able to ship updates in 
language packs without requiring a main inclusion request for the package. An 
example is the nanny package, which OEM distributes in their images.
  * So as we're not talking about enabling all universe, a start would be to 
add a way to whitelist selected universe packages and decide to ship them in 
the regular language packs
-    * Implementation options:
  
-      1. pkgbinarymangler whitelist: right now pkgbinarymangler already
-         builds universe translation tarballs and Launchpad ignores them.
-         Keeping this approach and importing selected packages would
-         require a whitelist both in pkgbinarymangler and Launchpad.
-      2. pkgbinarymangler universe disabled + whitelist: modify
-         pkgbinarymangler to stop from building universe translations,
-         build them only for main plus the whitelisted universe packages.
-         Launchpad imports anything thrown at it and the whitelist needs
-         to be maintained on pkgbinarymangler only.
-      3. Special header for universe packages: add an
-         "XS-Ubuntu-Use-Langpack: yes" header to the debian/control file
-         of each package we want to import the translations of. It would
-         require a modification in each package and in Launchpad (so that
-         it reads the special header)
+ Implementation:
+ 
+  * pkgbinarymangler: Stop building translation tarballs for universe 
packages, i. e. for packages which it does not strip.
+  * pkgbinarymangler: Check "XS-Ubuntu-Use-Langpack: yes" header in 
debian/control. If present, force stripping/translation tarball building. This 
can be used for particular universe packages. That way, we don't need a static 
whitelist in pkgbinarymangler, and it will also work for PPAs, etc.
+  * Launchpad: Stop ignoring universe translation tarballs.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/788685

Title:
  Enable translating selected Ubuntu universe packages in Launchpad

To manage notifications about this bug go to:
https://bugs.launchpad.net/launchpad/+bug/788685/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to