Commit Graph

38 Commits (master)

Author SHA1 Message Date
MrS0m30n3 c4b012d2c8 Set locale automatically during the first run
Closes #235
See also: c4fa38ba8b
2017-12-09 19:13:53 +02:00
MrS0m30n3 8bbbf3ed3e Fix a bug in the convert_item function 2017-11-19 19:28:55 +02:00
MrS0m30n3 882a710b24 Extract convert_item function 2017-11-19 19:27:02 +02:00
MrS0m30n3 279ca6b527 Fix the 'utils.build_command' function
Wrap the option with double quotes if it contains
any special characters (spaces, parentheses, etc..) instead
of wrapping it only when it contains spaces.

This patch fixes the issue with the parentheses inside
the youtube-dl output template when running Youtube-dlg
on Linux.

Related to #173
2017-06-18 21:36:18 +03:00
MrS0m30n3 f776062792 Fix #173 2017-06-14 17:19:18 +03:00
MrS0m30n3 fbae6738c9 utils.py: Add 'to_bytes' & 'format_bytes' methods 2016-12-21 00:58:18 +02:00
MrS0m30n3 0af97268bb utils.py: Fix typo 2016-12-17 00:16:22 +02:00
MrS0m30n3 97adefb8fd Update utils.py to handle new UI changes 2016-12-17 00:14:38 +02:00
MrS0m30n3 718854d7ab utils.py: Remove unused OSX support 2016-12-16 20:36:10 +02:00
MrS0m30n3 dcd433e9d8 Improve custom output template creation 2016-11-08 15:10:25 +02:00
MrS0m30n3 904cfaf3c2 Remove twodict from utils.py and use it as a dep 2016-10-15 19:35:34 +03:00
MrS0m30n3 de3dc09b57 Rename utis.open_dir -> utils.open_file 2016-09-24 21:12:34 +03:00
MrS0m30n3 53f9f9f3ac Add remove_file method to utils 2016-09-24 20:55:25 +03:00
MrS0m30n3 0c9a31a8b1 Enable video formats ComboBox 2016-09-20 14:37:05 +03:00
MrS0m30n3 37aff4a1f7 Add ComboBoxLimit widget 2016-09-19 23:24:39 +03:00
MrS0m30n3 799ebed9f7 Apply new layout 2016-09-19 21:00:31 +03:00
MrS0m30n3 638d4e70ed Convert between str-unicode on app bounds, fixes #57 2016-02-16 16:36:22 +02:00
MrS0m30n3 b84a84fc5e Revert "Utils.py: decode sys.argv & os.getenv using system encoding"
This reverts commit def80ed6b4.
2015-10-19 16:23:29 +03:00
MrS0m30n3 def80ed6b4 Utils.py: decode sys.argv & os.getenv using system encoding 2015-10-18 14:59:24 +03:00
Marcin Nowicki 5d510d0d95 Add osx support to install via homebrew. 2015-04-22 14:10:14 +02:00
MrS0m30n3 df47d4b2d4 remember window size #30 2015-03-13 01:17:37 +02:00
MrS0m30n3 b859ec210a Change utils:get_config_path function 2015-03-09 17:49:43 +02:00
MrS0m30n3 5ebf46fbe3 Handle incorrect shutdown process 2015-03-09 17:41:05 +02:00
MrS0m30n3 6ad25b96ee Add error message on open_dir fail 2015-03-09 14:06:37 +02:00
MrS0m30n3 de555c31ac Handle unicode 2015-03-08 16:53:55 +02:00
MrS0m30n3 afae6cfb27 Check options type when loading from settings.json
Also add utf-8 encoding and change the literals to unicode
characters to match the GUI and the loaded json
2015-03-04 23:58:12 +02:00
MrS0m30n3 cff894b18f Fix icons search problem
The icons search algorithm was searching first under the
/usr/share/pixmaps directory for the icons which had as a
result to miss the 256x256 icon under /usr/share/icons/hicolor/256x256/apps/
and retrieve the 48x48 icon

Now the algorithm first searches the $XDG_DATA_DIRS
and then the fallback directory (/usr/share/pixmaps)
2015-03-04 20:15:06 +02:00
MrS0m30n3 7fb5fba113 Patch get_icon_file & get_locale_file functions
Add the library path in both icons and locale file search paths

 Refactor both get_icon_file & get_locale_file functions
2015-02-28 22:47:02 +02:00
MrS0m30n3 c41d69f59c Add localization
CHANGES
=======

setup.py
 Add youtube_dl_gui/locale file on the installation script

__init__.py
 Add localization via gettext
 Move optionsmanager, logmanager initialization out of the main() function

mainframe.py
 Add the gettext _() function to translate the strings

optiosframe.py
 Add the gettext _() function to translate the strings
 Add LocalizationTab

optionsmanager.py
 Add new option 'locale_name'

utils.py
 Add get_locale_file() function

NEW FILES
=========

locale_build: Contains scripts to auto create locale files

youtube_dl_gui/locale: Contains locale files for youtube-dlg
2015-02-28 14:28:40 +02:00
MrS0m30n3 5ab0035c09 Update TwoWayOrderedDict to latest version 2015-01-23 13:18:18 +02:00
MrS0m30n3 5a298b7d08 Add TwoWaysOrderedDict on utils 2015-01-18 17:43:24 +02:00
MrS0m30n3 29269bf51c Check with auto-tools (pyflakes, pylint) 2015-01-10 18:34:22 +02:00
MrS0m30n3 f84316d264 Update docstrings 2015-01-10 17:36:27 +02:00
MrS0m30n3 5afdd49c97 Update docstring utils.py 2014-12-24 14:37:02 +02:00
MrS0m30n3 48ac33e4ee Refactor utils.py 2014-12-06 18:02:45 +02:00
MrS0m30n3 4cba365a3f Support more formats when mixing
Now you can combine more video formats under
Options>Video tab.
2014-08-02 20:28:20 +03:00
MrS0m30n3 a811c05fb6 Add 48x48 icon 2014-07-29 18:11:27 +03:00
MrS0m30n3 28a01eeb70 Refactor 2014-07-20 18:47:07 +03:00