Add the translation of English and Chinese

v1-v2 Change some Chinese translation.
Add the translation of English and Chinese po files, and update
the pot files and pt_br.po to fit the new translation.

Signed-off-by: Adam Litke <agl@linux.vnet.ibm.com>
Signed-off-by: zhoumeina <zhoumein@linux.vnet.ibm.com>
kimchid: Fix default for 'host' parameter

When kimchid is started without a --host argument, the default should be
'0.0.0.0' which listens on all interfaces.  But kimchid specifies the
default as 'localhost' which will only listen on the local interface
'lo'.  Correct this so that the server is reachable from outside of the
machine by default.

Signed-off-by: Adam Litke <agl@linux.vnet.ibm.com>
The size unit of scanned ISOs is wrong

In the template creation page, the actual size unit of scanned ISOs is
bytes, but displayed in M.
Use kimchi.changetoProperUnit to convert raw value into proper unit.

Signed-off-by: Xin Ding <xinding@linux.vnet.ibm.com>
issue #166: Destroy storage when vm define fails

When defining vm fails, images allocated for it is not cleared,
thus make following vm creation with same name not work.
Fix this by cleanning images when vm define fails.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
The icon image for unknown os is not suitable

The icon image for unknown os has a border, which does not
match with the UI and is not uniform with known os icons.

Signed-off-by: Xin Ding <xinding@linux.vnet.ibm.com>
Drop the handle in storage,fix the position error of the navbar arrow

1 Drop the handle in storage
the blue handle is useless in the storage page, and will mislead the
user to click that handle bar. So drop that blue handle to make the
page more clear.

2 Change the init position of the navbar arrow.
The position of navbar arrow is the right left of the page, but not
the guest page. So change it to guest page for default.

Signed-off-by: zhoumeina <zhoumein@linux.vnet.ibm.com>
Bug fix: login window will have scroll bar when putted wrong password

This patch trying to fix bug when the username or password
is wrong, login widonw will show a error message it will make
the login window show a scroll bar, amend css to avoid this
issue.

Signed-off-by: zhoumeina <zhoumein@linux.vnet.ibm.com>
Issue #190: Language Selector Value NOT Match Page Content

When there is no language cookie set, and the browser language is set
in non-English, language selector in log-in window may have incorrect
value with regard to the page's content. Here is an example:
1) User sets browser language to Chinese (zh_CN);
2) User types Kimchi URL;
3) Server notices request header "Accept-Language" is set to "zh_CN",
   and returns page content with Chinese;
4) JS notices there is no language setting in cookie so no options in
   language selector will be selected and language selector will show
   its first option "English (en_US)".

  The problem lies in Step 4). In this patch, we correct it by adding
a check to the "lang" property of <html> DOM node. With the value, we
can keep language selector's value be consistent with page content.

Signed-off-by: Hongliang Wang <hlwang@linux.vnet.ibm.com>
Issue #191: Log-in Name Disappears after Restarting Browser

Log-in user name is stored in cookie and manipulated by JS. The problem
is expire time was not set and default to be active within the session.

  In this patch, we set the expire to one year (365 days) for user name
cookie. In addition, do the same thing to language selection.

Signed-off-by: Hongliang Wang <hlwang@linux.vnet.ibm.com>
Issue #154: Prompt User When Creating VM and There is NO Template

V1 -> V2:
  2a) Add event firing when creating template from ISO file

When there is no template, user can't create a VM. But with current
implementation, user doesn't know what happened. With this patch we
add a link to create a template for this situation.

  Tested on Chrome, Firefox, Safari, IE9, and IE10.

  Test cases include:
  1) Create a VM when there exists template(s).
  2) Create a VM when there is no template:
    2-1) Cancel and close create template window.
    2-2) Create template from ISO files by scan.
    2-3) Create template from ISO file manually.

Signed-off-by: Hongliang Wang <hlwang@linux.vnet.ibm.com>