UbuntuJapaneseWiki

概要

Go/NoGo Checklist

マイルストーンその1:ソフトウェアセンターへのセットアップヘルパ相当機能の追加

マイルストーンその2:セットアップヘルパの全機能の移植

マイルストーンその3:セットアップヘルパの撤廃(ソフトウェアセンターへの完全移行)

現状

Ubuntu 9.10(Karmic)時点での日本語環境セットアップヘルパの機能

セットアップヘルパは以下の2つの機能を持つ。

「おすすめパッケージの表示」

「Japanese Teamリポジトリのapt-lineの更新」

参考:セットアップヘルパの現状の制約

ソフトウェアセンターへのカタログ追加

デザインイメージ

実装案1

ソフトウェアセンターの追加カタログとして導入する。

$ dpkg -L app-install-data-partner
/.
/usr
/usr/share
/usr/share/app-install
/usr/share/app-install/desktop
/usr/share/app-install/desktop/acroread.desktop
/usr/share/app-install/desktop/flash10.desktop
/usr/share/app-install/channels
/usr/share/app-install/channels/lucid-partner.list
/usr/share/app-install/channels/lucid-partner.eula
/usr/share/app-install/icons
/usr/share/app-install/icons/acroread.png
/usr/share/app-install/icons/flash.png
/usr/share/doc
/usr/share/doc/app-install-data-partner
/usr/share/doc/app-install-data-partner/copyright
/usr/share/doc/app-install-data-partner/changelog.gz

各ディレクトリ以下のファイルの意味:

実装案2

software-centerの起動ファイルをブランチして、セットアップヘルパ用動作モードとdata/ディレクトリを作る。 その上でdata/templates/CategoriesView.htmlを修正する。

--- software-center     2010-03-09 23:54:18.223206000 +0900
+++ setup-helper-ja     2010-03-10 00:54:41.669657290 +0900
@@ -67,12 +67,12 @@
     #logging.basicConfig(level=logging.DEBUG)
     logging.basicConfig(level=logging.INFO)
 
-    if os.path.exists("./data/ui/SoftwareCenter.ui"):
+    if os.path.exists("./data-jp/ui/SoftwareCenter.ui"):
         logging.info("Using data (UI, xapian) from current dir")
         datadir = "./data"
         xapian_base_path = datadir
     else:
-        datadir = "/usr/share/software-center/"
+        datadir = "/usr/share/setup-helper-ja/"
         xapian_base_path = XAPIAN_BASE_PATH
     
     from softwarecenter.app import SoftwareCenterApp

--- data/templates/CategoriesView.html  2010-03-10 01:28:34.380129000 +0900
+++ data-jp/templates/CategoriesView.html       2010-03-10 00:50:02.890032132 +0900
@@ -16,7 +16,7 @@
   }
   function addCategory(name, untranslated_name, img) {
     // handled featured apps special
-    if (untranslated_name == "Featured Applications") {
+    if (untranslated_name == "Japanese") {
       addFeaturedCategory(name);
       return;
     }

セットアップヘルパの全機能の移植

現状の問題点

「Japanese Teamリポジトリのapt-lineの更新」機能が提供できない

パッケージ名、パッケージの説明が英語のままになる

起動のための操作が異なる

セットアップヘルパ比で操作がわかりにくい

UbuntuJapaneseWiki: Develop/Lucid/IntegrateSetupHelperIntoSoftwareCenter (最終更新日時 2012-01-10 11:49:11 更新者 匿名)