Change comments from Japanese to English
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>
Sun, 22 Oct 2017 01:55:02 +0000 (10:55 +0900)
committerZheng Wenlong <wenlong_zheng@nexty-ele.com>
Mon, 30 Oct 2017 00:49:09 +0000 (00:49 +0000)
    There are some Japanese comments in RC1,
    change these to English.

    [Patch Sets 2]
    Split CMakeLists.txt due to modification in another commit.

    [Patch Sets 3]
    Update commit message.

    [Patch Sets 4]
    Return to Patch Sets 1 to rebase for this commit.
    <Delete libhomescreen from this gerrit repository>

    [Patch Sets 5]
    Return to Patch Sets 3 to rebase for this commit.
    <Modify library name in CMakeLists.txt>

Change-Id: Ib520d39ede23cb0059f303c6e38090c9ed65a45b
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
libhomescreen/libhomescreen.cpp
src/homescreen.c

index eb059a1..6c6076e 100644 (file)
@@ -245,12 +245,12 @@ int LibHomeScreen::runEventloop()
 }
 
 /**
- * ショートカットアイコンがタップされたイベントの発行
+ * Sending ShortCut Icon tapped event
  *
- * HomeScreenアプリケーションにて各アプリアイコンがタップされたときにイベントを発行する
+ * When HomeScreen shortcut area is tapped, sending a event
  *
  * #### Parameters
- * - application_name [in] : タップされたアプリケーションの名前(label)
+ * - application_name [in] : Tapped application name (label)
  *
  * #### Return
  * - Returns 0 on success or -1 in case of error.
@@ -269,12 +269,12 @@ int LibHomeScreen::tapShortcut(const char* application_name)
 }
 
 /**
- * HomeScreenアプリに表示するメッセージイベントの発行
+ * Sending onScreen message event
  *
- * 各アプリからHomeScreenアプリケーションのOnScreenに表示するイベントを発行する
+ * Sending OnScreen message event to HomeScreen from applications
  *
  * #### Parameters
- * - display_message [in] : 表示するメッセージ
+ * - display_message [in] : message for display
  *
  * #### Return
  * - Returns 0 on success or -1 in case of error.
@@ -293,13 +293,13 @@ int LibHomeScreen::onScreenMessage(const char* display_message)
 }
 
 /**
- * イベントハンドラの登録
+ * Setting Event Handler
  *
- * 各アプリからHomeScreenアプリケーションのOnScreenに表示するイベントを発行する
+ * Setting event handler for Homescreen
  *
  * #### Parameters
- * - et [in] : 対象のイベント
- * - f [in] : イベントハンドラ
+ * - et [in] : event name
+ * - f [in] : event handler
  *
  * #### Return
  * Nothing
index 4a15861..98631c8 100644 (file)
@@ -61,13 +61,12 @@ static void pingSample(struct afb_req request)
 }
 
 /**
- * HomeScreenから呼ばれる
- * ショートカットがタップされたことをアプリケーションに通知するために使用する
- * アプリケーションからは使用されない
- *
+ * tap_shortcut notify for homescreen
+ * When Shortcut area is tapped,  notify these applciations
+  *
  * #### Parameters
  * Request key
- * - application_name   : アプリケーション名
+ * - application_name   : application name
  *
  * #### Return
  * Nothing
@@ -92,7 +91,7 @@ static void tap_shortcut (struct afb_req request)
       return;
     }
 
-  // HomeScreenに返すレスポンス
+  // response to HomeScreen
     struct json_object *res = json_object_new_object();
     hs_add_object_to_json_object_func(res, __FUNCTION__, 2,
       _error,  ret);
@@ -100,12 +99,12 @@ static void tap_shortcut (struct afb_req request)
 }
 
 /**
- * HomeScreenのOnScreenを表示する
+ * HomeScreen OnScreen message
  *
  * #### Parameters
  * Request key
- * - display_message   : 表示したい文字列
- * 
+ * - display_message   : message for display
+ *
  * #### Return
  * Nothing
  *
@@ -129,7 +128,7 @@ static void on_screen_message (struct afb_req request)
       return;
     }
 
-  // HomeScreenに返すレスポンス
+  // response to HomeScreen
     struct json_object *res = json_object_new_object();
     hs_add_object_to_json_object_func(res, __FUNCTION__, 2,
       _error,  ret);