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>
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>

Conflicts:
	po/zh_TW.po
zh_TW.po: fix wrong punctuation

The correct punctuation for 'period' is '。' in zh_TW locale.

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

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

Signed-off-by: Ｖ字龍(Vdragon) <pika1021@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>
git-cola.rst: mention using LANGUAGE environment variable to switch language

Signed-off-by: Ｖ字龍(Vdragon) <pika1021@gmail.com>
Bookmark: Fix empty name when path has trailing slash

Normalize the path / remove redundant separator before trying to get the
folder name.

Reported-by: Vdragon
Signed-off-by: Minarto Margoliono lie.r.min.g@gmail.com
tag: Display error message when creating tag with invalid name

When an invalid name is supplied during tag creation, there was no error
displayed to the user. It would always say "Created a new tag named [tag
name]" even though no tag is actually created.

This change will display error message instead of tag creation message
when git tag command fails.

Reported-by: Ｖ字龍(Vdragon) <pika1021@gmail.com>
Signed-off-by: Minarto Margoliono <lie.r.min.g@gmail.com>
git-cola.rst: fix reStructuredText syntax

This commit adds the missing "Literal Blocks" syntax to commit 805ff555

Signed-off-by: Ｖ字龍(Vdragon) <pika1021@gmail.com>
Merge pull request #291 from Vdragon/translation_zh_TW

zh_TW translation update

Signed-off-by: David Aguilar <davvid@gmail.com>
Merge pull request #295 from mmargoliono/288

Bookmark: Fix empty name when path has trailing slash

Signed-off-by: David Aguilar <davvid@gmail.com>