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>
i18n: Update pt_BR translations

Provide Portuguese (Brazil) translation to all messages in pt_BR.po file.

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
change the storage arrow style, and make arrow disable when inactive

Make a more simple arrow of list the storage pool.
Add a disable arrow when the pool is inactive.

Signed-off-by: zhoumeina <zhoumein@linux.vnet.ibm.com>
Fug fix:Chinese tooltip will wrap in storage

tooltip of storage pool status will wrap in Chinese,change css
to avoid this issue.

Signed-off-by: zhoumeina <zhoumein@linux.vnet.ibm.com>
Issue #183: Adjust Template Tile Layout

The template tile is too small for Portuguese Language. This patch
make the tile bigger to fix it.

Signed-off-by: Hongliang Wang <hlwang@linux.vnet.ibm.com>
Fix typo in English translation

"Network I/O" must be translated to "Network I/O" in English instead of
"Networks I/O"

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
i18n: Update translation catalogue

Update the translation catalogue to pick up two new translatable phrases
and provide the English translations.  pt_BR already has the
translations but zh_CN will need to be updated.

The new phrases are:

msgid "Please create a template first."
msgid "Create a Template"

Signed-off-by: Adam Litke <agl@linux.vnet.ibm.com>
issue #183: Display all template information in pt_BR on Firefox

While running Kimchi in Portuguese (Brazil) some template information were not
fully displayed in Firefox. Fix it.

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
build: Generate ChangeLog

Introduce a script to generate the ChangeLog, add a top-level make
target to invoke the script, and generate the ChangeLog as of the 0.1.0
release.

Signed-off-by: Adam Litke <agl@linux.vnet.ibm.com>
Make header text sizes equal

The list title CSS classes on the pages "Guest" and "Storage" defined
different font sizes for the header texts. Those texts are similar, so they will
look better if they have the same size. This patch applies the CSS class
"list-title" to the text on the page "Storage", so it looks the same as
the text on "Guests", and removes the CSS class "storagelist-title" (and
its subclass) because it did not define anything different than
"list-title".

Fix issue #192 (Header texts have different sizes).

Signed-off-by: Crístian Viana <vianac@linux.vnet.ibm.com>
Encode parameters in URL When calling REST APIs

Using the javascript function encodeURICompoment to encode parameters.

Signed-off-by: Xin Ding <xinding@linux.vnet.ibm.com>