Merge pull request #272 from Vdragon/translation_zh_TW

Add zh_TW translation

Signed-off-by: David Aguilar <davvid@gmail.com>
widgets.log: avoid traceback when output is None

Avoid concatenating None and str when `out` is None.

Signed-off-by: David Aguilar <davvid@gmail.com>
widgets.search: fix unicode errors in search combobox

The strings we use for the search modes were being returned with a
bytestring str() cast.  These can be translated so ensure that we use a
proper unicode string.

Closes #273

Reported-by: Ｖ字龍(Vdragon) <pika1021@gmail.com>
Signed-off-by: David Aguilar <davvid@gmail.com>
cmds: fix unicode handling when the editor failure message contains unicode

We were converting the returned exception into a bytestring when the
Edit command failed, which results in garbled output.  Use a unicode
string instead.

Closes #266

Reported-by: Ｖ字龍(Vdragon) <pika1021@gmail.com>
Signed-off-by: David Aguilar <davvid@gmail.com>
doc: update v2.0.4 release notes draft

Signed-off-by: David Aguilar <davvid@gmail.com>
zh_TW.po: update translation of "Help"

Currently, the menu named "Help" is directly translated as "幫助"(may read
as verb/noun in Chinese).  I "patched" it to "尋求幫助(Seeking for help)"
hoping it to be more sensible for users who are really need to find some
more help on using git-cola.

This "patch" is indeed "this particular translator's own preference and
convention" rather than "convention of general zh_TW localization
community", so ignore it if you want to keep safe :-).

Signed-off-by: Ｖ字龍(Vdragon) <pika1021@gmail.com>
setup.py: install *.rst files instead of *.txt, trying to fix #279

It seems that since commit 8e0d3bb5 txt documents are rewrited using
restructured text, but setup.py wasn't updated to install them.

This commit updates setup.py to install files with rst extension
instead.

Signed-off-by: Ｖ字龍(Vdragon) <pika1021@gmail.com>
widgets.browse: fix View->History from the file browser on python3

Avoid concatenating list and generator in python3 by expanding the
generator into a list before calling VisualizePaths.

Closes #274
Closes #275

Original-patch-by: Ben Cole <wengole@gmail.com>
Signed-off-by: David Aguilar <davvid@gmail.com>
browse: editor shortcut typofix

Use the "Launch Editor" shortcut in the browser.

Signed-off-by: David Aguilar <davvid@gmail.com>
main: add hotkeys for fetch, push, and pull

Signed-off-by: David Aguilar <davvid@gmail.com>
Merge pull request #280 from Vdragon/fix_missing_rst

setup.py: install *.rst files instead of *.txt

Closes #279

Signed-off-by: David Aguilar <davvid@gmail.com>
doc: update v2.0.4 release notes draft

Signed-off-by: David Aguilar <davvid@gmail.com>
bookmarks: improve usability in the context menu

The "Edit" action was really "Launch Editor", so the menu action
explicitly to avoid ambiguities.

Add a new "Edit" action that actually edits the bookmarks list, which is
what most users would expect when clicking on "Edit".

Closes #281

Reported-by: Ｖ字龍(Vdragon) <pika1021@gmail.com>
Signed-off-by: David Aguilar <davvid@gmail.com>
compat: support unicode in environment variables

On Python2 we have to encode provide utf-8 bytestrings if we want
unicode values in enviornment variables.  Python3 accepts them as-is.

Related-to: #282
Reported-by: Ｖ字龍(Vdragon) <pika1021@gmail.com>
Signed-off-by: David Aguilar <davvid@gmail.com>
git-{cola,dag}: support installation prefixes with utf-8 paths

Decode the bytestring so that os.path.join() can operate on it now that
we're using unicode literals.

Closes #282

Reported-by: Ｖ字龍(Vdragon) <pika1021@gmail.com>
Signed-off-by: David Aguilar <davvid@gmail.com>
doc: update v2.0.4 release notes draft

Signed-off-by: David Aguilar <davvid@gmail.com>
po: update pot

Signed-off-by: Ｖ字龍(Vdragon) <pika1021@gmail.com>
po: update zh_TW.po from template

Signed-off-by: Ｖ字龍(Vdragon) <pika1021@gmail.com>
zh_TW.po: fix translation of 'previous' term

Previously this term is translated as "previous one", however it
actually applies to all previous versions.  This commit corrects the
translation and also applies to other same-term-but-different-tranlation
strings for unification.

Signed-off-by: Ｖ字龍(Vdragon) <pika1021@gmail.com>
zh_TW.po: update translation, fix issue 284

commit ec1d3b6d introduces translation with wrong format specifier.
This commit fixes those strings.

Signed-off-by: Ｖ字龍(Vdragon) <pika1021@gmail.com>