mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-08-25 17:39:23 +00:00
Compare commits
472 Commits
v0.86
...
snapshot12
Author | SHA1 | Date | |
---|---|---|---|
89985cf6bd | |||
cc4568b968 | |||
d7132ecaf6 | |||
720e0e6c24 | |||
9763d8b26c | |||
f512267b6d | |||
241de0264d | |||
5c7bce1258 | |||
e24543be12 | |||
422c780d0c | |||
![]() |
96a592a4f9 | ||
d4bf33ca6d | |||
e5b33160e0 | |||
c8d83ed9e7 | |||
16b2e16614 | |||
221d1d413b | |||
4391e3d3de | |||
c5e9e97c84 | |||
4c1cad7f61 | |||
fffd98e09e | |||
a1a084bfda | |||
85e575386e | |||
2c64805eec | |||
6f2e439ddc | |||
7e42a096a5 | |||
9d2cf05a41 | |||
d7c095173d | |||
36ba6eca92 | |||
b6fa131999 | |||
c85c478595 | |||
![]() |
74e020c090 | ||
40105f37ed | |||
ca3f8779b8 | |||
a6a651d6f7 | |||
7748b4bb5d | |||
01a6c65c82 | |||
211d43aa30 | |||
c716f4aa96 | |||
9fd9d2a120 | |||
5c75be20d3 | |||
1ccb898f78 | |||
d734a30a18 | |||
3d310c0ee4 | |||
79512af350 | |||
7a2ad3797d | |||
f87312fc53 | |||
682f1e8bd4 | |||
cbc2e978c9 | |||
72fd93eaf6 | |||
8bac4b8ec6 | |||
6c29a4a18f | |||
3ae581a19f | |||
a9378988cb | |||
00f96bb7af | |||
ecd2984a61 | |||
3be69cb6a2 | |||
099bc49761 | |||
ec61f4b431 | |||
b16a6c5ddb | |||
9a94b92018 | |||
fe8a3b1565 | |||
a3d1052193 | |||
fbbd3cf00e | |||
8a6f73fdc2 | |||
c806f17484 | |||
db231e07f8 | |||
eaf13a4453 | |||
d4a73fb3bb | |||
8459135002 | |||
4aef2595b2 | |||
ccdcc7676e | |||
967cc8da71 | |||
071bcf55ef | |||
cf735211c9 | |||
bd56eb953b | |||
940ace664c | |||
![]() |
8619deb6ee | ||
![]() |
9fcc5d36e5 | ||
![]() |
c374cdefe9 | ||
7b925b5909 | |||
013a80a1f2 | |||
ec860aa6fc | |||
12e06eb52d | |||
464fce07b0 | |||
ad484a1f35 | |||
7296d2a939 | |||
cd596a6ad6 | |||
![]() |
ed3b9c9538 | ||
df9d99edcd | |||
![]() |
f5f4074409 | ||
6439eac76c | |||
5c794aaeff | |||
8cdd1b52d1 | |||
6928ac4b99 | |||
ae42a53b41 | |||
be7df1714d | |||
8cf7ca5ef2 | |||
0cfa89b389 | |||
f63ed6d0a7 | |||
00440e9050 | |||
76db14360a | |||
0966739296 | |||
1e27056902 | |||
3b41e18573 | |||
2668e47a6f | |||
b44e30ed28 | |||
bfad5b82f0 | |||
41d4c97067 | |||
![]() |
52f27c87b9 | ||
3f5ef28a48 | |||
4ec1e08606 | |||
f2cea695ee | |||
e4a6ead606 | |||
dc536c45de | |||
95fcbe6ba4 | |||
60f55940b7 | |||
655331d405 | |||
4381992718 | |||
eb87d924c2 | |||
1cebb29bdc | |||
27c1ec990a | |||
d40b816c48 | |||
ac5daec462 | |||
0835a34c71 | |||
babbc0a08d | |||
04ac629b51 | |||
![]() |
3920435eb7 | ||
2f0b20558e | |||
9ca6e15a20 | |||
9c2dba7cf8 | |||
318b6caf5f | |||
![]() |
83612b6a3c | ||
![]() |
f4e20f8ed4 | ||
![]() |
7883413210 | ||
![]() |
ad54134c86 | ||
![]() |
ef0d3a9eae | ||
ea48733cef | |||
6893d923a3 | |||
d94b133e63 | |||
28b6d554e2 | |||
931cadfffa | |||
232d876c8f | |||
c7f4fd2926 | |||
6b43ff1c0e | |||
5b5d762759 | |||
b4020d0f95 | |||
d8da78e22d | |||
c82bb4125b | |||
7b5e6477d3 | |||
41582a3770 | |||
e9cbe0d825 | |||
dc563523bc | |||
b15eed9697 | |||
019e83c55b | |||
7dad22189a | |||
eebaf94cbf | |||
1726d5882c | |||
64d843d98a | |||
610f18dcb6 | |||
cea638b680 | |||
e1e0a4e092 | |||
bc4a8bcba1 | |||
3db13062ed | |||
9559f07013 | |||
dee30385cc | |||
49ce469c12 | |||
59e1299a0b | |||
ab2667529f | |||
![]() |
a7fd88b4be | ||
a2cb4ba889 | |||
9847f7ad01 | |||
c2d81279fe | |||
77489cab1e | |||
7d35dbc752 | |||
f2ea4136c0 | |||
537d011b40 | |||
8af1e650b7 | |||
e3cbd8be87 | |||
7099875bc7 | |||
4a15fe1602 | |||
7478edd454 | |||
da4658c220 | |||
6768bf85d5 | |||
199a06c6e5 | |||
b967c32393 | |||
e9797ce6ac | |||
861de1f354 | |||
6f838d12e9 | |||
010c0011aa | |||
b1c5ddbca8 | |||
a16f16d36d | |||
e5196f0aad | |||
b8df56dcbb | |||
612f4ffadf | |||
652d3c7ff8 | |||
b6d49bb851 | |||
cb6f90a027 | |||
fff215fcdb | |||
8e9743cae1 | |||
0e41fabbe6 | |||
5ff5a4a6d2 | |||
d4dadfcdc7 | |||
fac228dec1 | |||
79490f8346 | |||
635b467394 | |||
e886090830 | |||
80cb5567d5 | |||
3c0824aad4 | |||
0bbbb3f1b6 | |||
![]() |
51c5820719 | ||
![]() |
d6f47259a6 | ||
2457fcf8f3 | |||
87a6290f74 | |||
7109d904a2 | |||
435ffef6fd | |||
![]() |
2fb88924fd | ||
![]() |
6ba1fe9eac | ||
b184bed1a8 | |||
53deb869fc | |||
f9db4d6d51 | |||
7861f42d26 | |||
e8a692a061 | |||
c5a5b187ec | |||
ab18445338 | |||
4d6b589086 | |||
5a03cc80ca | |||
fd17d824be | |||
a0fe62a227 | |||
00db4ff806 | |||
45430e036c | |||
29c3f1d194 | |||
e10e3b3c49 | |||
d9a9adef1f | |||
02538322c6 | |||
efc5b481f8 | |||
2c1bd6a8c8 | |||
4d1732b3aa | |||
a0e41a4450 | |||
2ee3e315b6 | |||
29df2e44b4 | |||
8836cb2bda | |||
2d9124c336 | |||
b832e36c7d | |||
98cf02ee98 | |||
519d096f29 | |||
34e9b8b89f | |||
beb75ff6d1 | |||
9fd7c14e32 | |||
e303d914fe | |||
5f7f176892 | |||
8928a64a12 | |||
6a3b498d52 | |||
682ee82aa8 | |||
1e22ebce61 | |||
c2413489e5 | |||
094325cbf0 | |||
a5e1686af6 | |||
54cb099007 | |||
636c21df94 | |||
cdad6ff600 | |||
68efc86536 | |||
e06ccacda1 | |||
da6eb34500 | |||
0f31a776ff | |||
efc6843ee2 | |||
a13dd756b1 | |||
1b62eece13 | |||
e23ef1ded2 | |||
066de25f95 | |||
cd128b8e69 | |||
![]() |
9e17abf517 | ||
cbd3126a4f | |||
0d0aed0490 | |||
ed7c9802d1 | |||
68ea029fe3 | |||
3a465f2314 | |||
ef2d672b35 | |||
![]() |
b3c8de9a1f | ||
![]() |
4d75f2db34 | ||
![]() |
f69e4283cd | ||
![]() |
cbbf1e475d | ||
![]() |
851f711357 | ||
![]() |
11703f50fe | ||
![]() |
11ca3a2190 | ||
![]() |
a1381008d7 | ||
59504cca57 | |||
da06c568c5 | |||
d333b5f5c3 | |||
348b8da619 | |||
904226cfd4 | |||
2cf5caa90d | |||
![]() |
ff05c9cb23 | ||
![]() |
f18a03d4a1 | ||
![]() |
24756e73d3 | ||
![]() |
feb16d9773 | ||
5b47e8806a | |||
a073a5caaa | |||
a69a26e107 | |||
76582c6313 | |||
5a249ba942 | |||
![]() |
696b6aa11d | ||
![]() |
44187c69de | ||
![]() |
efb8cac079 | ||
![]() |
7997f23f9c | ||
20d4023e58 | |||
![]() |
b62f99bc5a | ||
![]() |
70bba44da7 | ||
![]() |
d25ace8f98 | ||
![]() |
eb19417263 | ||
![]() |
982fd41ae3 | ||
cf19e644e4 | |||
02c5b40315 | |||
825a896414 | |||
![]() |
dabb3a01b8 | ||
![]() |
5d68d1f1cb | ||
![]() |
85613da33a | ||
268a123449 | |||
4c22c29241 | |||
![]() |
7a7634833a | ||
![]() |
d70b5703d2 | ||
![]() |
21d6471bb2 | ||
![]() |
a492baf486 | ||
![]() |
0163314e36 | ||
![]() |
1d7d376ca1 | ||
868002c78b | |||
c3b19f42d5 | |||
ee234995f5 | |||
![]() |
0472592991 | ||
![]() |
5b8c28dd73 | ||
![]() |
a8f854cbc5 | ||
80f2e8f984 | |||
d4b410cafd | |||
![]() |
af04bcfe3f | ||
![]() |
7349e3b3f3 | ||
bf4c09d0bb | |||
adc45ae767 | |||
2618e0ac90 | |||
3feeb568d8 | |||
fb977a70c2 | |||
c4a06a7bc0 | |||
df5967079c | |||
0a3219d12a | |||
77baa06fc3 | |||
160d168c63 | |||
713ac0251b | |||
c655c76196 | |||
3cf6ac5c06 | |||
43bdb358dd | |||
6f622bdeba | |||
7e6103473f | |||
![]() |
caa051abae | ||
fbe6eb6250 | |||
b9d8e13bdf | |||
16a6fa2896 | |||
![]() |
089eea4c07 | ||
![]() |
37e3af1c59 | ||
562759f57e | |||
a9dc188c4b | |||
cced182063 | |||
66774174ae | |||
d9e972115b | |||
2d7c8e59dd | |||
![]() |
802c879795 | ||
![]() |
34f92b8af9 | ||
![]() |
a72e8dd6a4 | ||
4793aaf5e6 | |||
c136c50afc | |||
![]() |
3a4b34972d | ||
![]() |
607da14355 | ||
![]() |
17ccc30d9b | ||
3855407f52 | |||
03415f6b24 | |||
![]() |
1061967adc | ||
b165d564e0 | |||
20c2f844f5 | |||
ad9f2452b2 | |||
a86a6f52d6 | |||
4d82ecc8f2 | |||
023e0979c6 | |||
ca6e78cd4d | |||
8f4b1f9695 | |||
20aaa39bc9 | |||
![]() |
8197f0c0d9 | ||
![]() |
aa1a3542e5 | ||
05c0fefc01 | |||
1fd90be4cb | |||
05a4e9b6e4 | |||
![]() |
9d07fe38b8 | ||
fedf153252 | |||
80f9125511 | |||
25c88cea3b | |||
c9161cd772 | |||
f7c334ad96 | |||
59f6cf13ad | |||
3684ec2783 | |||
6baf417d35 | |||
db52e8d851 | |||
0bf630d8c0 | |||
![]() |
4bd9a2b899 | ||
7daacfa809 | |||
![]() |
b586b0729c | ||
d384ad9dd3 | |||
e7aac6c805 | |||
e34c84697e | |||
a639604179 | |||
7b5022da09 | |||
![]() |
620ee23edb | ||
![]() |
f19d7b0535 | ||
![]() |
a5acc3ef56 | ||
![]() |
40fc175185 | ||
![]() |
67dee3e1c1 | ||
![]() |
dab8be7c12 | ||
![]() |
b7dd6d43fe | ||
![]() |
8a701c450e | ||
![]() |
2370c39c15 | ||
![]() |
0851dc23d8 | ||
![]() |
232d39e0b3 | ||
2c27a1968f | |||
4d5de6ca69 | |||
![]() |
fb349fc7b4 | ||
![]() |
1a4d0d5b9a | ||
![]() |
5eff1b77fe | ||
6bb534d250 | |||
2d8c706cde | |||
4e702c5428 | |||
![]() |
6717cb5154 | ||
590f59ca63 | |||
6bad20b784 | |||
146667144a | |||
cc60235503 | |||
31a149b022 | |||
ec58d02bb3 | |||
516acb501a | |||
88a706dd7d | |||
6d887d5762 | |||
cd7fb6d36f | |||
![]() |
020148ac0a | ||
9d0558468a | |||
7d188a40b2 | |||
0c3d956d96 | |||
44ca5a7f83 | |||
![]() |
cdedd41101 | ||
![]() |
87c113986d | ||
![]() |
b0a6634e20 | ||
53388696b6 | |||
fe7a69f490 | |||
1351712db4 | |||
ca0f00e27d | |||
![]() |
6290815a0c | ||
4a1162005d | |||
72b4873dce | |||
a1ccdd6bf4 | |||
2cad567537 | |||
![]() |
bb0af61483 | ||
7a2e51ef03 | |||
b3451e229d | |||
32dd232350 | |||
![]() |
656b031c5c | ||
![]() |
0f2bd2a9e1 | ||
![]() |
12f47b85af | ||
30c0a8249e | |||
62e51ad14b | |||
d076ed1f56 | |||
9bbe325517 | |||
6f5ef6d3f1 | |||
378d277a98 | |||
![]() |
2fdbcbc152 | ||
![]() |
ef7ba0fe40 | ||
![]() |
2497d01bd6 | ||
![]() |
a57c44d566 | ||
![]() |
6a056749af | ||
![]() |
99bdaca6f0 |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -18,4 +18,5 @@ src/launcher.bat
|
||||
src/sounds/iOs
|
||||
release-snapshot/
|
||||
src/com_cache/
|
||||
doc/strings.py
|
||||
doc/strings.py
|
||||
doc/changelog.py
|
2
COPYING
2
COPYING
@@ -1,5 +1,5 @@
|
||||
Tw Blue is free software, licensed under the GNU GPL license, either version 2 or, at your option, any later version. You can view the license in the file named license.txt, or online at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
|
||||
Copyright © 2013-2015. Manuel Cortéz
|
||||
Copyright © 2013-2018. Manuel Cortéz
|
||||
|
||||
Documentation is written by Sukil Etxenike, Brian Hartgen and Bill Dengler, covered by the Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license. You can read the license at https://creativecommons.org/licenses/by-nc-sa/2.5/
|
||||
|
||||
|
68
README.md
68
README.md
@@ -1,9 +1,9 @@
|
||||
TWBlue -
|
||||
======
|
||||
|
||||
Copyright (C) 2016. [Technow S.L.](https://www.technow.es)
|
||||
[](https://ci.appveyor.com/project/manuelcortez/twblue)
|
||||
|
||||
TW Blue is an app designed to use Twitter simply and efficiently while using minimal system resources.
|
||||
TW Blue is an app designed to use Twitter simply and efficiently while using minimal system resources.
|
||||
With this app you’ll have access to twitter features such as:
|
||||
|
||||
* Create, reply to, like, retweet and delete tweets,
|
||||
@@ -31,49 +31,38 @@ Although most dependencies can be found in the windows-dependencies directory, w
|
||||
|
||||
#### Dependencies packaged in windows installers
|
||||
|
||||
* [Python,](http://python.org) version 2.7.11
|
||||
* [Python,](http://python.org) version 2.7.15
|
||||
If you want to build both x86 and x64 binaries, you can install python x86 to C:\python27 and python x64 to C:\python27x64, for example.
|
||||
* [wxPython](http://www.wxpython.org) for Python 2.7, version 3.0.2.0
|
||||
* [Python windows extensions (pywin32)](http://www.sourceforge.net/projects/pywin32/) for python 2.7, build 220
|
||||
* [PyEnchant,](http://pythonhosted.org/pyenchant/) version 1.6.6.
|
||||
x64 version has been built by TWBlue developers, so you only will find it in windows-dependencies folder
|
||||
|
||||
The windows installers are available only in the windows-dependencies folder
|
||||
The windows installers are available only in the windows-dependencies folder.
|
||||
|
||||
To build a binary version:
|
||||
|
||||
* [Py2exe](http://www.sourceforge.net/projects/py2exe/) for Python 2.7, version 0.6.9
|
||||
|
||||
#### Dependencies that must be installed using easy_install
|
||||
#### Dependencies that must be installed using pip
|
||||
|
||||
setuptools installs a script, called easy_install. You can find it in the python scripts directory. To install packages using easy_install, you have to navigate to the scripts directory using a command prompt, for example:
|
||||
Python installs a tool called Pip that allows to install packages in a simple way. You can find it in the python scripts directory. To install packages using Pip, you have to navigate to the scripts directory using a command prompt, for example:
|
||||
|
||||
cd C:\python27x64\scripts
|
||||
|
||||
You can also add the scripts folder to your path environment variable.
|
||||
You can also add the scripts folder to your path environment variable or choose the corresponding option when installing Python.
|
||||
Note: pip and setuptools are included in the Python installer since version 2.7.9.
|
||||
|
||||
After that, run the following command to install a package, replacing packagename with the names listed below:
|
||||
Pip is able to install packages listed in a special text file, called the requirements file. To install all remaining dependencies, perform the following command:
|
||||
|
||||
easy_install -Z package
|
||||
pip install -r requirements.txt
|
||||
|
||||
The -z switch unzips the package, instead of installing it compressed. If you add the --upgrade switch, you can upgrade a package to its latest version. The following packages need to be installed:
|
||||
Note that if you perform the command from the path where Pip is located, you need to specify the path to your Tw Blue root folder where the requirements file is located, for example:
|
||||
|
||||
* pypubsub
|
||||
* configobj
|
||||
* requests-oauthlib
|
||||
* requests-toolbelt
|
||||
* future
|
||||
* pygeocoder
|
||||
* suds
|
||||
* arrow==0.6
|
||||
* markdown
|
||||
* winpaths
|
||||
* microsofttranslator
|
||||
pip install -r D:\repos\TwBlue\requirements.txt
|
||||
|
||||
easy_install will automatically get the additional libraries that these packages need to work properly.
|
||||
Run the following command to quickly install and upgrade all packages and their dependencies:
|
||||
easy_install -Z --upgrade six configobj goslate markdown future suds requests oauthlib requests-oauthlib requests-toolbelt pypubsub pygeocoder arrow==0.6 python-dateutil futures microsofttranslator winpaths
|
||||
Pip will automatically get the additional libraries that the listed packages need to work properly.
|
||||
If you need to update your dependencies, perform the following command:
|
||||
|
||||
pip install --upgrade -r requirements.txt
|
||||
|
||||
#### Other dependencies
|
||||
|
||||
@@ -83,34 +72,41 @@ These dependencies are located in the windows-dependencies directory. You don't
|
||||
This dependency has been built using pure basic 4.61. Its source can be found at http://hg.q-continuum.net/updater
|
||||
* [oggenc2.exe,](http://www.rarewares.org/ogg-oggenc.php) version 2.87
|
||||
* Microsoft Visual c++ 2008 redistributable dlls.
|
||||
* VLC plugins and DLL libraries.
|
||||
|
||||
#### Dependencies required to build the installer
|
||||
|
||||
* [NSIS unicode,](http://www.scratchpaper.com/) version 2.46.5
|
||||
* [NSIS,](http://nsis.sourceforge.net/) version 3.03
|
||||
|
||||
#### Dependencies required to build the portableApps.com format archive
|
||||
|
||||
* [NSIS Unicode Portable,](http://portableapps.com/apps/development/nsis_portable) version 2.46.5 rev 3
|
||||
* [PortableApps.com Launcher,](http://portableapps.com/apps/development/portableapps.com_launcher) version 2.2
|
||||
* [PortableApps.com Installer,](http://portableapps.com/apps/development/portableapps.com_installer) version 3.4.2
|
||||
* [NSIS Portable,](http://portableapps.com/apps/development/nsis_portable) version 3.03
|
||||
* [PortableApps.com Launcher,](http://portableapps.com/apps/development/portableapps.com_launcher) version 2.2.1
|
||||
* [PortableApps.com Installer,](http://portableapps.com/apps/development/portableapps.com_installer) version 3.5.8
|
||||
|
||||
Important! Install these 3 apps into the same folder, otherwise you won't be able to build the pa.c version. For example: D:\portableApps\NSISPortable, D:\PortableApps\PortableApps.com installer, ...
|
||||
|
||||
#### Dependencies to make the spell checker multilingual ####
|
||||
|
||||
In order to add the support for spell checking in more languages than english you need to add some additional dictionaries to pyenchant. These are located on the dictionaries folder under windows-dependencies. Simply copy them to the share/enchant/myspell folder located in your enchant installation. They will be automatically copied when building a binary version.
|
||||
|
||||
### Running TW Blue from source
|
||||
|
||||
Now that you have installed all these packages, you can run TW Blue from source using a command prompt. Navigate to the repo's src directory, and type the following command:
|
||||
Now that you have installed all these packages, you can run TW Blue from source using a command prompt. Navigate to the repo's `src` directory, and type the following command:
|
||||
|
||||
python main.py
|
||||
|
||||
If necessary, change the first part of the command to reflect the location of your python executable. You can run TW Blue using python x86 and x64
|
||||
If necessary, change the first part of the command to reflect the location of your python executable. You can run TW Blue using python x86 and x64.
|
||||
|
||||
### Generating the documentation
|
||||
|
||||
To generate the documentation in html format, navigate to the doc folder inside this repo. After that, run these commands:
|
||||
python document_importer.py
|
||||
python generator.py
|
||||
The documentation will be generated, placing each language in a separate folder in the doc directory. Move these folders (for example de, en, es, fr, it, ...) to src/documentation, creating the directory if necesary.
|
||||
Also, copy the license.txt located in the root of the repo to the documentation folder.
|
||||
|
||||
python document_importer.py
|
||||
python generator.py
|
||||
|
||||
The documentation will be generated, placing each language in a separate folder in the doc directory. Move these folders (for example `de`, `en`, `es`, `fr`, `it`, ...) to `src/documentation`, creating the directory if necessary.
|
||||
Also, copy the `license.txt` file located in the root of the repo to the documentation folder.
|
||||
|
||||
### Building a binary version
|
||||
|
||||
|
83
appveyor.yml
Normal file
83
appveyor.yml
Normal file
@@ -0,0 +1,83 @@
|
||||
pull_requests:
|
||||
# Avoid building after pull requests. Shall we disable this option?
|
||||
do_not_increment_build_number: true
|
||||
|
||||
# Only build whenever we add tags to the repo.
|
||||
skip_non_tags: true
|
||||
|
||||
environment:
|
||||
|
||||
matrix:
|
||||
|
||||
# List of python versions we want to work with.
|
||||
- PYTHON: "C:\\Python27"
|
||||
PYTHON_VERSION: "2.7.x" # currently 2.7.9
|
||||
PYTHON_ARCH: "32"
|
||||
|
||||
# perhaps we may enable this one in future?
|
||||
# - PYTHON: "C:\\Python27-x64"
|
||||
# PYTHON_VERSION: "2.7.x" # currently 2.7.9
|
||||
# PYTHON_ARCH: "64"
|
||||
|
||||
# This is important so we will retrieve everything in submodules as opposed to default method.
|
||||
clone_script:
|
||||
- cmd: >-
|
||||
git clone -q --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER%
|
||||
&& cd %APPVEYOR_BUILD_FOLDER%
|
||||
&& git checkout -qf %APPVEYOR_REPO_COMMIT%
|
||||
&& git submodule update --init --recursive
|
||||
|
||||
install:
|
||||
# If there is a newer build queued for the same PR, cancel this one.
|
||||
# The AppVeyor 'rollout builds' option is supposed to serve the same
|
||||
# purpose but it is problematic because it tends to cancel builds pushed
|
||||
# directly to master instead of just PR builds (or the converse).
|
||||
# credits: JuliaLang developers.
|
||||
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
|
||||
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
|
||||
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
|
||||
throw "There are newer queued builds for this pull request, failing early." }
|
||||
- ECHO "Filesystem root:"
|
||||
- ps: "ls \"C:/\""
|
||||
|
||||
# Check that we have the expected version and architecture for Python
|
||||
- "python --version"
|
||||
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
|
||||
|
||||
# Upgrade to the latest version of pip to avoid it displaying warnings
|
||||
# about it being out of date.
|
||||
- "python -m pip install --upgrade pip setuptools"
|
||||
|
||||
# Install the build dependencies of the project. If some dependencies contain
|
||||
# compiled extensions and are not provided as pre-built wheel packages,
|
||||
# pip will build them from source using the MSVC compiler matching the
|
||||
# target Python version and architecture
|
||||
- "%CMD_IN_ENV% pip install -r requirements.txt"
|
||||
- "%CMD_IN_ENV% pip install pyenchant py2exe_py2"
|
||||
|
||||
build_script:
|
||||
# Build documentation at first, so setup.py won't fail when copying everything.
|
||||
- "cd doc"
|
||||
# Import documentation before building, so strings.py will be created.
|
||||
- "%CMD_IN_ENV% python documentation_importer.py"
|
||||
# build doc from src folder so it will generate result files right there.
|
||||
- "cd ..\\src"
|
||||
- "%CMD_IN_ENV% python ..\\doc\\generator.py"
|
||||
# Build distributable files.
|
||||
- "%CMD_IN_ENV% python setup.py py2exe"
|
||||
- "cd dist"
|
||||
# Zip it all.
|
||||
- cmd: 7z a ..\..\snapshot.zip *
|
||||
|
||||
artifacts:
|
||||
- path: snapshot.zip
|
||||
|
||||
deploy:
|
||||
- provider: FTP
|
||||
host: twblue.es
|
||||
protocol: ftp
|
||||
beta: true
|
||||
username: twblue
|
||||
password:
|
||||
secure: ml/xB8YEoZ7DmjzDr+KSNw==
|
||||
# folder: '//pubs'
|
@@ -1,12 +1,8 @@
|
||||
Manuel E. Cortéz
|
||||
Bill Dengler
|
||||
Johana Hidrobo
|
||||
Marcelo Sosa
|
||||
Isabel del Castillo
|
||||
José Manuel Delicado
|
||||
David Picón
|
||||
Vicente Llopis
|
||||
Javier Dorado
|
||||
Guillem León
|
||||
Marco Serrano
|
||||
Bryner Villalobos
|
||||
@@ -35,11 +31,11 @@ Anibal Hernández
|
||||
Sussan Leiva
|
||||
Brian Hartgen
|
||||
PEDRO REINA COLOBON
|
||||
Moora-Moora Arrilla
|
||||
Blake Oliver
|
||||
Steffen Schultz
|
||||
Riku
|
||||
Burak Yüksek
|
||||
florian Ionașcu
|
||||
Christian Leo Mameli
|
||||
Natalia Hedlund (Наталья Хедлунд)
|
||||
Natalia Hedlund (Наталья Хедлунд)
|
||||
Valeria (Валерия)
|
@@ -2,7 +2,7 @@
|
||||
name = 'TWBlue'
|
||||
snapshot = False
|
||||
if snapshot == False:
|
||||
version = "0.86"
|
||||
version = "0.94"
|
||||
update_url = 'http://twblue.es/updates/twblue_ngen.json'
|
||||
mirror_update_url = 'https://raw.githubusercontent.com/manuelcortez/TWBlue/next-gen/updates/stable.json'
|
||||
else:
|
||||
@@ -11,7 +11,7 @@ else:
|
||||
mirror_update_url = 'https://raw.githubusercontent.com/manuelcortez/TWBlue/next-gen/updates/snapshots.json'
|
||||
author = u"Manuel Cortéz"
|
||||
authorEmail = "manuel@manuelcortez.net"
|
||||
copyright = u"Copyright (C) 2015, Technow S.L. \nCopyright (C) 2013-2015, Manuel cortéz."
|
||||
copyright = u"Copyright (C) 2013-2016, Manuel cortéz."
|
||||
description = unicode(name+" is an app designed to use Twitter simply and efficiently while using minimal system resources. This app provides access to most Twitter features.")
|
||||
translators = [u"Bryner Villalobos, Bill Dengler (English)", u"Mohammed Al Shara (Arabic)", u"Joan Rabat, Juan Carlos Rivilla (Catalan)", u"Manuel cortéz (Spanish)", u"Sukil Etxenike Arizaleta (Basque)", u"Jani Kinnunen (finnish)", u"Rémy Ruiz (French)", u"Juan Buño (Galician)", u"Steffen Schultz (German)", u"Robert Osztolykan (Hungarian)", u"Paweł Masarczyk (Polish)", u"Odenilton Júnior Santos (Portuguese)", u"Alexander Jaszyn (Russian)", u"Burak (Turkish)"]
|
||||
url = u"http://twblue.es"
|
||||
|
202
doc/changelog.md
Normal file
202
doc/changelog.md
Normal file
@@ -0,0 +1,202 @@
|
||||
TWBlue Changelog
|
||||
|
||||
## changes in this version
|
||||
|
||||
* TWBlue can open a Tweet or user directly in Twitter. There is a new option in the context menu for people and tweet buffers, and also, the shortcut control+win+alt+Enter will open the focused item in Twitter.
|
||||
* Some keystrokes were remapped in the Windows 10 Keymap:
|
||||
* Read location of a tweet: Ctrl+Win+G. ([#177](https://github.com/manuelcortez/TWBlue/pull/177))
|
||||
* Open global settings dialogue: Ctrl+Win+Alt+O.
|
||||
* Mute/unmute current session: Control + Windows + Alt + M.
|
||||
* Fixed an error that was preventing TWBlue to load the direct messages buffer if an user who sent a message has been deleted.
|
||||
* Added support for playing audios posted in [AnyAudio.net](http://anyaudio.net) directly from TWBlue. Thanks to [Sam Tupy](http://www.samtupy.com/)
|
||||
* Custom buffer ordering will not be reset every time the application restarts after an account setting has been modified.
|
||||
* When adding or removing an user from a list, it is possible to press enter in the focused list instead of having to search for the "add" or "delete" button.
|
||||
* Quoted and long tweets are displayed properly in the sent tweets buffer after being send. ([#253](https://github.com/manuelcortez/TWBlue/issues/253))
|
||||
* Fixed an issue that was making the list manager keystroke unable to be shown in the keystroke editor. Now the keystroke is listed properly. ([#260](https://github.com/manuelcortez/TWBlue/issues/260))
|
||||
* The volume slider, located in the account settings of TWBlue, now should decrease and increase value properly when up and down arrows are pressed. Before it was doing it in inverted order. ([#261](https://github.com/manuelcortez/TWBlue/issues/261))
|
||||
* autoreading has been redesigned to work in a similar way for almost all buffers. Needs testing. ([#221](https://github.com/manuelcortez/TWBlue/issues/221))
|
||||
* When displaying tweets or direct messages, a new field has been added to show the date when the item has been posted to Twitter.
|
||||
* Added support for deleting direct messages by using the new Twitter API methods.
|
||||
* When quoting a retweet, the quote will be made to the original tweet instead of the retweet.
|
||||
* If the sent direct messages buffer is hidden, TWBlue should keep loading everything as expected. ([#246](https://github.com/manuelcortez/TWBlue/issues/246))
|
||||
* There is a new soundpack, called FreakyBlue (Thanks to [Andre Louis](https://twitter.com/FreakyFwoof)) as a new option in TWBlue. This pack can be the default in the next stable, so users can take a look and share their opinion in snapshot versions. ([#247](https://github.com/manuelcortez/TWBlue/issues/247))
|
||||
* There is a new option in the help menu that allows you to visit the soundpacks section in the TWBlue website. ([#247](https://github.com/manuelcortez/TWBlue/issues/247))
|
||||
* When reading location of a geotagged tweet, it will be translated for users of other languages. ([#251](https://github.com/manuelcortez/TWBlue/pull/251))
|
||||
* When there are no more items to retrieve in direct messages and people buffers, a message will announce it.
|
||||
* Fixed an issue reported by some users that was making them unable to load more items in their direct messages.
|
||||
* It is possible to add a tweet to the likes buffer from the menu bar again.
|
||||
* Tweets, replies and retweets will be added to sent tweets right after being posted in Twitter.
|
||||
* Extended Tweets should be displayed properly in list buffers.
|
||||
|
||||
## Changes in version 0.94
|
||||
|
||||
* Added an option in the global settings dialog to disable the Streaming features of TWBlue. TWBlue will remove all Streaming features after August 16, so this option will give people an idea about how it will be. ([#219](https://github.com/manuelcortez/TWBlue/issues/219))
|
||||
* Due to Twitter API changes, Switched authorisation method to Pin-code based authorisation. When you add new accounts to TWBlue, you will be required to paste a code displayed in the Twitter website in order to grant access to TWBlue. ([#216](https://github.com/manuelcortez/TWBlue/issues/216))
|
||||
* In order to comply with latest Twitter changes, TWBlue has switched to the new method used to send and receive direct messages, according to issue [#215.](https://github.com/manuelcortez/twblue/issues/215)
|
||||
* The new method does not allow direct messages to be processed in real time. Direct messages will be updated periodically.
|
||||
* After august 16 or when streaming is disabled, the events buffer will no longer be created in TWBlue.
|
||||
* You can configure frequency for buffer updates in TWBlue. By default, TWBlue will update all buffers every 2 minutes, but you can change this setting in the global settings dialog. ([#223](https://github.com/manuelcortez/TWBlue/issues/223))
|
||||
* Added a new tab called feedback, in the account settings dialog. This tab allows you to control whether automatic speech or Braille feedbak in certain events (mentions and direct messages received) is enabled. Take into account that this option will take preference over automatic reading of buffers and any kind of automatic output. ([#203](https://github.com/manuelcortez/TWBlue/issues/203))
|
||||
* The spell checking dialog now has access keys defined for the most important actions. ([#211](https://github.com/manuelcortez/TWBlue/issues/211))
|
||||
* TWBlue now Uses WXPython 4.0.1. This will allow us to migrate all important components to Python 3 in the future. ([#207](https://github.com/manuelcortez/TWBlue/issues/207))
|
||||
* When you quote a Tweet, if the original tweet was posted with Twishort, TWBlue should display properly the quoted tweet. Before it was displaying the original tweet only. ([#206](https://github.com/manuelcortez/TWBlue/issues/206))
|
||||
* It is possible to filter by retweets, quotes and replies when creating a new filter.
|
||||
* Added support for playing youtube Links directly from the client. ([#94](https://github.com/manuelcortez/TWBlue/issues/94))
|
||||
* Replaced Bass with libVLC for playing URL streams.
|
||||
* the checkbox for indicating whether TWBlue will include everyone in a reply or not, will be unchecked by default.
|
||||
* You can request TWBlue to save the state for two checkboxes: Long tweet and mention all, from the global settings dialogue.
|
||||
* For windows 10 users, some keystrokes in the invisible user interface have been changed or merged:
|
||||
* control+Windows+alt+F will be used for toggling between adding and removing a tweet to user's likes. This function will execute the needed action based in the current status for the focused tweet.
|
||||
* TWBlue will show an error if something goes wrong in an audio upload.
|
||||
* And more. ([#171,](https://github.com/manuelcortez/TWBlue/issues/171)
|
||||
|
||||
## Changes in version 0.93
|
||||
|
||||
* A new soundpack has been added to TWBlue. Thanks to [@ValeriaK305](https://twitter.com/ValeriaK305)
|
||||
* In the Windows 10 keymap, we have changed some default keystrokes as windows now uses some previously assigned shortcuts:
|
||||
* For liking a tweet, press Control+Windows+alt+f
|
||||
* for opening a trends buffer, press control+Windows+T
|
||||
* TWBlue has received improvements in some functions for handling extended tweets, long tweets and quoted retweets. It should render some tweets in a better way.
|
||||
* In the spell checker module, there is a new button that will allow you to add your own words to your personal dictionary so the module won't mark them as mispelled the next time you will check spelling.
|
||||
* Added filtering capabilities to TWBlue. ([#102](https://github.com/manuelcortez/TWBlue/issues/102))
|
||||
* You can create a filter for the current buffer from the buffer menu in the menu bar. At this moment, invisible interface does not have any shorcut for this.
|
||||
* You can create filters by word or languages.
|
||||
* For deleting already created filters, you can go to the filter manager in the buffer menu and delete the filters you won't need.
|
||||
* Links should be opened properly in quoted tweets ([#167,](https://github.com/manuelcortez/TWBlue/issues/167) [#184](https://github.com/manuelcortez/TWBlue/issues/184))
|
||||
* Increased display name limit up to 50 characters in update profile dialog.
|
||||
* When authorising an account, you will see a dialogue with a cancel button, in case you want to abort the process. Also, NVDA will not be blocked when the process starts. ([#101](https://github.com/manuelcortez/TWBlue/issues/101))
|
||||
* In the translator module, the list of available languages is fetched automatically from the provider. That means all of these languages will work and there will not be inconsistencies. Also we've removed the first combo box, because the language is detected automatically by Yandex'S API. ([#153](https://github.com/manuelcortez/TWBlue/issues/153))
|
||||
* Trending topics, searches and conversation buffers will use mute settings set for the session in wich they were opened. ([#157](https://github.com/manuelcortez/TWBlue/issues/157))
|
||||
* The Tweet limit is now 280 characters lenght instead 140. It means you can tweet longer tweets. ([#172](https://github.com/manuelcortez/TWBlue/issues/172))
|
||||
* Per popular request, Status for mention to all and long tweet checkboxes will not be saved in settings. ([#170](https://github.com/manuelcortez/TWBlue/issues/170))
|
||||
* Fixed a problem that was making TWBlue unable to start if it was being ran in Windows with Serbian language. ([#175](https://github.com/manuelcortez/TWBlue/issues/175))
|
||||
* Added Danish translation.
|
||||
* And more. ([#156,](https://github.com/manuelcortez/TWBlue/issues/156) [#163,](https://github.com/manuelcortez/TWBlue/issues/163) [#159,](https://github.com/manuelcortez/TWBlue/issues/159) [#173,](https://github.com/manuelcortez/TWBlue/issues/173) [#174,](https://github.com/manuelcortez/TWBlue/issues/174) [#176,](https://github.com/manuelcortez/TWBlue/issues/176))
|
||||
|
||||
## changes in version 0.91 and 0.92
|
||||
|
||||
* Fixed incorrect unicode handling when copying tweet to clipboard. ([#150](https://github.com/manuelcortez/TWBlue/issues/150))
|
||||
* TWBlue will show an error when trying to open a timeline for a suspended user. ([#128](https://github.com/manuelcortez/TWBlue/issues/128))
|
||||
* Removed TwUp as service as it no longer exists. ([#112](https://github.com/manuelcortez/TWBlue/issues/112))
|
||||
* Release audio files after uploading them. ([#130](https://github.com/manuelcortez/TWBlue/issues/130))
|
||||
* Now TWBlue will use Yandex's translation services instead microsoft translator. ([#132](https://github.com/manuelcortez/TWBlue/issues/132))
|
||||
* SndUp users will be able to upload audio in their account by using their API Key again. ([#134](https://github.com/manuelcortez/TWBlue/issues/134))
|
||||
* old tweets shouldn't be added as new items in buffers. ([#116,](https://github.com/manuelcortez/TWBlue/issues/116)) ([#133](https://github.com/manuelcortez/TWBlue/issues/133))
|
||||
* All mentionned users should be displayed correctly in Twishort's long tweets. ([#116,](https://github.com/manuelcortez/TWBlue/issues/116)) ([#135](https://github.com/manuelcortez/TWBlue/issues/135))
|
||||
* It is possible to select a language for OCR service from the extras panel, in the account settings dialogue. You can, however, set this to detect automatically. OCR should work better in languages with special characters or non-english symbols. ([#107](https://github.com/manuelcortez/TWBlue/issues/107))
|
||||
* Fixed a problem with JAWS for Windows and TWBlue. Now JAWS will work normally in this update. [#100](https://github.com/manuelcortez/twblue/issues/100)
|
||||
* And more ([#136,](https://github.com/manuelcortez/TWBlue/issues/136))
|
||||
|
||||
## Changes in version 0.90
|
||||
|
||||
* Fixed a bug in long tweet parsing that was making TWBlue to disconnect the streaming API. ([#103](https://github.com/manuelcortez/TWBlue/issues/103))
|
||||
* Now OCR will work in images from retweets. It fixes a bug where TWBlue was detecting images but couldn't apply OCR on them. ([#105](https://github.com/manuelcortez/TWBlue/issues/105))
|
||||
* TWBlue won't try to load tweets already deleted, made with Twishort. Before, if someone posted a long tweet but deleted it in the Twishort's site, TWBlue was trying to load the tweet and it was causing problems in all the client. ([#113](https://github.com/manuelcortez/TWBlue/issues/113))
|
||||
* TWBlue shows an error message when you try to view the profile of an user that does not exist or has been suspended. ([#114,](https://github.com/manuelcortez/TWBlue/issues/114) [#115](https://github.com/manuelcortez/TWBlue/issues/115))
|
||||
* The spellchecker module should select the right language when is set to "user default". ([#117](https://github.com/manuelcortez/TWBlue/issues/117))
|
||||
* Image description will be displayed in retweets too. ([#119](https://github.com/manuelcortez/TWBlue/issues/119))
|
||||
* When reading a long tweet, you shouldn't read strange entities anymore. ([#118](https://github.com/manuelcortez/twblue/issues/118))
|
||||
* TWBlue will not try to load timelines if the user is blocking you. ([#125](https://github.com/manuelcortez/twblue/issues/125))
|
||||
|
||||
## Changes in version 0.88 and 0.89
|
||||
|
||||
* Fixed more issues with streams and reconnections.
|
||||
* newer updates will indicate the release date in the updater.
|
||||
* Changes to keystrokes are reflected in keystroke editor automatically.
|
||||
* In replies with multiple users, if the mention to all checkbox is unchecked, you will see a checkbox per user so you will be able to control who will be mentioned in the reply.
|
||||
* Fixed a bug that caused duplicated user mentions in replies when the tweet was made with Twishort.
|
||||
* Retweets should be displayed normally again when the originating tweet is a Twishort's long tweet.
|
||||
* Changed the way TWBlue saves user timelines in configuration. Now it uses user IDS instead usernames. With user IDS, if an user changes the username, TWBlue still will create his/her timeline. This was not possible by using usernames.
|
||||
* Added a new setting in the account settings dialogue that makes TWBlue to show twitter usernames instead the full name.
|
||||
* Added OCR in twitter pictures. There is a new item in the tweet menu that allows you to extract and display text in images. Also the keystroke alt+Win+o has been added for the same purpose from the invisible interface.
|
||||
* Now TWBlue will play a sound when the focused tweet contains images.
|
||||
* Your own quoted tweets will not appear in the mentions buffer anymore.
|
||||
* The config file is saved in a different way, it should fix the bug where TWBlue needs to be restarted after the config folder is deleted.
|
||||
* Mentioning people from friends or followers buffers works again.
|
||||
* Support for proxy servers has been improved. Now TWBlue supports http, https, socks4 and socks5 proxies, with and without autentication.
|
||||
|
||||
## Changes in version 0.87
|
||||
|
||||
* Fixed stream connection errors.
|
||||
* Now TWBlue can handle properly a reply to the sender without including all other mentioned users.
|
||||
* Updated translations.
|
||||
* The status of the mention to all checkbox will be remembered the next time you reply to multiple users.
|
||||
|
||||
## Changes in version 0.86
|
||||
|
||||
* Fixed a very important security issue. Now TWBlue will send tweets to twishort without using any other server.
|
||||
* When you add a comment to a tweet, it will be sent as a quoted tweet, even if your reply plus the original tweet is not exceeding 140 characters.
|
||||
* Updated windows 10 keymap for reflecting changes made in the last windows 10 build.
|
||||
* Added last changes in the twitter API.
|
||||
* When replying, it will not show the twitter username in the text box. When you send the tweet, the username will be added automatically.
|
||||
* When replying to multiple users, you'll have a checkbox instead a button for mentioning all people. If this is checked, twitter usernames will be added automatically when you send your reply.
|
||||
|
||||
## Changes in version 0.85
|
||||
|
||||
* Long and quoted tweets should be displayed properly In lists.
|
||||
* The connection should be more stable.
|
||||
* Added an autostart option in the global settings dialogue.
|
||||
* Updated translation.
|
||||
* Updated russian documentation.
|
||||
* Tweets in cached database should be loaded properly.
|
||||
* Added some missed dictionaries for spelling correction.
|
||||
* Timelines, lists and other buffer should be created in the right order at startup.
|
||||
|
||||
## Changes in version 0.84
|
||||
|
||||
* More improvements in quoted and long tweets.
|
||||
* Updated translations: Russian, Italian, French, Romanian, Galician and Finnish.
|
||||
* Improvements in the audio uploader module: Now it can handle audio with non-english characters.
|
||||
* the title of the window should be updated properly when spellcheck, translate or shorten/unshorten URL buttons are pressed.
|
||||
* the bug that changes the selected tweet in the home timeline shouldn't be happening so often.
|
||||
|
||||
## Changes in version 0.82 and 0.83
|
||||
|
||||
* If the tweet source (client) is an application with unicode characters (example: российская газета) it will not break the tweet displayer.
|
||||
* Added a new field for image description in tweet displayer. When available, it will show description for images posted in tweets.
|
||||
* users can add image descriptions to their photos. When uploading an image, a dialog will show for asking a description.
|
||||
* Redesigned upload image dialog.
|
||||
* Fixed photo uploads when posting tweets.
|
||||
* When getting tweets for a conversation, ignores deleted tweets or some errors, now TWBlue will try to get as much tweets as possible, even if some of these are no longer available.
|
||||
* Added audio playback from soundcloud.
|
||||
* Now the session mute option don't makes the screen reader speaks.
|
||||
* Fixed the direct message dialog. Now it should be displayed properly.
|
||||
* when a tweet is deleted in twitter, TWBlue should reflect this change and delete that tweet in every buffer it is displayed.
|
||||
* If your session is broken, TWBlue will be able to remove it automatically instead just crashing.
|
||||
* audio uploader should display the current progress.
|
||||
* users can disable the check for updates feature at startup from the general tab, in the global settings dialogue.
|
||||
* The invisible interface and the window should be synchronized when the client reconnects.
|
||||
* The documentation option in the systray icon should be enabled.
|
||||
* In trending buffers, you can press enter for posting a tweet about the focused trend.
|
||||
* Updated russian documentation and main program interface (thanks to Natalia Hedlund (Наталья Хедлунд), [@lifestar_n](https://twitter.com/lifestar_n) in twitter)
|
||||
* updated translations.
|
||||
|
||||
## Changes in Version 0.81
|
||||
|
||||
* Updated translations
|
||||
* The updater module has received some improvements. Now it includes a Mirror URL for checking updates if the main URL is not available at the moment. If something is wrong and both locations don't work, the program will start anyway.
|
||||
* some GUI elements now use keyboard shortcuts for common actions.
|
||||
* fixed a bug in the geolocation dialog.
|
||||
* the chicken nugget keymap should work properly.
|
||||
* Added a new soundpack to the default installation of TWBlue, thanks to [@Deng90](https://twitter.com/deng90)
|
||||
* Now the changelog is written in an html File.
|
||||
* Added some missed dictionaries in last version for the spell checking feature.
|
||||
* Trimmed the beginnings of the sounds in the default soundpack. Thanks to [@masonasons](https://github.com/masonasons)
|
||||
* Added Opus support for sound playback in TWBlue. Thanks to [@masonasons](https://github.com/masonasons)
|
||||
* Added a source field in view tweet dialogue. Thanks to [@masonasons](https://github.com/masonasons)
|
||||
* You can load previous items in followers and friend buffers for others.
|
||||
* The Spell Checker dialogue should not display an error message when you have set "default language" in the global settings dialogue if your language is supported [#168](http://twblue.es/bugs/view.php?id=168)
|
||||
* Updated romanian translation.
|
||||
* Some code cleanups.
|
||||
* The bug reports feature is fully operational again.
|
||||
* TWBlue should work again for users that contains special characters in windows usernames.
|
||||
* Added more options for the tweet searches.
|
||||
* Added play_audio to the keymap editor.
|
||||
* Windows key is no longer required in the keymap editor
|
||||
* Switched to the Microsoft translator.
|
||||
* You can update the current buffer by pressing ctrl+win+shift+u in the default keymap or in the buffer menu.
|
||||
* Changed some keystrokes in the windows 10 default keymap
|
||||
* New followers and friends buffer for user timelines.
|
||||
|
||||
---
|
||||
Copyright © 2014-2017, Manuel Cortez.
|
@@ -2,7 +2,7 @@
|
||||
""" This script converts the hold documentation (saved in markdown files) in a python file with a list of strings to translate it using gettext."""
|
||||
|
||||
def prepare_documentation_in_file(fileSource, fileDest):
|
||||
""" This takes documentation written in a markdown file and put all the contents in a python file, to create a internationalized documentation.
|
||||
""" This takes documentation written in a markdown file and put all the contents in a python file, to create a translatable documentation.
|
||||
@fileSource str: A markdown(.md) file.
|
||||
@fileDest str: A file where this will put the new strings"""
|
||||
|
||||
@@ -18,11 +18,11 @@ def prepare_documentation_in_file(fileSource, fileDest):
|
||||
newvar = "_(u\"\"\"%s\"\"\"),\n" % (i[:-1])
|
||||
else:
|
||||
newvar = "_(u\"\"\"%s\"\"\"),\n" % (i)
|
||||
# print i[-1:]
|
||||
f2.write(newvar)
|
||||
f1.close()
|
||||
f2.write("]")
|
||||
f2.close()
|
||||
|
||||
|
||||
prepare_documentation_in_file("manual.md", "strings.py")
|
||||
prepare_documentation_in_file("manual.md", "strings.py")
|
||||
prepare_documentation_in_file("changelog.md", "changelog.py")
|
@@ -1,20 +1,33 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import markdown
|
||||
import os
|
||||
import shutil
|
||||
from codecs import open as _open
|
||||
import languageHandler
|
||||
languageHandler.setLanguage("en")
|
||||
import strings
|
||||
import changelog
|
||||
|
||||
# the list of supported language codes of TW Blue
|
||||
languages = ["en", "es", "fr", "de", "it", "gl", "ja", "ru", "ro"]
|
||||
languages = ["en", "es", "fr", "de", "it", "gl", "ja", "ru", "ro", "eu", "ca", "da"]
|
||||
#"eu", "ar", "ca", "es", "fi", "fr", "gl", "hu", "it", "pl", "pt", "ru", "tr"]
|
||||
|
||||
def generate_document(language):
|
||||
def generate_document(language, document_type="documentation"):
|
||||
reload(languageHandler)
|
||||
languageHandler.setLanguage(language)
|
||||
reload(strings)
|
||||
markdown_file = markdown.markdown("\n".join(strings.documentation[1:]), extensions=["markdown.extensions.toc"])
|
||||
if document_type == "documentation":
|
||||
translation_file = "twblue-documentation"
|
||||
languageHandler.setLanguage(language, translation_file)
|
||||
reload(strings)
|
||||
markdown_file = markdown.markdown("\n".join(strings.documentation[1:]), extensions=["markdown.extensions.toc"])
|
||||
title = strings.documentation[0]
|
||||
filename = "manual.html"
|
||||
elif document_type == "changelog":
|
||||
translation_file = "twblue-changelog"
|
||||
languageHandler.setLanguage(language, translation_file)
|
||||
reload(changelog)
|
||||
markdown_file = markdown.markdown("\n".join(changelog.documentation[1:]), extensions=["markdown.extensions.toc"])
|
||||
title = changelog.documentation[0]
|
||||
filename = "changelog.html"
|
||||
first_html_block = """<!doctype html>
|
||||
<html lang="%s">
|
||||
<head>
|
||||
@@ -23,20 +36,25 @@ def generate_document(language):
|
||||
</head>
|
||||
<body>
|
||||
<header><h1>%s</h1></header>
|
||||
""" % (language, strings.documentation[0], strings.documentation[0])
|
||||
""" % (language, title, title)
|
||||
first_html_block = first_html_block+ markdown_file
|
||||
first_html_block = first_html_block + "\n</body>\n</html>"
|
||||
if not os.path.exists(language):
|
||||
os.mkdir(language)
|
||||
mdfile = _open("%s/manual.html" % language, "w", encoding="utf-8")
|
||||
if not os.path.exists(os.path.join("documentation", language)):
|
||||
os.mkdir(os.path.join("documentation", language))
|
||||
mdfile = _open(os.path.join("documentation", language, filename), "w", encoding="utf-8")
|
||||
mdfile.write(first_html_block)
|
||||
mdfile.close()
|
||||
|
||||
def create_documentation():
|
||||
print("Creating documentation in the supported languages...\n")
|
||||
if not os.path.exists("documentation"):
|
||||
os.mkdir("documentation")
|
||||
if os.path.exists(os.path.join("documentation", "license.txt")) == False:
|
||||
shutil.copy(os.path.join("..", "license.txt"), os.path.join("documentation", "license.txt"))
|
||||
for i in languages:
|
||||
print("Creating documentation for: %s" % (i,))
|
||||
generate_document(i)
|
||||
generate_document(i, "changelog")
|
||||
print("Done")
|
||||
|
||||
create_documentation()
|
@@ -117,7 +117,7 @@ def makePgettext(translations):
|
||||
return unicode(message)
|
||||
return pgettext
|
||||
|
||||
def setLanguage(lang):
|
||||
def setLanguage(lang, translation_file="twblue-documentation"):
|
||||
system = platform.system()
|
||||
global curLang
|
||||
try:
|
||||
@@ -127,10 +127,10 @@ def setLanguage(lang):
|
||||
localeName=locale.windows_locale[windowsLCID]
|
||||
else:
|
||||
localeName=locale.getlocale()[0]
|
||||
trans=gettext.translation('twblue-documentation', localedir="locales", languages=[localeName])
|
||||
trans=gettext.translation(translation_file, localedir="locales", languages=[localeName])
|
||||
curLang=localeName
|
||||
else:
|
||||
trans=gettext.translation("twblue-documentation", localedir="locales", languages=[lang])
|
||||
trans=gettext.translation(translation_file, localedir="locales", languages=[lang])
|
||||
curLang=lang
|
||||
localeChanged=False
|
||||
#Try setting Python's locale to lang
|
||||
@@ -150,7 +150,7 @@ def setLanguage(lang):
|
||||
LCID=localeNameToWindowsLCID(lang)
|
||||
ctypes.windll.kernel32.SetThreadLocale(LCID)
|
||||
except IOError:
|
||||
trans=gettext.translation("twblue-documentation",fallback=True)
|
||||
trans=gettext.translation(translation_file,fallback=True)
|
||||
curLang="en"
|
||||
trans.install(unicode=True)
|
||||
# Install our pgettext function.
|
||||
|
BIN
doc/locales/ca/lc_messages/twblue-changelog.mo
Normal file
BIN
doc/locales/ca/lc_messages/twblue-changelog.mo
Normal file
Binary file not shown.
1111
doc/locales/ca/lc_messages/twblue-changelog.po
Normal file
1111
doc/locales/ca/lc_messages/twblue-changelog.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
doc/locales/ca/lc_messages/twblue-documentation.mo
Normal file
BIN
doc/locales/ca/lc_messages/twblue-documentation.mo
Normal file
Binary file not shown.
2659
doc/locales/ca/lc_messages/twblue-documentation.po
Normal file
2659
doc/locales/ca/lc_messages/twblue-documentation.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
doc/locales/da/LC_MESSAGES/twblue-documentation.mo
Normal file
BIN
doc/locales/da/LC_MESSAGES/twblue-documentation.mo
Normal file
Binary file not shown.
1932
doc/locales/da/LC_MESSAGES/twblue-documentation.po
Normal file
1932
doc/locales/da/LC_MESSAGES/twblue-documentation.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
doc/locales/de/lc_messages/twblue-changelog.mo
Normal file
BIN
doc/locales/de/lc_messages/twblue-changelog.mo
Normal file
Binary file not shown.
1182
doc/locales/de/lc_messages/twblue-changelog.po
Normal file
1182
doc/locales/de/lc_messages/twblue-changelog.po
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
BIN
doc/locales/es/LC_MESSAGES/twblue-changelog.mo
Normal file
BIN
doc/locales/es/LC_MESSAGES/twblue-changelog.mo
Normal file
Binary file not shown.
1162
doc/locales/es/LC_MESSAGES/twblue-changelog.po
Normal file
1162
doc/locales/es/LC_MESSAGES/twblue-changelog.po
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
BIN
doc/locales/eu/lc_messages/twblue-changelog.mo
Normal file
BIN
doc/locales/eu/lc_messages/twblue-changelog.mo
Normal file
Binary file not shown.
1048
doc/locales/eu/lc_messages/twblue-changelog.po
Normal file
1048
doc/locales/eu/lc_messages/twblue-changelog.po
Normal file
File diff suppressed because it is too large
Load Diff
635
doc/locales/eu/lc_messages/twblue-changelog.temp.temp.po
Normal file
635
doc/locales/eu/lc_messages/twblue-changelog.temp.temp.po
Normal file
@@ -0,0 +1,635 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR ORGANIZATION
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"POT-Creation-Date: 2017-07-08 16:25+Hora de verano central (Mxico)\n"
|
||||
"PO-Revision-Date: 2017-07-15 19:44+0200\n"
|
||||
"Last-Translator: Sukil Etxenike <sukiletxe@yahoo.es>\n"
|
||||
"Language-Team: \n"
|
||||
"Language: eu\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: pygettext.py 1.5\n"
|
||||
"X-Generator: Poedit 2.0.1\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: ../doc/changelog.py:3
|
||||
msgid "TWBlue Changelog"
|
||||
msgstr "TwBlueren aldaketak"
|
||||
|
||||
#: ../doc/changelog.py:4
|
||||
msgid "## changes in this version"
|
||||
msgstr "## Aldaketak bertsio honetan"
|
||||
|
||||
#: ../doc/changelog.py:5
|
||||
msgid ""
|
||||
"* TWBlue will show an error when trying to open a timeline for a suspended "
|
||||
"user. ([#128](https://github.com/manuelcortez/TWBlue/issues/128))"
|
||||
msgstr ""
|
||||
"* TWBluek errore bat erakutsiko du ezabatutako erabiltzaile batn denbora "
|
||||
"lerro bat irekitzen saiatzean . ([#128](https://github.com/manuelcortez/"
|
||||
"TWBlue/issues/128))"
|
||||
|
||||
#: ../doc/changelog.py:6
|
||||
msgid ""
|
||||
"* Removed TwUp as service as it no longer exists. ([#112](https://github.com/"
|
||||
"manuelcortez/TWBlue/issues/112))"
|
||||
msgstr ""
|
||||
"* TwUp zerbitzua kendu da, jada ez delako existitzen. ([#112](https://github."
|
||||
"com/manuelcortez/TWBlue/issues/112)) "
|
||||
|
||||
#: ../doc/changelog.py:7
|
||||
msgid ""
|
||||
"* Release audio files after uploading them. ([#130](https://github.com/"
|
||||
"manuelcortez/TWBlue/issues/130))"
|
||||
msgstr ""
|
||||
"* Orain audio fitxategiak askatzen dira igo ondoren. ([#130](https://github."
|
||||
"com/manuelcortez/TWBlue/issues/130))"
|
||||
|
||||
#: ../doc/changelog.py:8
|
||||
msgid ""
|
||||
"* Now TWBlue will use Yandex's translation services instead microsoft "
|
||||
"translator. ([#132](https://github.com/manuelcortez/TWBlue/issues/132))"
|
||||
msgstr ""
|
||||
"* Orain TWBluek Yandexen itzultzailea erabiltzen du Microsoften "
|
||||
"itzultzailearen ordez. ([#132](https://github.com/manuelcortez/TWBlue/"
|
||||
"issues/132))"
|
||||
|
||||
#: ../doc/changelog.py:9
|
||||
msgid ""
|
||||
"* SndUp users will be able to upload audio in their account by using their "
|
||||
"API Key again. ([#134](https://github.com/manuelcortez/TWBlue/issues/134))"
|
||||
msgstr ""
|
||||
"* SndUp-en erabiltzaileek orain audioak igo ditzakete haien API kodea "
|
||||
"erabilita. ([#134](https://github.com/manuelcortez/TWBlue/issues/134))"
|
||||
|
||||
#: ../doc/changelog.py:10
|
||||
msgid ""
|
||||
"* old tweets shouldn't be added as new items in buffers. ([#116,](https://"
|
||||
"github.com/manuelcortez/TWBlue/issues/116)) ([#133](https://github.com/"
|
||||
"manuelcortez/TWBlue/issues/133))"
|
||||
msgstr ""
|
||||
"* Txio zaharrak ez lirateke buferretan elementu berri gisa agertu behar. "
|
||||
"([#116,](https://github.com/manuelcortez/TWBlue/issues/116)) ([#133](https://"
|
||||
"github.com/manuelcortez/TWBlue/issues/133))"
|
||||
|
||||
#: ../doc/changelog.py:11
|
||||
msgid ""
|
||||
"* All mentionned users should be displayed correctly in Twishort's long "
|
||||
"tweets. ([#116,](https://github.com/manuelcortez/TWBlue/issues/116)) ([#135]"
|
||||
"(https://github.com/manuelcortez/TWBlue/issues/135))"
|
||||
msgstr ""
|
||||
"* Aipatutako erabiltzaile guztiak ondo agertu beharko lirateke Tuishort-en "
|
||||
"txio luzeetan. ([#116,](https://github.com/manuelcortez/TWBlue/issues/116)) "
|
||||
"([#135](https://github.com/manuelcortez/TWBlue/issues/135))"
|
||||
|
||||
#: ../doc/changelog.py:12
|
||||
msgid ""
|
||||
"* It is possible to select a language for OCR service from the extras panel, "
|
||||
"in the account settings dialogue. You can, however, set this to detect "
|
||||
"automatically. OCR should work better in languages with special characters "
|
||||
"or non-english symbols. ([#107](https://github.com/manuelcortez/TWBlue/"
|
||||
"issues/107))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:13
|
||||
msgid ""
|
||||
"* Fixed a problem with JAWS for Windows and TWBlue. Now JAWS will work "
|
||||
"normally in this update. [#100](https://github.com/manuelcortez/twblue/"
|
||||
"issues/100)"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:14
|
||||
msgid "* And more ([#136,](https://github.com/manuelcortez/TWBlue/issues/136))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:15
|
||||
msgid "## Changes in version 0.90"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:16
|
||||
msgid ""
|
||||
"* Fixed a bug in long tweet parsing that was making TWBlue to disconnect the "
|
||||
"streaming API. ([#103](https://github.com/manuelcortez/TWBlue/issues/103))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:17
|
||||
msgid ""
|
||||
"* Now OCR will work in images from retweets. It fixes a bug where TWBlue was "
|
||||
"detecting images but couldn't apply OCR on them. ([#105](https://github.com/"
|
||||
"manuelcortez/TWBlue/issues/105))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:18
|
||||
msgid ""
|
||||
"* TWBlue won't try to load tweets already deleted, made with Twishort. "
|
||||
"Before, if someone posted a long tweet but deleted it in the Twishort's "
|
||||
"site, TWBlue was trying to load the tweet and it was causing problems in all "
|
||||
"the client. ([#113](https://github.com/manuelcortez/TWBlue/issues/113))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:19
|
||||
msgid ""
|
||||
"* TWBlue shows an error message when you try to view the profile of an user "
|
||||
"that does not exist or has been suspended. ([#114,](https://github.com/"
|
||||
"manuelcortez/TWBlue/issues/114) [#115](https://github.com/manuelcortez/"
|
||||
"TWBlue/issues/115))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:20
|
||||
msgid ""
|
||||
"* The spellchecker module should select the right language when is set to "
|
||||
"\"user default\". ([#117](https://github.com/manuelcortez/TWBlue/issues/117))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:21
|
||||
msgid ""
|
||||
"* Image description will be displayed in retweets too. ([#119](https://"
|
||||
"github.com/manuelcortez/TWBlue/issues/119))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:22
|
||||
msgid ""
|
||||
"* When reading a long tweet, you shouldn't read strange entities anymore. "
|
||||
"([#118](https://github.com/manuelcortez/twblue/issues/118))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:23
|
||||
msgid ""
|
||||
"* TWBlue will not try to load timelines if the user is blocking you. ([#125]"
|
||||
"(https://github.com/manuelcortez/twblue/issues/125))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:24
|
||||
msgid "## Changes in version 0.88 and 0.89"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:25
|
||||
msgid "* Fixed more issues with streams and reconnections."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:26
|
||||
msgid "* newer updates will indicate the release date in the updater."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:27
|
||||
msgid ""
|
||||
"* Changes to keystrokes are reflected in keystroke editor automatically."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:28
|
||||
msgid ""
|
||||
"* In replies with multiple users, if the mention to all checkbox is "
|
||||
"unchecked, you will see a checkbox per user so you will be able to control "
|
||||
"who will be mentioned in the reply."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:29
|
||||
msgid ""
|
||||
"* Fixed a bug that caused duplicated user mentions in replies when the tweet "
|
||||
"was made with Twishort."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:30
|
||||
msgid ""
|
||||
"* Retweets should be displayed normally again when the originating tweet is "
|
||||
"a Twishort's long tweet."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:31
|
||||
msgid ""
|
||||
"* Changed the way TWBlue saves user timelines in configuration. Now it uses "
|
||||
"user IDS instead usernames. With user IDS, if an user changes the username, "
|
||||
"TWBlue still will create his/her timeline. This was not possible by using "
|
||||
"usernames."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:32
|
||||
msgid ""
|
||||
"* Added a new setting in the account settings dialogue that makes TWBlue to "
|
||||
"show twitter usernames instead the full name."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:33
|
||||
msgid ""
|
||||
"* Added OCR in twitter pictures. There is a new item in the tweet menu that "
|
||||
"allows you to extract and display text in images. Also the keystroke alt+Win"
|
||||
"+o has been added for the same purpose from the invisible interface."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:34
|
||||
msgid "* Now TWBlue will play a sound when the focused tweet contains images."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:35
|
||||
msgid ""
|
||||
"* Your own quoted tweets will not appear in the mentions buffer anymore."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:36
|
||||
msgid ""
|
||||
"* The config file is saved in a different way, it should fix the bug where "
|
||||
"TWBlue needs to be restarted after the config folder is deleted."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:37
|
||||
msgid "* Mentioning people from friends or followers buffers works again."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:38
|
||||
msgid ""
|
||||
"* Support for proxy servers has been improved. Now TWBlue supports http, "
|
||||
"https, socks4 and socks5 proxies, with and without autentication."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:39
|
||||
msgid "## Changes in version 0.87"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:40
|
||||
msgid "* Fixed stream connection errors."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:41
|
||||
msgid ""
|
||||
"* Now TWBlue can handle properly a reply to the sender without including all "
|
||||
"other mentioned users."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:42
|
||||
msgid "* Updated translations."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:43
|
||||
msgid ""
|
||||
"* The status of the mention to all checkbox will be remembered the next time "
|
||||
"you reply to multiple users."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:44
|
||||
msgid "## Changes in version 0.86"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:45
|
||||
msgid ""
|
||||
"* Fixed a very important security issue. Now TWBlue will send tweets to "
|
||||
"twishort without using any other server."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:46
|
||||
msgid ""
|
||||
"* When you add a comment to a tweet, it will be sent as a quoted tweet, even "
|
||||
"if your reply plus the original tweet is not exceeding 140 characters."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:47
|
||||
msgid ""
|
||||
"* Updated windows 10 keymap for reflecting changes made in the last windows "
|
||||
"10 build."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:48
|
||||
msgid "* Added last changes in the twitter API."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:49
|
||||
msgid ""
|
||||
"* When replying, it will not show the twitter username in the text box. When "
|
||||
"you send the tweet, the username will be added automatically."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:50
|
||||
msgid ""
|
||||
"* When replying to multiple users, you'll have a checkbox instead a button "
|
||||
"for mentioning all people. If this is checked, twitter usernames will be "
|
||||
"added automatically when you send your reply."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:51
|
||||
msgid "## Changes in version 0.85"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:52
|
||||
msgid "* Long and quoted tweets should be displayed properly In lists."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:53
|
||||
msgid "* The connection should be more stable."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:54
|
||||
msgid "* Added an autostart option in the global settings dialogue."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:55
|
||||
msgid "* Updated translation."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:56
|
||||
msgid "* Updated russian documentation."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:57
|
||||
msgid "* Tweets in cached database should be loaded properly."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:58
|
||||
msgid "* Added some missed dictionaries for spelling correction."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:59
|
||||
msgid ""
|
||||
"* Timelines, lists and other buffer should be created in the right order at "
|
||||
"startup."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:60
|
||||
msgid "## Changes in version 0.84 "
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:61
|
||||
msgid "* More improvements in quoted and long tweets."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:62
|
||||
msgid ""
|
||||
"* Updated translations: Russian, Italian, French, Romanian, Galician and "
|
||||
"Finnish."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:63
|
||||
msgid ""
|
||||
"* Improvements in the audio uploader module: Now it can handle audio with "
|
||||
"non-english characters."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:64
|
||||
msgid ""
|
||||
"* the title of the window should be updated properly when spellcheck, "
|
||||
"translate or shorten/unshorten URL buttons are pressed."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:65
|
||||
msgid ""
|
||||
"* the bug that changes the selected tweet in the home timeline shouldn't be "
|
||||
"happening so often."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:66
|
||||
msgid "## Changes in version 0.82 and 0.83"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:67
|
||||
msgid ""
|
||||
"* If the tweet source (client) is an application with unicode characters "
|
||||
"(example: российская газета) it will not break the tweet displayer."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:68
|
||||
msgid ""
|
||||
"* Added a new field for image description in tweet displayer. When "
|
||||
"available, it will show description for images posted in tweets."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:69
|
||||
msgid ""
|
||||
"* users can add image descriptions to their photos. When uploading an image, "
|
||||
"a dialog will show for asking a description."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:70
|
||||
msgid "* Redesigned upload image dialog."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:71
|
||||
msgid "* Fixed photo uploads when posting tweets."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:72
|
||||
msgid ""
|
||||
"* When getting tweets for a conversation, ignores deleted tweets or some "
|
||||
"errors, now TWBlue will try to get as much tweets as possible, even if some "
|
||||
"of these are no longer available."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:73
|
||||
msgid "* Added audio playback from soundcloud."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:74
|
||||
msgid "* Now the session mute option don't makes the screen reader speaks."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:75
|
||||
msgid "* Fixed the direct message dialog. Now it should be displayed properly."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:76
|
||||
msgid ""
|
||||
"* when a tweet is deleted in twitter, TWBlue should reflect this change and "
|
||||
"delete that tweet in every buffer it is displayed."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:77
|
||||
msgid ""
|
||||
"* If your session is broken, TWBlue will be able to remove it automatically "
|
||||
"instead just crashing."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:78
|
||||
msgid "* audio uploader should display the current progress."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:79
|
||||
msgid ""
|
||||
"* users can disable the check for updates feature at startup from the "
|
||||
"general tab, in the global settings dialogue."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:80
|
||||
msgid ""
|
||||
"* The invisible interface and the window should be synchronized when the "
|
||||
"client reconnects."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:81
|
||||
msgid "* The documentation option in the systray icon should be enabled."
|
||||
msgstr ""
|
||||
"* Sistemaren ikonoetako dokumentazioa ikusteko aukera erabilgarria egon "
|
||||
"beharko litzateke."
|
||||
|
||||
#: ../doc/changelog.py:82
|
||||
msgid ""
|
||||
"* In trending buffers, you can press enter for posting a tweet about the "
|
||||
"focused trend."
|
||||
msgstr ""
|
||||
"* Tendentzien buferretan, enter saka dezakezu enfokatutako tendentziari "
|
||||
"buruz txio bat argitaratzeko."
|
||||
|
||||
#: ../doc/changelog.py:83
|
||||
msgid ""
|
||||
"* Updated russian documentation and main program interface (thanks to "
|
||||
"Natalia Hedlund (Наталья Хедлунд), [@lifestar_n](https://twitter.com/"
|
||||
"lifestar_n) in twitter)"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:84
|
||||
msgid "* updated translations."
|
||||
msgstr "* Itzulpenak eguneratuak izan dira."
|
||||
|
||||
#: ../doc/changelog.py:85
|
||||
msgid "## Changes in Version 0.81"
|
||||
msgstr "## 0.81bertsioaren aldaketak"
|
||||
|
||||
#: ../doc/changelog.py:86
|
||||
msgid "* Updated translations"
|
||||
msgstr "* Itzulpenak eguneratuak izan dira"
|
||||
|
||||
#: ../doc/changelog.py:87
|
||||
msgid ""
|
||||
"* The updater module has received some improvements. Now it includes a "
|
||||
"Mirror URL for checking updates if the main URL is not available at the "
|
||||
"moment. If something is wrong and both locations don't work, the program "
|
||||
"will start anyway."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:88
|
||||
msgid "* some GUI elements now use keyboard shortcuts for common actions."
|
||||
msgstr ""
|
||||
"* Interfaze grafikoko elementu batzuek lasterbide teklak dituzte ohiko "
|
||||
"ekintzetarako."
|
||||
|
||||
#: ../doc/changelog.py:89
|
||||
msgid "* fixed a bug in the geolocation dialog."
|
||||
msgstr "* Errore bat konpondu da geottxioen elkarrizketa-koadroan."
|
||||
|
||||
#: ../doc/changelog.py:90
|
||||
msgid "* the chicken nugget keymap should work properly."
|
||||
msgstr "* Chicken Nuggetaren teklatu-mapak ondo funtzionatu beharko luke."
|
||||
|
||||
#: ../doc/changelog.py:91
|
||||
msgid ""
|
||||
"* Added a new soundpack to the default installation of TWBlue, thanks to "
|
||||
"[@Deng90](https://twitter.com/deng90)"
|
||||
msgstr ""
|
||||
"* Soinu pakete berri bat gehitu zaio TWBlueren lehenetsitako instalazioari, "
|
||||
"eskerrak [@Deng90](https://twitter.com/deng90)"
|
||||
|
||||
#: ../doc/changelog.py:92
|
||||
msgid "* Now the changelog is written in an html File."
|
||||
msgstr "* Orain aldaketen fitxategia html fitxategi bat da."
|
||||
|
||||
#: ../doc/changelog.py:93
|
||||
msgid ""
|
||||
"* Added some missed dictionaries in last version for the spell checking "
|
||||
"feature."
|
||||
msgstr ""
|
||||
"* Aurreko bertsioan falta ziren hiztegi batzuk gehitu dira, zuzentzaleak "
|
||||
"erabiltzen dituenak."
|
||||
|
||||
#: ../doc/changelog.py:94
|
||||
msgid ""
|
||||
"* Trimmed the beginnings of the sounds in the default soundpack. Thanks to "
|
||||
"[@masonasons](https://github.com/masonasons)"
|
||||
msgstr ""
|
||||
"* ehenetsitako soiinu paketearen soinuen hasierak moztu dira. Eskerrak "
|
||||
"[@masonasons-i.](https://github.com/masonasons)"
|
||||
|
||||
#: ../doc/changelog.py:95
|
||||
msgid ""
|
||||
"* Added Opus support for sound playback in TWBlue. Thanks to [@masonasons]"
|
||||
"(https://github.com/masonasons)"
|
||||
msgstr ""
|
||||
"* Opus formatua erreproduzi daiteke, eskerrak [@masonasons-i.](https://"
|
||||
"github.com/masonasons)."
|
||||
|
||||
#: ../doc/changelog.py:96
|
||||
msgid ""
|
||||
"* Added a source field in view tweet dialogue. Thanks to [@masonasons]"
|
||||
"(https://github.com/masonasons)"
|
||||
msgstr ""
|
||||
"* \"Iturria\" gehitu zaio txioa erakusteko elkarrizketa koadroari. Eskerrak "
|
||||
"[@masonasons-i.](https://github.com/masonasons)"
|
||||
|
||||
#: ../doc/changelog.py:97
|
||||
msgid ""
|
||||
"* You can load previous items in followers and friend buffers for others."
|
||||
msgstr ""
|
||||
"* Aurreko elementuak karga ditzakezu besteen jarraitzaile eta lagunen "
|
||||
"buferretan."
|
||||
|
||||
#: ../doc/changelog.py:98
|
||||
msgid ""
|
||||
"* The Spell Checker dialogue should not display an error message when you "
|
||||
"have set \"default language\" in the global settings dialogue if your "
|
||||
"language is supported [#168](http://twblue.es/bugs/view.php?id=168)"
|
||||
msgstr ""
|
||||
"* Zuzentzailearen elkarrizketa-koadroak ez luke errorerik erakutsi behar "
|
||||
"aukera globaletan \"Lehenetsitako hizkuntza\" aukeratua dagoenean eta zure "
|
||||
"hizkuntza erabilgarria denean [#168](http://twblue.es/bugs/view.php?id=168)"
|
||||
|
||||
#: ../doc/changelog.py:99
|
||||
msgid "* Updated romanian translation."
|
||||
msgstr "* Errumaniera itzulpena eguneratua izan da."
|
||||
|
||||
#: ../doc/changelog.py:100
|
||||
msgid "* Some code cleanups."
|
||||
msgstr "* Kode garbiketa batzuk."
|
||||
|
||||
#: ../doc/changelog.py:101
|
||||
msgid "* The bug reports feature is fully operational again."
|
||||
msgstr "* Arazoez informatzeko ezaugarriak berriz funtzionaten du"
|
||||
|
||||
#: ../doc/changelog.py:102
|
||||
msgid ""
|
||||
"* TWBlue should work again for users that contains special characters in "
|
||||
"windows usernames."
|
||||
msgstr ""
|
||||
"* TWBluek berriz funtzionatu beharko luke haien Windows erabiltzaile-"
|
||||
"izenetan karaktere bereziak dituzten erabiltzaileentzat."
|
||||
|
||||
#: ../doc/changelog.py:103
|
||||
msgid "* Added more options for the tweet searches."
|
||||
msgstr "* Txioen bilaketarako aukera gehiago gehitu dira."
|
||||
|
||||
#: ../doc/changelog.py:104
|
||||
msgid "* Added play_audio to the keymap editor."
|
||||
msgstr "* play_audio teklatu-mapen editorera gehitua izan da."
|
||||
|
||||
#: ../doc/changelog.py:105
|
||||
msgid "* Windows key is no longer required in the keymap editor"
|
||||
msgstr "* Windows tekla ez da jada bearrezkoa teklatu-mapen editorean."
|
||||
|
||||
#: ../doc/changelog.py:106
|
||||
msgid "* Switched to the Microsoft translator."
|
||||
msgstr "* Microsoften itzultzailera aldatu gara."
|
||||
|
||||
#: ../doc/changelog.py:107
|
||||
msgid ""
|
||||
"* You can update the current buffer by pressing ctrl+win+shift+u in the "
|
||||
"default keymap or in the buffer menu."
|
||||
msgstr ""
|
||||
"* Enfokatutako uferra ktrl+shift+win+u sakatuta (lehenetsitako teklatu-"
|
||||
"mapak) edo menuan eguneratu daitezke."
|
||||
|
||||
#: ../doc/changelog.py:108
|
||||
msgid "* Changed some keystrokes in the windows 10 default keymap"
|
||||
msgstr ""
|
||||
"* Lasterbide-tekla batzuk aldatuak izan dira Windows 10erako teklatu-mapan."
|
||||
|
||||
#: ../doc/changelog.py:109
|
||||
msgid "* New followers and friends buffer for user timelines."
|
||||
msgstr ""
|
||||
"* Jarraitzaileen eta lagunen bufer berria erabiltzaileen denbora-lerroentzat."
|
||||
|
||||
#: ../doc/changelog.py:110
|
||||
msgid "---"
|
||||
msgstr "---"
|
||||
|
||||
#: ../doc/changelog.py:111
|
||||
msgid "Copyright © 2014-2017, Manuel Cortez."
|
||||
msgstr "Copyright © 2014-2017, Manuel Cortez."
|
BIN
doc/locales/eu/lc_messages/twblue-documentation.mo
Normal file
BIN
doc/locales/eu/lc_messages/twblue-documentation.mo
Normal file
Binary file not shown.
1879
doc/locales/eu/lc_messages/twblue-documentation.po
Normal file
1879
doc/locales/eu/lc_messages/twblue-documentation.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
doc/locales/fr/lc_messages/twblue-changelog.mo
Normal file
BIN
doc/locales/fr/lc_messages/twblue-changelog.mo
Normal file
Binary file not shown.
1232
doc/locales/fr/lc_messages/twblue-changelog.po
Normal file
1232
doc/locales/fr/lc_messages/twblue-changelog.po
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
BIN
doc/locales/gl/lc_messages/twblue-changelog.mo
Normal file
BIN
doc/locales/gl/lc_messages/twblue-changelog.mo
Normal file
Binary file not shown.
1150
doc/locales/gl/lc_messages/twblue-changelog.po
Normal file
1150
doc/locales/gl/lc_messages/twblue-changelog.po
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
BIN
doc/locales/ja/lc_messages/twblue-changelog.mo
Normal file
BIN
doc/locales/ja/lc_messages/twblue-changelog.mo
Normal file
Binary file not shown.
946
doc/locales/ja/lc_messages/twblue-changelog.po
Normal file
946
doc/locales/ja/lc_messages/twblue-changelog.po
Normal file
@@ -0,0 +1,946 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR ORGANIZATION
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"POT-Creation-Date: 2018-08-07 13:19+Hora de verano central (Mexico)\n"
|
||||
"PO-Revision-Date: 2018-08-08 19:52+0900\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: ja\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: pygettext.py 1.5\n"
|
||||
"X-Generator: Poedit 2.1.1\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: ../doc/changelog.py:3
|
||||
msgid "TWBlue Changelog"
|
||||
msgstr "TWBlue 更新履歴"
|
||||
|
||||
#: ../doc/changelog.py:4
|
||||
msgid "## changes in this version"
|
||||
msgstr "## changes in this version"
|
||||
|
||||
#: ../doc/changelog.py:5
|
||||
msgid ""
|
||||
"* Added an option in the global settings dialog to disable the Streaming "
|
||||
"features of TWBlue. TWBlue will remove all Streaming features after August "
|
||||
"16, so this option will give people an idea about how it will be. ([#219]"
|
||||
"(https://github.com/manuelcortez/TWBlue/issues/219))"
|
||||
msgstr ""
|
||||
"* TWBlueのストリーミング機能を無効化するオプションを全般設定ダイアログに追"
|
||||
"加。TWBlueは8月16日以降にすべてのストリーミング機能を削除するため、このオプ"
|
||||
"ションは、その後どのようになるかを提供します。([#219](https://github.com/"
|
||||
"manuelcortez/TWBlue/issues/219))"
|
||||
|
||||
#: ../doc/changelog.py:6
|
||||
msgid ""
|
||||
"* Due to Twitter API changes, Switched authorisation method to Pin-code "
|
||||
"based authorisation. When you add new accounts to TWBlue, you will be "
|
||||
"required to paste a code displayed in the Twitter website in order to grant "
|
||||
"access to TWBlue. ([#216](https://github.com/manuelcortez/TWBlue/issues/216))"
|
||||
msgstr ""
|
||||
"* Twitter APIの変更により、PINコードベースでの認証に切り替え。TWBlueに新しい"
|
||||
"アカウントを追加すると、TWBlueへのアクセスを許可するために、Twitterウェブサイ"
|
||||
"トに表示されたコードを貼り付ける必要があります。 ([#216](https://github.com/"
|
||||
"manuelcortez/TWBlue/issues/216))"
|
||||
|
||||
#: ../doc/changelog.py:7
|
||||
msgid ""
|
||||
"* In order to comply with latest Twitter changes, TWBlue has switched to the "
|
||||
"new method used to send and receive direct messages, according to issue "
|
||||
"[#215.](https://github.com/manuelcortez/twblue/issues/215)"
|
||||
msgstr ""
|
||||
"* Twitterの最新の変更に遵守するため、ダイレクトメッセージの送受信を新しい方法"
|
||||
"に切り替え。( [#215.](https://github.com/manuelcortez/twblue/issues/215))"
|
||||
|
||||
#: ../doc/changelog.py:8
|
||||
msgid ""
|
||||
" * The sent direct messages buffer has been removed. All direct messages "
|
||||
"will be placed in one buffer only. "
|
||||
msgstr ""
|
||||
" * 送信済みのダイレクトメッセージバッファは削除されました。すべてのダイレ"
|
||||
"クトメッセージは、1つのバッファに表示されます。"
|
||||
|
||||
#: ../doc/changelog.py:9
|
||||
msgid ""
|
||||
" * The new method does not allow direct messages to be processed in real "
|
||||
"time. Direct messages will be updated periodically."
|
||||
msgstr ""
|
||||
" * 新方式では、ダイレクトメッセージをリアルタイムで処理することはできませ"
|
||||
"ん。ダイレクトメッセージは定期的に更新されます。"
|
||||
|
||||
#: ../doc/changelog.py:10
|
||||
msgid ""
|
||||
" * When sending a direct message, you will hear a sound if the message "
|
||||
"has been sent properly, but the direct message will not be added to the "
|
||||
"buffer inmediately."
|
||||
msgstr ""
|
||||
" * ダイレクトメッセージを送信するときは、メッセージが正しく送信されていれ"
|
||||
"ばサウンドが聞こえますが、ダイレクトメッセージはすぐにバッファに追加されませ"
|
||||
"ん。"
|
||||
|
||||
#: ../doc/changelog.py:11
|
||||
msgid ""
|
||||
"* After august 16 or when streaming is disabled, the events buffer will no "
|
||||
"longer be created in TWBlue."
|
||||
msgstr ""
|
||||
"* 8月16日以降、またはストリーミングが無効になっていると、イベントバッファは"
|
||||
"TWBlueで作成されなくなるように変更。"
|
||||
|
||||
#: ../doc/changelog.py:12
|
||||
msgid ""
|
||||
"* You can configure frequency for buffer updates in TWBlue. By default, "
|
||||
"TWBlue will update all buffers every 2 minutes, but you can change this "
|
||||
"setting in the global settings dialog. ([#223](https://github.com/"
|
||||
"manuelcortez/TWBlue/issues/223))"
|
||||
msgstr ""
|
||||
"* TWBlueのバッファの更新の頻度を設定できるようにした。初期設定では、TWBlueは"
|
||||
"すべてのバッファを2分ごとに更新しますが、全般設定ダイアログでこの設定を変更で"
|
||||
"きます。([#223](https://github.com/manuelcortez/TWBlue/issues/223))"
|
||||
|
||||
#: ../doc/changelog.py:13
|
||||
msgid ""
|
||||
"* Added a new tab called feedback, in the account settings dialog. This tab "
|
||||
"allows you to control wether automatic speech or Braille feedbak in certain "
|
||||
"events (mentions and direct messages received) is enabled. Take into account "
|
||||
"that this option will take preference over automatic reading of buffers and "
|
||||
"any kind of automatic output. ([#203](https://github.com/manuelcortez/TWBlue/"
|
||||
"issues/203))"
|
||||
msgstr ""
|
||||
"* アカウント設定ダイアログに新しく「フィードバック」タブを追加。このタブで"
|
||||
"は、特定のイベント(受信したメンションとダイレクトメッセージ)の自動読み上げ"
|
||||
"または点字でのフィードバックを有効化することができます。このオプションは、"
|
||||
"バッファの自動読み上げとあらゆる種類の自動出力より優先されることを考慮してく"
|
||||
"ださい。 ([#203](https://github.com/manuelcortez/TWBlue/issues/203))"
|
||||
|
||||
#: ../doc/changelog.py:14
|
||||
msgid ""
|
||||
"* The spell checking dialog now has access keys defined for the most "
|
||||
"important actions. ([#211](https://github.com/manuelcortez/TWBlue/"
|
||||
"issues/211))"
|
||||
msgstr ""
|
||||
"* スペルチェックダイアログに最も重要な動作のためのアクセスキーを追加。([#211]"
|
||||
"(https://github.com/manuelcortez/TWBlue/issues/211))"
|
||||
|
||||
#: ../doc/changelog.py:15
|
||||
msgid ""
|
||||
"* TWBlue now Uses WXPython 4.0.1. This will allow us to migrate all "
|
||||
"important components to Python 3 in the future. ([#207](https://github.com/"
|
||||
"manuelcortez/TWBlue/issues/207))"
|
||||
msgstr ""
|
||||
"* TWBlueは、WXPython4.0.1を使用するようにした。これにより、将来すべての重要な"
|
||||
"コンポーネントをPython 3に移行できます。([#207](https://github.com/"
|
||||
"manuelcortez/TWBlue/issues/207))"
|
||||
|
||||
#: ../doc/changelog.py:16
|
||||
msgid ""
|
||||
"* When you quote a Tweet, if the original tweet was posted with Twishort, "
|
||||
"TWBlue should display properly the quoted tweet. Before it was displaying "
|
||||
"the original tweet only. ([#206](https://github.com/manuelcortez/TWBlue/"
|
||||
"issues/206))"
|
||||
msgstr ""
|
||||
"* ツイートを引用すると、オリジナルのツイートがTwishortで投稿された場合、"
|
||||
"TWBlueは引用されたツイートを適切に表示するようになった。([#206](https://"
|
||||
"github.com/manuelcortez/TWBlue/issues/206))"
|
||||
|
||||
#: ../doc/changelog.py:17
|
||||
msgid ""
|
||||
"* It is possible to filter by retweets, quotes and replies when creating a "
|
||||
"new filter."
|
||||
msgstr ""
|
||||
"* 新しいフィルタを作成する際、リツイートや引用、リプライでフィルタ出来るよう"
|
||||
"になった。"
|
||||
|
||||
#: ../doc/changelog.py:18
|
||||
msgid ""
|
||||
"* Added support for playing youtube Links directly from the client. ([#94]"
|
||||
"(https://github.com/manuelcortez/TWBlue/issues/94))"
|
||||
msgstr ""
|
||||
"* クライアントでYouTubeのリンクを直接再生することをサポートした。([#94]"
|
||||
"(https://github.com/manuelcortez/TWBlue/issues/94))"
|
||||
|
||||
#: ../doc/changelog.py:19
|
||||
msgid "* Replaced Bass with libVLC for playing URL streams."
|
||||
msgstr "* URLストリームを再生するために、BassをlibVLCに置き換え。"
|
||||
|
||||
#: ../doc/changelog.py:20
|
||||
msgid ""
|
||||
"* the checkbox for indicating wether TWBlue will include everyone in a reply "
|
||||
"or not, will be unchecked by default."
|
||||
msgstr ""
|
||||
"* TWBlueで全員にリプライするかどうかのチェックボックスを初期設定でチェックな"
|
||||
"しにした。"
|
||||
|
||||
#: ../doc/changelog.py:21
|
||||
msgid ""
|
||||
"* You can request TWBlue to save the state for two checkboxes: Long tweet "
|
||||
"and mention all, from the global settings dialogue."
|
||||
msgstr ""
|
||||
"* 「全員にリプライ」および「ツイートを短縮して投稿」のチェック状態を保持する"
|
||||
"かどうかを全般設定ダイアログから変更できるようにした。"
|
||||
|
||||
#: ../doc/changelog.py:22
|
||||
msgid ""
|
||||
"* For windows 10 users, some keystrokes in the invisible user interface have "
|
||||
"been changed or merged:"
|
||||
msgstr ""
|
||||
"* Windows10のユーザー向けにGUI非標示インターフェースでのキーストロークを変"
|
||||
"更・マージ。"
|
||||
|
||||
#: ../doc/changelog.py:23
|
||||
msgid ""
|
||||
" * control+Windows+alt+F will be used for toggling between adding and "
|
||||
"removing a tweet to user's likes. This function will execute the needed "
|
||||
"action based in the current status for the focused tweet."
|
||||
msgstr ""
|
||||
" * Ctrl+Windows+Alt+Fは、ユーザーのツイートをいいね・いいね解除するために"
|
||||
"利用されます。この機能は、フォーカスされたツイートの現在のステータスに基づい"
|
||||
"て適切な動作を実行します。"
|
||||
|
||||
#: ../doc/changelog.py:24
|
||||
msgid "* TWBlue will show an error if something goes wrong in an audio upload."
|
||||
msgstr ""
|
||||
"* 音声のアップロードで何か問題が生じた場合、TWBlueはエラーを表示するように"
|
||||
"なった。"
|
||||
|
||||
#: ../doc/changelog.py:25
|
||||
msgid ""
|
||||
"* And more. ([#171,](https://github.com/manuelcortez/TWBlue/issues/171) "
|
||||
msgstr "* など。([#171,](https://github.com/manuelcortez/TWBlue/issues/171) "
|
||||
|
||||
#: ../doc/changelog.py:26
|
||||
#, fuzzy
|
||||
msgid "## Changes in version 0.93"
|
||||
msgstr "## バージョン0.87での変更点"
|
||||
|
||||
#: ../doc/changelog.py:27
|
||||
msgid ""
|
||||
"* A new soundpack has been added to TWBlue. Thanks to [@ValeriaK305](https://"
|
||||
"twitter.com/ValeriaK305)"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:28
|
||||
msgid ""
|
||||
"* In the Windows 10 keymap, we have changed some default keystrokes as "
|
||||
"windows now uses some previously assigned shortcuts:"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:29
|
||||
msgid " * For liking a tweet, press Control+Windows+alt+f"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:30
|
||||
msgid " * for opening a trends buffer, press control+Windows+T"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:31
|
||||
msgid ""
|
||||
"* TWBlue has received improvements in some functions for handling extended "
|
||||
"tweets, long tweets and quoted retweets. It should render some tweets in a "
|
||||
"better way."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:32
|
||||
msgid ""
|
||||
"* In the spell checker module, there is a new button that will allow you to "
|
||||
"add your own words to your personal dictionary so the module won't mark them "
|
||||
"as mispelled the next time you will check spelling."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:33
|
||||
msgid ""
|
||||
"* Added filtering capabilities to TWBlue. ([#102](https://github.com/"
|
||||
"manuelcortez/TWBlue/issues/102))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:34
|
||||
msgid ""
|
||||
" * You can create a filter for the current buffer from the buffer menu in "
|
||||
"the menu bar. At this moment, invisible interface does not have any shorcut "
|
||||
"for this."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:35
|
||||
msgid " * You can create filters by word or languages."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:36
|
||||
msgid ""
|
||||
" * For deleting already created filters, you can go to the filter manager "
|
||||
"in the buffer menu and delete the filters you won't need."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:37
|
||||
msgid ""
|
||||
"* Links should be opened properly in quoted tweets ([#167,](https://github."
|
||||
"com/manuelcortez/TWBlue/issues/167) [#184](https://github.com/manuelcortez/"
|
||||
"TWBlue/issues/184))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:38
|
||||
msgid ""
|
||||
"* Increased display name limit up to 50 characters in update profile dialog."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:39
|
||||
msgid ""
|
||||
"* When authorising an account, you will see a dialogue with a cancel button, "
|
||||
"in case you want to abort the process. Also, NVDA will not be blocked when "
|
||||
"the process starts. ([#101](https://github.com/manuelcortez/TWBlue/"
|
||||
"issues/101))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:40
|
||||
msgid ""
|
||||
"* In the translator module, the list of available languages is fetched "
|
||||
"automatically from the provider. That means all of these languages will work "
|
||||
"and there will not be inconsistencies. Also we've removed the first combo "
|
||||
"box, because the language is detected automatically by Yandex'S API. ([#153]"
|
||||
"(https://github.com/manuelcortez/TWBlue/issues/153))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:41
|
||||
msgid ""
|
||||
"* Trending topics, searches and conversation buffers will use mute settings "
|
||||
"set for the session in wich they were opened. ([#157](https://github.com/"
|
||||
"manuelcortez/TWBlue/issues/157))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:42
|
||||
msgid ""
|
||||
"* The Tweet limit is now 280 characters lenght instead 140. It means you can "
|
||||
"tweet longer tweets. ([#172](https://github.com/manuelcortez/TWBlue/"
|
||||
"issues/172))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:43
|
||||
msgid ""
|
||||
"* Per popular request, Status for mention to all and long tweet checkboxes "
|
||||
"will not be saved in settings. ([#170](https://github.com/manuelcortez/"
|
||||
"TWBlue/issues/170))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:44
|
||||
msgid ""
|
||||
"* Fixed a problem that was making TWBlue unable to start if it was being ran "
|
||||
"in Windows with Serbian language. ([#175](https://github.com/manuelcortez/"
|
||||
"TWBlue/issues/175))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:45
|
||||
#, fuzzy
|
||||
msgid "* Added Danish translation."
|
||||
msgstr "* 翻訳を更新。"
|
||||
|
||||
#: ../doc/changelog.py:46
|
||||
msgid ""
|
||||
"* And more. ([#156,](https://github.com/manuelcortez/TWBlue/issues/156) "
|
||||
"[#163,](https://github.com/manuelcortez/TWBlue/issues/163) [#159,](https://"
|
||||
"github.com/manuelcortez/TWBlue/issues/159) [#173,](https://github.com/"
|
||||
"manuelcortez/TWBlue/issues/173) [#174,](https://github.com/manuelcortez/"
|
||||
"TWBlue/issues/174) [#176,](https://github.com/manuelcortez/TWBlue/"
|
||||
"issues/176))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:47
|
||||
#, fuzzy
|
||||
msgid "## changes in version 0.91 and 0.92"
|
||||
msgstr "## バージョン0.82および0.83での変更点"
|
||||
|
||||
#: ../doc/changelog.py:48
|
||||
msgid ""
|
||||
"* Fixed incorrect unicode handling when copying tweet to clipboard. ([#150]"
|
||||
"(https://github.com/manuelcortez/TWBlue/issues/150))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:49
|
||||
msgid ""
|
||||
"* TWBlue will show an error when trying to open a timeline for a suspended "
|
||||
"user. ([#128](https://github.com/manuelcortez/TWBlue/issues/128))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:50
|
||||
msgid ""
|
||||
"* Removed TwUp as service as it no longer exists. ([#112](https://github.com/"
|
||||
"manuelcortez/TWBlue/issues/112))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:51
|
||||
msgid ""
|
||||
"* Release audio files after uploading them. ([#130](https://github.com/"
|
||||
"manuelcortez/TWBlue/issues/130))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:52
|
||||
msgid ""
|
||||
"* Now TWBlue will use Yandex's translation services instead microsoft "
|
||||
"translator. ([#132](https://github.com/manuelcortez/TWBlue/issues/132))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:53
|
||||
msgid ""
|
||||
"* SndUp users will be able to upload audio in their account by using their "
|
||||
"API Key again. ([#134](https://github.com/manuelcortez/TWBlue/issues/134))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:54
|
||||
msgid ""
|
||||
"* old tweets shouldn't be added as new items in buffers. ([#116,](https://"
|
||||
"github.com/manuelcortez/TWBlue/issues/116)) ([#133](https://github.com/"
|
||||
"manuelcortez/TWBlue/issues/133))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:55
|
||||
msgid ""
|
||||
"* All mentionned users should be displayed correctly in Twishort's long "
|
||||
"tweets. ([#116,](https://github.com/manuelcortez/TWBlue/issues/116)) ([#135]"
|
||||
"(https://github.com/manuelcortez/TWBlue/issues/135))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:56
|
||||
msgid ""
|
||||
"* It is possible to select a language for OCR service from the extras panel, "
|
||||
"in the account settings dialogue. You can, however, set this to detect "
|
||||
"automatically. OCR should work better in languages with special characters "
|
||||
"or non-english symbols. ([#107](https://github.com/manuelcortez/TWBlue/"
|
||||
"issues/107))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:57
|
||||
msgid ""
|
||||
"* Fixed a problem with JAWS for Windows and TWBlue. Now JAWS will work "
|
||||
"normally in this update. [#100](https://github.com/manuelcortez/twblue/"
|
||||
"issues/100)"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:58
|
||||
msgid "* And more ([#136,](https://github.com/manuelcortez/TWBlue/issues/136))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:59
|
||||
#, fuzzy
|
||||
msgid "## Changes in version 0.90"
|
||||
msgstr "## バージョン0.87での変更点"
|
||||
|
||||
#: ../doc/changelog.py:60
|
||||
msgid ""
|
||||
"* Fixed a bug in long tweet parsing that was making TWBlue to disconnect the "
|
||||
"streaming API. ([#103](https://github.com/manuelcortez/TWBlue/issues/103))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:61
|
||||
msgid ""
|
||||
"* Now OCR will work in images from retweets. It fixes a bug where TWBlue was "
|
||||
"detecting images but couldn't apply OCR on them. ([#105](https://github.com/"
|
||||
"manuelcortez/TWBlue/issues/105))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:62
|
||||
msgid ""
|
||||
"* TWBlue won't try to load tweets already deleted, made with Twishort. "
|
||||
"Before, if someone posted a long tweet but deleted it in the Twishort's "
|
||||
"site, TWBlue was trying to load the tweet and it was causing problems in all "
|
||||
"the client. ([#113](https://github.com/manuelcortez/TWBlue/issues/113))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:63
|
||||
msgid ""
|
||||
"* TWBlue shows an error message when you try to view the profile of an user "
|
||||
"that does not exist or has been suspended. ([#114,](https://github.com/"
|
||||
"manuelcortez/TWBlue/issues/114) [#115](https://github.com/manuelcortez/"
|
||||
"TWBlue/issues/115))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:64
|
||||
msgid ""
|
||||
"* The spellchecker module should select the right language when is set to "
|
||||
"\"user default\". ([#117](https://github.com/manuelcortez/TWBlue/issues/117))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:65
|
||||
msgid ""
|
||||
"* Image description will be displayed in retweets too. ([#119](https://"
|
||||
"github.com/manuelcortez/TWBlue/issues/119))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:66
|
||||
msgid ""
|
||||
"* When reading a long tweet, you shouldn't read strange entities anymore. "
|
||||
"([#118](https://github.com/manuelcortez/twblue/issues/118))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:67
|
||||
msgid ""
|
||||
"* TWBlue will not try to load timelines if the user is blocking you. ([#125]"
|
||||
"(https://github.com/manuelcortez/twblue/issues/125))"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:68
|
||||
#, fuzzy
|
||||
msgid "## Changes in version 0.88 and 0.89"
|
||||
msgstr "## バージョン0.82および0.83での変更点"
|
||||
|
||||
#: ../doc/changelog.py:69
|
||||
msgid "* Fixed more issues with streams and reconnections."
|
||||
msgstr "* ストリームと再接続に関するその他の問題を修正。"
|
||||
|
||||
#: ../doc/changelog.py:70
|
||||
msgid "* newer updates will indicate the release date in the updater."
|
||||
msgstr "* アップデータでリリース日を通知するように変更。"
|
||||
|
||||
#: ../doc/changelog.py:71
|
||||
msgid ""
|
||||
"* Changes to keystrokes are reflected in keystroke editor automatically."
|
||||
msgstr ""
|
||||
"* 変更したキーストロークがキーストロークエディタに反映されるように変更。"
|
||||
|
||||
#: ../doc/changelog.py:72
|
||||
msgid ""
|
||||
"* In replies with multiple users, if the mention to all checkbox is "
|
||||
"unchecked, you will see a checkbox per user so you will be able to control "
|
||||
"who will be mentioned in the reply."
|
||||
msgstr ""
|
||||
"* リプライに複数のユーザーが含まれている場合に、「全員にメンション」がチェッ"
|
||||
"クされていないとき、ユーザーごとにチェックボックスを表示し、誰に返信するか制"
|
||||
"御できるようにした。"
|
||||
|
||||
#: ../doc/changelog.py:73
|
||||
msgid ""
|
||||
"* Fixed a bug that caused duplicated user mentions in replies when the tweet "
|
||||
"was made with Twishort."
|
||||
msgstr ""
|
||||
"* 返信時にTwishortを利用してツイートを作成した際に、ユーザーが重複していたバ"
|
||||
"グを修正。"
|
||||
|
||||
#: ../doc/changelog.py:74
|
||||
msgid ""
|
||||
"* Retweets should be displayed normally again when the originating tweet is "
|
||||
"a Twishort's long tweet."
|
||||
msgstr ""
|
||||
"* 元のツイートがTwishortで作成した長いツイートのとき、リツイートが正常に表示"
|
||||
"されるように修正。"
|
||||
|
||||
#: ../doc/changelog.py:75
|
||||
msgid ""
|
||||
"* Changed the way TWBlue saves user timelines in configuration. Now it uses "
|
||||
"user IDS instead usernames. With user IDS, if an user changes the username, "
|
||||
"TWBlue still will create his/her timeline. This was not possible by using "
|
||||
"usernames."
|
||||
msgstr ""
|
||||
"* ユーザータイムラインの設定の保存方法を変更。ユーザー名の代わりにユーザーID"
|
||||
"を利用しています。ユーザーIDで保存することにより、ユーザー名を変えてもタイム"
|
||||
"ラインを作成することができます。ユーザー名を利用した場合は、これはできません"
|
||||
"でした。"
|
||||
|
||||
#: ../doc/changelog.py:76
|
||||
msgid ""
|
||||
"* Added a new setting in the account settings dialogue that makes TWBlue to "
|
||||
"show twitter usernames instead the full name."
|
||||
msgstr ""
|
||||
"* アカウント設定ダイアログにTWBlueが表示名の代わりにユーザー名を表示する項目"
|
||||
"を追加。"
|
||||
|
||||
#: ../doc/changelog.py:77
|
||||
msgid ""
|
||||
"* Added OCR in twitter pictures. There is a new item in the tweet menu that "
|
||||
"allows you to extract and display text in images. Also the keystroke alt+Win"
|
||||
"+o has been added for the same purpose from the invisible interface."
|
||||
msgstr ""
|
||||
"* ツイートに添付された画像をOCRする機能を追加。ツイートメニュー内に画像内のテ"
|
||||
"キストを抽出して表示する項目を追加しました。また、GUI非表示インターフェイス"
|
||||
"で、ALT + Windows + Oでもこの機能を実行することができます。"
|
||||
|
||||
#: ../doc/changelog.py:78
|
||||
msgid "* Now TWBlue will play a sound when the focused tweet contains images."
|
||||
msgstr "* 画像付きツイートを音声で通知するようにした。"
|
||||
|
||||
#: ../doc/changelog.py:79
|
||||
msgid ""
|
||||
"* Your own quoted tweets will not appear in the mentions buffer anymore."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:80
|
||||
msgid ""
|
||||
"* The config file is saved in a different way, it should fix the bug where "
|
||||
"TWBlue needs to be restarted after the config folder is deleted."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:81
|
||||
msgid "* Mentioning people from friends or followers buffers works again."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:82
|
||||
msgid ""
|
||||
"* Support for proxy servers has been improved. Now TWBlue supports http, "
|
||||
"https, socks4 and socks5 proxies, with and without autentication."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:83
|
||||
msgid "## Changes in version 0.87"
|
||||
msgstr "## バージョン0.87での変更点"
|
||||
|
||||
#: ../doc/changelog.py:84
|
||||
msgid "* Fixed stream connection errors."
|
||||
msgstr "* ストリーム接続時のエラーを修正。"
|
||||
|
||||
#: ../doc/changelog.py:85
|
||||
msgid ""
|
||||
"* Now TWBlue can handle properly a reply to the sender without including all "
|
||||
"other mentioned users."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:86
|
||||
msgid "* Updated translations."
|
||||
msgstr "* 翻訳を更新。"
|
||||
|
||||
#: ../doc/changelog.py:87
|
||||
msgid ""
|
||||
"* The status of the mention to all checkbox will be remembered the next time "
|
||||
"you reply to multiple users."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:88
|
||||
msgid "## Changes in version 0.86"
|
||||
msgstr "## バージョン0.86での変更点"
|
||||
|
||||
#: ../doc/changelog.py:89
|
||||
msgid ""
|
||||
"* Fixed a very important security issue. Now TWBlue will send tweets to "
|
||||
"twishort without using any other server."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:90
|
||||
msgid ""
|
||||
"* When you add a comment to a tweet, it will be sent as a quoted tweet, even "
|
||||
"if your reply plus the original tweet is not exceeding 140 characters."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:91
|
||||
msgid ""
|
||||
"* Updated windows 10 keymap for reflecting changes made in the last windows "
|
||||
"10 build."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:92
|
||||
msgid "* Added last changes in the twitter API."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:93
|
||||
msgid ""
|
||||
"* When replying, it will not show the twitter username in the text box. When "
|
||||
"you send the tweet, the username will be added automatically."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:94
|
||||
msgid ""
|
||||
"* When replying to multiple users, you'll have a checkbox instead a button "
|
||||
"for mentioning all people. If this is checked, twitter usernames will be "
|
||||
"added automatically when you send your reply."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:95
|
||||
msgid "## Changes in version 0.85"
|
||||
msgstr "## バージョン0.85での変更点"
|
||||
|
||||
#: ../doc/changelog.py:96
|
||||
msgid "* Long and quoted tweets should be displayed properly In lists."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:97
|
||||
msgid "* The connection should be more stable."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:98
|
||||
msgid "* Added an autostart option in the global settings dialogue."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:99
|
||||
msgid "* Updated translation."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:100
|
||||
msgid "* Updated russian documentation."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:101
|
||||
msgid "* Tweets in cached database should be loaded properly."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:102
|
||||
msgid "* Added some missed dictionaries for spelling correction."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:103
|
||||
msgid ""
|
||||
"* Timelines, lists and other buffer should be created in the right order at "
|
||||
"startup."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:104
|
||||
msgid "## Changes in version 0.84 "
|
||||
msgstr "## バージョン0.84での変更点"
|
||||
|
||||
#: ../doc/changelog.py:105
|
||||
msgid "* More improvements in quoted and long tweets."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:106
|
||||
msgid ""
|
||||
"* Updated translations: Russian, Italian, French, Romanian, Galician and "
|
||||
"Finnish."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:107
|
||||
msgid ""
|
||||
"* Improvements in the audio uploader module: Now it can handle audio with "
|
||||
"non-english characters."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:108
|
||||
msgid ""
|
||||
"* the title of the window should be updated properly when spellcheck, "
|
||||
"translate or shorten/unshorten URL buttons are pressed."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:109
|
||||
msgid ""
|
||||
"* the bug that changes the selected tweet in the home timeline shouldn't be "
|
||||
"happening so often."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:110
|
||||
msgid "## Changes in version 0.82 and 0.83"
|
||||
msgstr "## バージョン0.82および0.83での変更点"
|
||||
|
||||
#: ../doc/changelog.py:111
|
||||
msgid ""
|
||||
"* If the tweet source (client) is an application with unicode characters "
|
||||
"(example: российская газета) it will not break the tweet displayer."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:112
|
||||
msgid ""
|
||||
"* Added a new field for image description in tweet displayer. When "
|
||||
"available, it will show description for images posted in tweets."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:113
|
||||
msgid ""
|
||||
"* users can add image descriptions to their photos. When uploading an image, "
|
||||
"a dialog will show for asking a description."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:114
|
||||
msgid "* Redesigned upload image dialog."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:115
|
||||
msgid "* Fixed photo uploads when posting tweets."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:116
|
||||
msgid ""
|
||||
"* When getting tweets for a conversation, ignores deleted tweets or some "
|
||||
"errors, now TWBlue will try to get as much tweets as possible, even if some "
|
||||
"of these are no longer available."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:117
|
||||
msgid "* Added audio playback from soundcloud."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:118
|
||||
msgid "* Now the session mute option don't makes the screen reader speaks."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:119
|
||||
msgid "* Fixed the direct message dialog. Now it should be displayed properly."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:120
|
||||
msgid ""
|
||||
"* when a tweet is deleted in twitter, TWBlue should reflect this change and "
|
||||
"delete that tweet in every buffer it is displayed."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:121
|
||||
msgid ""
|
||||
"* If your session is broken, TWBlue will be able to remove it automatically "
|
||||
"instead just crashing."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:122
|
||||
msgid "* audio uploader should display the current progress."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:123
|
||||
msgid ""
|
||||
"* users can disable the check for updates feature at startup from the "
|
||||
"general tab, in the global settings dialogue."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:124
|
||||
msgid ""
|
||||
"* The invisible interface and the window should be synchronized when the "
|
||||
"client reconnects."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:125
|
||||
msgid "* The documentation option in the systray icon should be enabled."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:126
|
||||
msgid ""
|
||||
"* In trending buffers, you can press enter for posting a tweet about the "
|
||||
"focused trend."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:127
|
||||
msgid ""
|
||||
"* Updated russian documentation and main program interface (thanks to "
|
||||
"Natalia Hedlund (Наталья Хедлунд), [@lifestar_n](https://twitter.com/"
|
||||
"lifestar_n) in twitter)"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:128
|
||||
msgid "* updated translations."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:129
|
||||
msgid "## Changes in Version 0.81"
|
||||
msgstr "## バージョン0.81での変更点"
|
||||
|
||||
#: ../doc/changelog.py:130
|
||||
msgid "* Updated translations"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:131
|
||||
msgid ""
|
||||
"* The updater module has received some improvements. Now it includes a "
|
||||
"Mirror URL for checking updates if the main URL is not available at the "
|
||||
"moment. If something is wrong and both locations don't work, the program "
|
||||
"will start anyway."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:132
|
||||
msgid "* some GUI elements now use keyboard shortcuts for common actions."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:133
|
||||
msgid "* fixed a bug in the geolocation dialog."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:134
|
||||
msgid "* the chicken nugget keymap should work properly."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:135
|
||||
msgid ""
|
||||
"* Added a new soundpack to the default installation of TWBlue, thanks to "
|
||||
"[@Deng90](https://twitter.com/deng90)"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:136
|
||||
msgid "* Now the changelog is written in an html File."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:137
|
||||
msgid ""
|
||||
"* Added some missed dictionaries in last version for the spell checking "
|
||||
"feature."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:138
|
||||
msgid ""
|
||||
"* Trimmed the beginnings of the sounds in the default soundpack. Thanks to "
|
||||
"[@masonasons](https://github.com/masonasons)"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:139
|
||||
msgid ""
|
||||
"* Added Opus support for sound playback in TWBlue. Thanks to [@masonasons]"
|
||||
"(https://github.com/masonasons)"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:140
|
||||
msgid ""
|
||||
"* Added a source field in view tweet dialogue. Thanks to [@masonasons]"
|
||||
"(https://github.com/masonasons)"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:141
|
||||
msgid ""
|
||||
"* You can load previous items in followers and friend buffers for others."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:142
|
||||
msgid ""
|
||||
"* The Spell Checker dialogue should not display an error message when you "
|
||||
"have set \"default language\" in the global settings dialogue if your "
|
||||
"language is supported [#168](http://twblue.es/bugs/view.php?id=168)"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:143
|
||||
msgid "* Updated romanian translation."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:144
|
||||
msgid "* Some code cleanups."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:145
|
||||
msgid "* The bug reports feature is fully operational again."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:146
|
||||
msgid ""
|
||||
"* TWBlue should work again for users that contains special characters in "
|
||||
"windows usernames."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:147
|
||||
msgid "* Added more options for the tweet searches."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:148
|
||||
msgid "* Added play_audio to the keymap editor."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:149
|
||||
msgid "* Windows key is no longer required in the keymap editor"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:150
|
||||
msgid "* Switched to the Microsoft translator."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:151
|
||||
msgid ""
|
||||
"* You can update the current buffer by pressing ctrl+win+shift+u in the "
|
||||
"default keymap or in the buffer menu."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:152
|
||||
msgid "* Changed some keystrokes in the windows 10 default keymap"
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:153
|
||||
msgid "* New followers and friends buffer for user timelines."
|
||||
msgstr ""
|
||||
|
||||
#: ../doc/changelog.py:154
|
||||
msgid "---"
|
||||
msgstr "---"
|
||||
|
||||
#: ../doc/changelog.py:155
|
||||
#, fuzzy
|
||||
msgid "Copyright © 2014-2017, Manuel Cortez."
|
||||
msgstr "Copyright © 2014-2016, Manuel Cortez."
|
||||
|
||||
#~ msgid "\\357\\273\\277TWBlue Changelog"
|
||||
#~ msgstr "\\357\\273\\277TWBlue 更新履歴"
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
BIN
doc/locales/ro/LC_MESSAGES/twblue-changelog.mo
Normal file
BIN
doc/locales/ro/LC_MESSAGES/twblue-changelog.mo
Normal file
Binary file not shown.
1145
doc/locales/ro/LC_MESSAGES/twblue-changelog.po
Normal file
1145
doc/locales/ro/LC_MESSAGES/twblue-changelog.po
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
BIN
doc/locales/ru/lc_messages/twblue-changelog.mo
Normal file
BIN
doc/locales/ru/lc_messages/twblue-changelog.mo
Normal file
Binary file not shown.
1140
doc/locales/ru/lc_messages/twblue-changelog.po
Normal file
1140
doc/locales/ru/lc_messages/twblue-changelog.po
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
Documentation for TWBlue - 0.84
|
||||
Documentation for TWBlue - 0.88
|
||||
|
||||
## Table of contents
|
||||
|
||||
@@ -15,7 +15,7 @@ If you want to see what has changed from the previous version, [read the list of
|
||||
TWBlue is an application to make Twitter simple and fast, while using as few resources as possible. With TWBlue, you can do things like the following:
|
||||
|
||||
* Tweet, reply to, retweet and delete tweets,
|
||||
* Mark and unmark a tweet as favourite,
|
||||
* Like and unlike a tweet,
|
||||
* Send and delete direct messages,
|
||||
* See your friends and followers,
|
||||
* Follow, unfollow, report and block a user,
|
||||
@@ -26,7 +26,7 @@ TWBlue is an application to make Twitter simple and fast, while using as few res
|
||||
|
||||
## Usage
|
||||
|
||||
Twitter is a social networking or micro-blogging tool which allows you to compose short status updates of your activities in 140 characters or less. Twitter is a way for friends, family and co-workers to communicate and stay connected through the exchange of quick, frequent messages. You can restrict delivery of updates to those in your circle of friends or, by default, allow anyone to access them.
|
||||
Twitter is a social networking or micro-blogging tool which allows you to compose short status updates of your activities in 280 characters or less. Twitter is a way for friends, family and co-workers to communicate and stay connected through the exchange of quick, frequent messages. You can restrict delivery of updates to those in your circle of friends or, by default, allow anyone to access them.
|
||||
|
||||
You can monitor the status of updates from your friends, family or co-workers (known as following), and they in turn can read any updates you create, (known as followers). The updates are referred to as Tweets. The Tweets are posted to your Twitter profile or Blog and are searchable using Twitter Search.
|
||||
|
||||
@@ -65,14 +65,14 @@ The following is a description for every one of TWBlue's buffers and the kind of
|
||||
* Direct messages: here you will find the private direct messages you exchange with users who follow you , or with any user, if you allow direct messages from everyone (this setting is configurable from Twitter). This list only shows received messages.
|
||||
* Sent direct messages: this buffer shows all the direct messages sent from your account.
|
||||
* Sent tweets: this shows all the tweets sent from your account.
|
||||
* Favourites: here you will see all the tweets you have favourited.
|
||||
* Likes: here you will see all the tweets you have liked.
|
||||
* Followers: when users follow you, you'll be able to see them on this buffer, with some of their account details.
|
||||
* Friends: the same as the previous buffer, but these are the users you follow.
|
||||
* User timelines: these are buffers you may create. They contain only the tweets by a specific user. They're used so you can see the tweets by a single person and you don't want to look all over your timeline. You may create as many as you like.
|
||||
* Events: An event is anything that happens on Twitter, such as when someone follows you, when someone adds or removes one of your tweets from their favourites list, or when you subscribe to a list. There are many more, but the program shows the most common ones in the events buffer so that you can easily keep track of what is happening on your account.
|
||||
* Events: An event is anything that happens on Twitter, such as when someone follows you, when someone adds or removes one of your tweets from their likes list, or when you subscribe to a list. There are many more, but the program shows the most common ones in the events buffer so that you can easily keep track of what is happening on your account.
|
||||
* Lists: A list is similar to a user timeline, except that you can configure it to contain tweets from multiple users.
|
||||
* Search: A search buffer contains the results of a search operation.
|
||||
* User favourites: You can have the program create a buffer containing tweets favourited by a particular user.
|
||||
* User likes: You can have the program create a buffer containing tweets liked by a particular user.
|
||||
* Trending Topics: a trend buffer shows the top ten most used terms in a geographical region. This region may be a country or a city. Trends are updated every five minutes.
|
||||
|
||||
If a tweet contains a URL, you can press enter in the GUI or Control + Windows + Enter in the invisible interface to open it. If it contains audio, you can press Control + Enter or Control + Windows + Alt + Enter to play it, respectively. TWBlue will play a sound if the tweet contains the \#audio hashtag, but there may be tweets which contain audio without this. Finally, if a tweet contains geographical information, you can press Control + Windows + G in the invisible interface to retrieve it.
|
||||
@@ -87,7 +87,7 @@ These fields accept a Twitter username (without the at sign) as the input. They
|
||||
|
||||
The graphical user interface of TWBlue consists of a window containing:
|
||||
|
||||
* a menu bar accomodating five menus (application, tweet, user, buffer and help);
|
||||
* a menu bar accomodating six menus (application, tweet, user, buffer, audio and help);
|
||||
* One tree view,
|
||||
* One list of items
|
||||
* Four buttons in most dialogs: Tweet, retweet , reply and direct message.
|
||||
@@ -98,16 +98,16 @@ In summary, the GUI contains two core components. These are the controls you wil
|
||||
|
||||
#### Buttons in the application
|
||||
|
||||
* Tweet: this button opens up a dialogue box to write your tweet. The message must not exceed 140 characters. If you write past this limit, a sound will play to warn you. Note that the character count is displayed in the title bar. You may use the shorten and expand URL buttons to comply with the character limit. You can upload a picture, check spelling, attach audio or translate your message by selecting one of the available buttons in the dialogue box. In addition, you can autocomplete the entering of users by pressing Alt + A or the button for that purpose if you have the database of users configured. Press enter to send the tweet. If all goes well, you'll hear a sound confirming it. Otherwise, the screen reader will speak an error message in English describing the problem.
|
||||
* Retweet: this button retweets the message you're reading. After you press it, if you haven't configured the application not to do so, you'll be asked if you want to add a comment or simply send it as written. If you choose to add a comment, and if the original tweet plus the comment exceeds 140 characters, you will be asked if you want to post it as a comment with a mention to the original user and a link to the originating tweet.
|
||||
* Reply: when you're viewing a tweet, you can reply to the user who sent it by pressing this button. A dialogue will open up similar to the one for tweeting, but with the name of the user already filled in (for example @user) so you only need to write your message. If there are more users referred to in the tweet, you can press shift-tab and activate the mention all users button. When you're on the friends or followers lists, the button will be called mention instead.
|
||||
* Direct message: exactly like sending a tweet, but it's a private message which can only be read by the user you send it to. Press shift-tab to see the recipient. If there were other users mentioned in the tweet you were reading, you can arrow up or down to choose which one to send it to, or write the username yourself without the at sign.
|
||||
* Tweet: this button opens up a dialogue box to write your tweet. Normal tweets must not exceed 280 characters. However you can press the long tweet checkbox and your tweet will be posted throught Twishort, wich will allow you to write longer tweets (10000 characters). If you write past this limit, a sound will play to warn you. Note that the character count is displayed in the title bar. You may use the shorten and expand URL buttons to comply with the character limit. You can upload a picture, check spelling, attach audio or translate your message by selecting one of the available buttons in the dialogue box. In addition, you can autocomplete the entering of users by pressing Alt + C or the button for that purpose if you have the database of users configured. Press enter to send the tweet. If all goes well, you'll hear a sound confirming it. Otherwise, the screen reader will speak an error message in English describing the problem.
|
||||
* Retweet: this button retweets the message you're reading. After you press it, if you haven't configured the application not to do so, you'll be asked if you want to add a comment or simply send it as written. If you choose to add a comment, it will post a quoted tweet, that is, the comment with a link to the originating tweet.
|
||||
* Reply: when you're viewing a tweet, you can reply to the user who sent it by pressing this button. A dialogue will open up similar to the one for tweeting. If there are more users referred to in the tweet, you can press tab and activate the mention to all checkbox, or enabling checkbox for the users you want to mention separately. When you're on the friends or followers lists, the button will be called mention instead.
|
||||
* Direct message: exactly like sending a tweet, but it's a private message which can only be read by the user you send it to. Press shift-tab twice to see the recipient. If there were other users mentioned in the tweet you were reading, you can arrow up or down to choose which one to send it to, or write the username yourself without the at sign. In addition, you can autocomplete the entering of users by pressing Alt + C or the button for that purpose if you have the database of users configured.
|
||||
|
||||
Bear in mind that buttons will appear according to which actions are possible on the list you are browsing. For example, on the home timeline, mentions, sent, favourites and user timelines you will see the four buttons, while on the direct messages list you'll only get the direct message and tweet buttons, and on friends and followers lists the direct message, tweet, and mention buttons will be available.
|
||||
Bear in mind that buttons will appear according to which actions are possible on the list you are browsing. For example, on the home timeline, mentions, sent, likes and user timelines you will see the four buttons, while on the direct messages list you'll only get the direct message and tweet buttons, and on friends and followers lists the direct message, tweet, and mention buttons will be available.
|
||||
|
||||
#### Menus
|
||||
|
||||
Visually, Towards the top of the main application window, can be found a menu bar which contains many of the same functions as listed in the previous section, together with some additional items. To access the menu bar, press the alt key. You will find five menus listed: application, tweet, user, buffer and help. This section describes the items on each one of them.
|
||||
Visually, Towards the top of the main application window, can be found a menu bar which contains many of the same functions as listed in the previous section, together with some additional items. To access the menu bar, press the alt key. You will find six menus listed: application, tweet, user, buffer, audio and help. This section describes the items on each one of them.
|
||||
|
||||
##### Application menu
|
||||
|
||||
@@ -124,11 +124,12 @@ Visually, Towards the top of the main application window, can be found a menu ba
|
||||
##### Tweet menu
|
||||
|
||||
* You will first find the items to tweet, reply and retweet, which are equivalent to the buttons with the same name.
|
||||
* Add to favourites: marks the tweet you're viewing as a favourite.
|
||||
* Remove from favourites: removes the tweet from your favourites, but not from Twitter.
|
||||
* Show tweet: opens up a dialogue box where you can read the tweet, direct message, friend or follower which has focus. You can read the text with the arrow keys. It's a similar dialog box as used for composing tweets, without the ability to send the tweet, file attachment and autocompleting capabilities. It does however include a retweets and favourites count. If you are in the followers or the friends list, it will only contain a read-only edit box with the information in the focused item and a close button.
|
||||
* Like: Adds the tweet you're viewing to your likes list.
|
||||
* Unlike: removes the tweet from your likes, but not from Twitter.
|
||||
* Show tweet: opens up a dialogue box where you can read the tweet, direct message, friend or follower which has focus. You can read the text with the arrow keys. It's a similar dialog box as used for composing tweets, without the ability to send the tweet, file attachment and autocompleting capabilities. It does however include a retweets and likes count. If you are in the followers or the friends list, it will only contain a read-only edit box with the information in the focused item and a close button.
|
||||
* View address: If the selected tweet has geographical information, TWBlue may display a dialogue box where you can read the tweet address. This address is retrieved by sending the geographical coordinates of the tweet to Google maps.
|
||||
* View conversation: If you are focusing a tweet with a mention, it opens a buffer where you can view the whole conversation.
|
||||
* Read text in pictures: Attempt to apply OCR technology to the image attached to the tweet. The result will be displayed in another dialog.
|
||||
* Delete: permanently removes the tweet or direct message which has focus from Twitter and from your lists. Bear in mind that Twitter only allows you to delete tweets you have posted yourself.
|
||||
|
||||
##### User menu
|
||||
@@ -148,7 +149,7 @@ Visually, Towards the top of the main application window, can be found a menu ba
|
||||
* Remove from list: lets you remove a user from a list.
|
||||
* View lists: Shows the lists created by a specified user.
|
||||
* Show user profile: opens a dialogue with the profile of the specified user.
|
||||
* View favourites: Opens a buffer where you can see the tweets which have been favourited by a particular user.
|
||||
* View likes: Opens a buffer where you can see the tweets which have been liked by a particular user.
|
||||
|
||||
##### Buffer menu
|
||||
|
||||
@@ -159,13 +160,18 @@ Visually, Towards the top of the main application window, can be found a menu ba
|
||||
* Clear buffer: Deletes all items from the buffer.
|
||||
* Destroy: dismisses the list you're on.
|
||||
|
||||
##### Audio menu
|
||||
|
||||
* Play/pause: try to play audio for the selected item (if available), or stop the currently played audio.
|
||||
* Seek back 5 seconds: If an audio is being played, seek 5 seconds back in the playback. This will work only in audio files. This feature cannot be used in radio stations or other streamed files.
|
||||
* Seek forward 5 seconds: If an audio is being played, seek 5 seconds forward in the playback. This feature cannot be used in radio stations or other streamed files.
|
||||
|
||||
##### Help menu
|
||||
|
||||
* Documentation: opens up this file, where you can read some useful program concepts.
|
||||
* Sounds tutorial: Opens a dialog box where you can familiarize yourself with the different sounds of the program.
|
||||
* What's new in this version?: opens up a document with the list of changes from the current version to the earliest.
|
||||
* Check for updates: every time you open the program it automatically checks for new versions. If an update is available, it will ask you if you want to download the update. If you accept, the updating process will commence. When complete, TWBlue will be restarted. This item checks for new updates without having to restart the application.
|
||||
* Report an error: opens up a dialogue box to report a bug by completing a small number of fields. Pressing enter will send the report. If the operation doesn't succeed the program will display a warning.
|
||||
* TWBlue's website: visit our [home page](http://twblue.es) where you can find all relevant information and downloads for TWBlue and become a part of the community.
|
||||
* About TWBlue: shows the credits of the program.
|
||||
|
||||
@@ -186,8 +192,8 @@ The next section contains a list of keyboard shortcuts for both interfaces. Bear
|
||||
* Control + R: Reply / mention.
|
||||
* Control + Shift + R: Retweet.
|
||||
* Control + D: Send a direct message.
|
||||
* control + F: Add tweet to favourites.
|
||||
* Control + Shift + F: Remove a tweet from favourites.
|
||||
* control + F: Add tweet to likes.
|
||||
* Control + Shift + F: Remove a tweet from likes.
|
||||
* Control + S: Open the user actions dialogue.
|
||||
* Control + Shift + V: Show tweet.
|
||||
* Control + Q: Quit this program.
|
||||
@@ -201,6 +207,8 @@ The next section contains a list of keyboard shortcuts for both interfaces. Bear
|
||||
|
||||
### Shortcuts of the invisible interface (default keymap)
|
||||
|
||||
The invisible interface of TWBlue can be customised by using a keymap. Every keymap defines a set of keystrokes to be used along with the invisible interface. You can change the keymap in the global settings dialogue, under the application menu in the menu bar, and check or edit keystrokes for the selected keymap in the keystroke editor, also available in the application menu.
|
||||
|
||||
* Control + Windows + Up Arrow: moves to the previous item in the buffer.
|
||||
* Control + Windows + Down Arrow: moves to the next item in the buffer.
|
||||
* Control + Windows + Left Arrow: Move to the previous buffer.
|
||||
@@ -247,6 +255,7 @@ The next section contains a list of keyboard shortcuts for both interfaces. Bear
|
||||
* Control + Windows + Shift + G: Display the tweet's geolocation in a dialogue.
|
||||
* Control + Windows + T: Create a trending topics' buffer.
|
||||
* Control + Windows + {: Find a string in the current buffer.
|
||||
* Alt + Windows + O: Extracts text from the picture and display the result in a dialog.
|
||||
|
||||
## Configuration
|
||||
|
||||
@@ -266,7 +275,7 @@ As described above, this application has two configuration dialogues, the global
|
||||
|
||||
#### buffers tab
|
||||
|
||||
This tab displays a list for each buffer you have available in TWBlue, except for searches, timelines, favourites' timelines and lists. You can show, hide and move them.
|
||||
This tab displays a list for each buffer you have available in TWBlue, except for searches, timelines, likes' timelines and lists. You can show, hide and move them.
|
||||
|
||||
#### The ignored clients tab
|
||||
|
||||
@@ -297,7 +306,7 @@ This dialogue allows you to configure some settings which will affect the entire
|
||||
|
||||
#### Proxi tab
|
||||
|
||||
In this tab you can configure TWBlue to use a Proxy server by completing the fields displayed (server, port, user and password).
|
||||
In this tab you can configure TWBlue to use a Proxy server by completing the fields displayed (type, server, port, user and password).
|
||||
|
||||
## License, source code and donations
|
||||
|
||||
@@ -305,40 +314,40 @@ Tw Blue is free software, licensed under the GNU GPL license, either version 2 o
|
||||
|
||||
The source code of the program is available on GitHub at <https://www.github.com/manuelcortez/twblue>.
|
||||
|
||||
If you want to donate to the project, you can do so at <http://twblue.es/?q=node/3&language=en>. Thank you for your support!
|
||||
If you want to donate to the project, you can do so at <https://twblue.es/donate>. Thank you for your support!
|
||||
|
||||
## Contact
|
||||
|
||||
If you still have questions after reading this document, if you wish to collaborate to the project in some other way, or if you simply want to get in touch with the application developer, follow the Twitter account [@tw\_blue2](https://twitter.com/tw_blue2) or [@manuelcortez00.](https://twitter.com/manuelcortez00) You can also visit [our website](http://twblue.es)
|
||||
If you still have questions after reading this document, if you wish to collaborate to the project in some other way, or if you simply want to get in touch with the application developer, follow the Twitter account [@tw\_blue2](https://twitter.com/tw_blue2) or [@manuelcortez00.](https://twitter.com/manuelcortez00) You can also visit [our website](https://twblue.es)
|
||||
|
||||
## Credits
|
||||
|
||||
TWBlue is developed and mantained by [Manuel Cortéz](https://twitter.com/manuelcortez00) and [José Manuel Delicado](https://twitter.com/jmdaweb). It's supported and sponsored by [Technow S. L.](https://twitter.com/technow)
|
||||
TWBlue is developed and maintained by [Manuel Cortéz](https://twitter.com/manuelcortez00) and [José Manuel Delicado](https://twitter.com/jmdaweb).
|
||||
|
||||
We would also like to thank the translators of TWBlue, who have allowed the spreading of the application.
|
||||
|
||||
* English: [Manuel Cortéz](https://twitter.com/manuelcortez00).
|
||||
* Arabic: [Mohammed Al Shara](https://twitter.com/mohammed0204).
|
||||
* Catalan: [Francisco Torres](https://twitter.com/ftgalleg)
|
||||
* Spanish: [Manuel Cortéz](https://twitter.com/manuelcortez00).
|
||||
* Arabic: [Mohammed Al Shara,](https://twitter.com/mohammed0204) [Hatoun Felemban](https://twitter.com/HatounFelemban)
|
||||
* Basque: [Sukil Etxenike](https://twitter.com/sukil2011).
|
||||
* Catalan: [Francisco Torres](https://twitter.com/ftgalleg)
|
||||
* Croatian: [Zvonimir Stanečić](https://twitter.com/zvonimirek222).
|
||||
* English: [Manuel Cortéz](https://twitter.com/manuelcortez00).
|
||||
* Finnish: [Jani Kinnunen](https://twitter.com/jani_kinnunen).
|
||||
* French: [Rémi Ruiz](https://twitter.com/blindhelp38).
|
||||
* French: [Rémy Ruiz](https://twitter.com/blindhelp38).
|
||||
* Galician: [Juan Buño](https://twitter.com/Quetzatl_).
|
||||
* German: [Steffen Schultz](https://twitter.com/schulle4u).
|
||||
* Croatian: [Zvonimir Stanečić](https://twitter.com/zvonimirek222).
|
||||
* Hungarian: Robert Osztolykan.
|
||||
* Italian: [Christian Leo Mameli](https://twitter.com/llajta2012).
|
||||
* Japanese: [Riku](https://twitter.com/riku_sub001)
|
||||
* Japanese: [Riku](https://twitter.com/_riku02)
|
||||
* Polish: [Pawel Masarczyk.](https://twitter.com/Piciok)
|
||||
* Portuguese: Odenilton Júnior Santos.
|
||||
* Romanian: [Florian Ionașcu](https://twitter.com/7ro) and [Răzvan Ciule](https://twitter.com/pilgrim89)
|
||||
* Russian: [Наталья Хедлунд](https://twitter.com/Lifestar_n).
|
||||
* Portuguese: [Odenilton Júnior Santos.](https://twitter.com/romaleif)
|
||||
* Romanian: [Florian Ionașcu](https://twitter.com/florianionascu7) and [Nicușor Untilă](https://twitter.com/dj_storm2001)
|
||||
* Russian: [Наталья Хедлунд](https://twitter.com/Lifestar_n) and [Валерия Кузнецова](https://twitter.com/ValeriaK305).
|
||||
* Serbian: [Aleksandar Đurić](https://twitter.com/sokodtreshnje)
|
||||
* Spanish: [Manuel Cortéz](https://twitter.com/manuelcortez00).
|
||||
* Turkish: [Burak Yüksek](https://twitter.com/burakyuksek).
|
||||
|
||||
Many thanks also to the people who worked on the documentation. Initially, [Manuel Cortez](https://twitter.com/manuelcortez00) did the documentation in Spanish, and translated to English by [Bryner Villalobos](https://twitter.com/Bry_StarkCR), [Robert Spangler](https://twitter.com/glasscity1837), [Sussan Rey](https://twitter.com/sussanrey17), [Anibal Hernandez](https://twitter.com/anibalmetal), and [Holly Scott-Gardner](https://twitter.com/holly1994). It was updated by [Sukil Etxenike](https://twitter.com/sukil2011), with some valuable corrections by [Brian Hartgen](https://twitter.com/brianhartgen) and [Bill Dengler](https://twitter.com/codeofdusk).
|
||||
Many thanks also to the people who worked on the documentation. Initially, [Manuel Cortez](https://twitter.com/manuelcortez00) did the documentation in Spanish, and translated to English by [Bryner Villalobos](https://twitter.com/Bry_StarkCR), [Robert Spangler](https://twitter.com/glasscity1837), [Sussan Rey](https://twitter.com/sussanrey17), [Anibal Hernandez](https://twitter.com/AnimalMetal), and [Holly Scott-Gardner](https://twitter.com/CatchTheseWords). It was updated by [Sukil Etxenike](https://twitter.com/sukil2011), with some valuable corrections by [Brian Hartgen](https://twitter.com/brianhartgen) and [Bill Dengler](https://twitter.com/codeofdusk).
|
||||
|
||||
------------------------------------------------------------------------
|
||||
|
||||
Copyright © 2013-2016. Manuel Cortéz
|
||||
Copyright © 2013-2017. Manuel Cortéz
|
@@ -1,6 +1,6 @@
|
||||
[Format]
|
||||
Type=PortableApps.comFormat
|
||||
Version=3.4
|
||||
Version=3.5
|
||||
|
||||
[Details]
|
||||
Name=tw blue portable
|
||||
@@ -20,8 +20,8 @@ CommercialUse=true
|
||||
EULAVersion=2
|
||||
|
||||
[Version]
|
||||
PackageVersion=0.86.0.0
|
||||
DisplayVersion=0.86
|
||||
PackageVersion=0.94.0.0
|
||||
DisplayVersion=0.94
|
||||
|
||||
[Control]
|
||||
Icons=1
|
||||
|
31
requirements.txt
Normal file
31
requirements.txt
Normal file
@@ -0,0 +1,31 @@
|
||||
wxpython
|
||||
six
|
||||
configobj
|
||||
markdown
|
||||
future
|
||||
requests
|
||||
oauthlib
|
||||
requests-oauthlib
|
||||
requests-toolbelt
|
||||
pypubsub==3.3.0
|
||||
pygeocoder
|
||||
arrow
|
||||
python-dateutil
|
||||
futures
|
||||
winpaths
|
||||
PySocks
|
||||
win_inet_pton
|
||||
yandex.translate
|
||||
idna
|
||||
chardet
|
||||
urllib3
|
||||
youtube-dl
|
||||
python-vlc
|
||||
pypiwin32
|
||||
certifi
|
||||
backports.functools_lru_cache
|
||||
git+https://github.com/manuelcortez/twython
|
||||
git+https://github.com/manuelcortez/libloader
|
||||
git+https://github.com/manuelcortez/platform_utils
|
||||
git+https://github.com/manuelcortez/accessible_output2
|
||||
git+https://github.com/chrisnorman7/sound_lib
|
@@ -1,7 +1,9 @@
|
||||
!include "MUI2.nsh"
|
||||
!include "LogicLib.nsh"
|
||||
!include "x64.nsh"
|
||||
Unicode true
|
||||
CRCCheck on
|
||||
ManifestSupportedOS all
|
||||
XPStyle on
|
||||
Name "TWBlue"
|
||||
OutFile "TWBlue_setup.exe"
|
||||
@@ -12,10 +14,11 @@ SetCompress auto
|
||||
SetCompressor /solid lzma
|
||||
SetDatablockOptimize on
|
||||
VIAddVersionKey ProductName "TWBlue"
|
||||
VIAddVersionKey LegalCopyright "Copyright 2016 Manuel Cortéz."
|
||||
VIAddVersionKey ProductVersion "0.86"
|
||||
VIAddVersionKey FileVersion "0.86"
|
||||
VIProductVersion "0.86.0.0"
|
||||
VIAddVersionKey LegalCopyright "Copyright 2018 Manuel Cortéz."
|
||||
VIAddVersionKey ProductVersion "0.94"
|
||||
VIAddVersionKey FileVersion "0.94"
|
||||
VIProductVersion "0.94.0.0"
|
||||
VIFileVersion "0.94.0.0"
|
||||
!insertmacro MUI_PAGE_WELCOME
|
||||
!define MUI_LICENSEPAGE_RADIOBUTTONS
|
||||
!insertmacro MUI_PAGE_LICENSE "license.txt"
|
||||
@@ -69,10 +72,10 @@ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "D
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall" "InstallLocation" $INSTDIR
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall" "Publisher" "Manuel Cortéz"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "DisplayVersion" "0.86"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "DisplayVersion" "0.94"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "URLInfoAbout" "http://twblue.es"
|
||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "VersionMajor" 0
|
||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "VersionMinor" 86
|
||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "VersionMinor" 94
|
||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "NoModify" 1
|
||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "NoRepair" 1
|
||||
SectionEnd
|
||||
|
@@ -9,11 +9,11 @@ relative_times = boolean(default=True)
|
||||
max_api_calls = integer(default=1)
|
||||
max_tweets_per_call = integer(default=100)
|
||||
reverse_timelines = boolean(default=False)
|
||||
time_to_check_streams = integer(default=30)
|
||||
announce_stream_status = boolean(default=True)
|
||||
retweet_mode = string(default="ask")
|
||||
persist_size = integer(default=0)
|
||||
buffer_order = list(default=list('home','mentions','dm','sent_dm','sent_tweets','favorites','followers','friends','blocks','muted','events'))
|
||||
show_screen_names = boolean(default=False)
|
||||
buffer_order = list(default=list('home','mentions', 'dm', 'sent_dm', 'sent_tweets','favorites','followers','friends','blocks','muted','events'))
|
||||
|
||||
[sound]
|
||||
volume = float(default=1.0)
|
||||
@@ -21,6 +21,9 @@ input_device = string(default="Default")
|
||||
output_device = string(default="Default")
|
||||
session_mute = boolean(default=False)
|
||||
current_soundpack = string(default="default")
|
||||
indicate_audio = boolean(default=True)
|
||||
indicate_geo = boolean(default=True)
|
||||
indicate_img = boolean(default=True)
|
||||
sndup_api_key = string(default="")
|
||||
|
||||
[other_buffers]
|
||||
@@ -38,4 +41,10 @@ autoread_buffers = list(default=list(mentions, direct_messages, events))
|
||||
spelling_language = string(default="")
|
||||
save_followers_in_autocompletion_db = boolean(default=False)
|
||||
save_friends_in_autocompletion_db = boolean(default=False)
|
||||
twishort_enabled = boolean(default=False)
|
||||
ocr_language = string(default="")
|
||||
|
||||
[reporting]
|
||||
braille_reporting = boolean(default=True)
|
||||
speech_reporting = boolean(default=True)
|
||||
|
||||
[filters]
|
||||
|
@@ -1,33 +0,0 @@
|
||||
from __future__ import absolute_import
|
||||
import ctypes
|
||||
import os
|
||||
import types
|
||||
from platform_utils import paths
|
||||
|
||||
def load_library(libname, cdll=False):
|
||||
if paths.is_frozen():
|
||||
libfile = os.path.join(paths.embedded_data_path(), 'accessible_output2', 'lib', libname)
|
||||
else:
|
||||
libfile = os.path.join(paths.module_path(), 'lib', libname)
|
||||
if cdll:
|
||||
return ctypes.cdll[libfile]
|
||||
else:
|
||||
return ctypes.windll[libfile]
|
||||
|
||||
def get_output_classes():
|
||||
from . import outputs
|
||||
module_type = types.ModuleType
|
||||
classes = [m.output_class for m in outputs.__dict__.values() if type(m) == module_type and hasattr(m, 'output_class')]
|
||||
return sorted(classes, key=lambda c: c.priority)
|
||||
|
||||
def find_datafiles():
|
||||
import os
|
||||
import platform
|
||||
from glob import glob
|
||||
import accessible_output2
|
||||
if platform.system() != 'Windows':
|
||||
return []
|
||||
path = os.path.join(accessible_output2.__path__[0], 'lib', '*.dll')
|
||||
results = glob(path)
|
||||
dest_dir = os.path.join('accessible_output2', 'lib')
|
||||
return [(dest_dir, results)]
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,20 +0,0 @@
|
||||
from __future__ import absolute_import
|
||||
import platform
|
||||
if platform.system() == 'Windows':
|
||||
from . import nvda
|
||||
from . import jaws
|
||||
from . import sapi5
|
||||
from . import window_eyes
|
||||
from . import system_access
|
||||
from . import dolphin
|
||||
from . import pc_talker
|
||||
#import sapi4
|
||||
|
||||
if platform.system() == 'Darwin':
|
||||
from . import voiceover
|
||||
from . import say
|
||||
|
||||
if platform.system() == 'Linux':
|
||||
from . import e_speak
|
||||
|
||||
from . import auto
|
@@ -1,40 +0,0 @@
|
||||
from __future__ import absolute_import
|
||||
import accessible_output2
|
||||
from .base import Output, OutputError
|
||||
|
||||
class Auto(Output):
|
||||
|
||||
def __init__(self):
|
||||
output_classes = accessible_output2.get_output_classes()
|
||||
self.outputs = []
|
||||
for output in output_classes:
|
||||
try:
|
||||
self.outputs.append(output())
|
||||
except OutputError:
|
||||
pass
|
||||
|
||||
def get_first_available_output(self):
|
||||
for output in self.outputs:
|
||||
if output.is_active():
|
||||
return output
|
||||
return None
|
||||
|
||||
def speak(self, *args, **kwargs):
|
||||
output = self.get_first_available_output()
|
||||
if output:
|
||||
output.speak(*args, **kwargs)
|
||||
|
||||
def braille(self, *args, **kwargs):
|
||||
output = self.get_first_available_output()
|
||||
if output:
|
||||
output.braille(*args, **kwargs)
|
||||
|
||||
def output(self, *args, **kwargs):
|
||||
output = self.get_first_available_output()
|
||||
if output:
|
||||
output.speak(*args, **kwargs)
|
||||
|
||||
def is_system_output(self):
|
||||
output = self.get_first_available_output()
|
||||
if output:
|
||||
return output.is_system_output()
|
@@ -1,47 +0,0 @@
|
||||
from accessible_output2 import load_library
|
||||
import platform
|
||||
|
||||
class OutputError(Exception):
|
||||
pass
|
||||
|
||||
class Output(object):
|
||||
name = "Unnamed Output"
|
||||
lib32 = None
|
||||
lib64 = None
|
||||
argtypes = {}
|
||||
cdll = False
|
||||
priority = 100
|
||||
system_output = False
|
||||
|
||||
def __init__(self):
|
||||
self.is_32bit = platform.architecture()[0] == "32bit"
|
||||
if self.lib32 and self.is_32bit:
|
||||
self.lib = load_library(self.lib32, cdll=self.cdll)
|
||||
elif self.lib64:
|
||||
self.lib = load_library(self.lib64, cdll=self.cdll)
|
||||
else:
|
||||
self.lib = None
|
||||
if self.lib is not None:
|
||||
for func in self.argtypes:
|
||||
try:
|
||||
getattr(self.lib, func).argtypes = self.argtypes[func]
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
def output(self, text, **options):
|
||||
output = False
|
||||
if self.speak(text, **options):
|
||||
output = True
|
||||
if self.braille(text, **options):
|
||||
output = True
|
||||
if not output:
|
||||
raise RuntimeError("Output %r does not have any method defined to output" % self)
|
||||
|
||||
def is_system_output(self):
|
||||
return self.system_output
|
||||
|
||||
def speak(self, **optiont):
|
||||
return False
|
||||
|
||||
def braille(self, *args, **options):
|
||||
return False
|
@@ -1,33 +0,0 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
import ctypes
|
||||
|
||||
from .base import Output
|
||||
|
||||
class Dolphin (Output):
|
||||
"""Supports dolphin products."""
|
||||
|
||||
name = 'Dolphin'
|
||||
lib32 = 'dolapi.dll'
|
||||
argtypes = {
|
||||
'DolAccess_Command': (ctypes.c_wchar_p, ctypes.c_int, ctypes.c_int),
|
||||
'DolAccess_Action': (ctypes.c_int,),
|
||||
}
|
||||
|
||||
def speak(self, text, interrupt=0):
|
||||
if interrupt:
|
||||
self.silence()
|
||||
#If we don't call this, the API won't let us speak.
|
||||
if self.is_active():
|
||||
self.lib.DolAccess_Command(text, (len(text)*2)+2, 1)
|
||||
|
||||
def silence(self):
|
||||
self.lib.DolAccess_Action(141)
|
||||
|
||||
def is_active(self):
|
||||
try:
|
||||
return self.lib.DolAccess_GetSystem() in (1, 4, 8)
|
||||
except:
|
||||
return False
|
||||
|
||||
output_class = Dolphin
|
@@ -1,31 +0,0 @@
|
||||
from __future__ import absolute_import
|
||||
from .base import Output
|
||||
|
||||
try:
|
||||
import espeak.core
|
||||
except:
|
||||
raise RuntimeError("Cannot find espeak.core. Please install python-espeak")
|
||||
|
||||
class ESpeak(Output):
|
||||
"""Speech output supporting ESpeak on Linux
|
||||
Note this requires python-espeak to be installed
|
||||
This can be done on Debian distros by using apt-get install python-espeak
|
||||
Or through this tarball: https://launchpad.net/python-espeak
|
||||
"""
|
||||
name = "Linux ESpeak"
|
||||
|
||||
def is_active(self):
|
||||
try:
|
||||
import espeak.core
|
||||
except:
|
||||
return False
|
||||
return True
|
||||
|
||||
def speak(self, text, interrupt = 0):
|
||||
if interrupt:
|
||||
self.silence()
|
||||
espeak.core.synth(text)
|
||||
def silence(self):
|
||||
espeak.core.cancel()
|
||||
|
||||
output_class = ESpeak
|
@@ -1,34 +0,0 @@
|
||||
from __future__ import absolute_import
|
||||
import win32gui
|
||||
from libloader.com import load_com
|
||||
import pywintypes
|
||||
|
||||
from .base import Output, OutputError
|
||||
|
||||
class Jaws (Output):
|
||||
"""Output supporting the Jaws for Windows screen reader."""
|
||||
|
||||
name = 'jaws'
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super (Jaws, self).__init__(*args, **kwargs)
|
||||
try:
|
||||
self.object = load_com("FreedomSci.JawsApi", "jfwapi")
|
||||
except pywintypes.com_error:
|
||||
raise OutputError
|
||||
|
||||
def braille(self, text, **options):
|
||||
# HACK: replace " with ', Jaws doesn't seem to understand escaping them with \
|
||||
text = text.replace('"', "'")
|
||||
self.object.RunFunction("BrailleString(\"%s\")" % text)
|
||||
|
||||
def speak(self, text, interrupt=False):
|
||||
self.object.SayString(' %s' % text, interrupt)
|
||||
|
||||
def is_active(self):
|
||||
try:
|
||||
return self.object.SayString('',0) == True or win32gui.FindWindow("JFWUI2", "JAWS") != 0
|
||||
except:
|
||||
return False
|
||||
|
||||
output_class = Jaws
|
@@ -1,37 +0,0 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
import platform
|
||||
import ctypes
|
||||
|
||||
from platform_utils import paths
|
||||
from libloader import load_library
|
||||
from .base import Output
|
||||
|
||||
class NVDA(Output):
|
||||
"""Supports The NVDA screen reader"""
|
||||
name = "NVDA"
|
||||
lib32 = 'nvdaControllerClient32.dll'
|
||||
lib64 = 'nvdaControllerClient64.dll'
|
||||
argtypes = {
|
||||
'nvdaController_brailleMessage': (ctypes.c_wchar_p,),
|
||||
'nvdaController_speakText': (ctypes.c_wchar_p,),
|
||||
}
|
||||
|
||||
def is_active(self):
|
||||
try:
|
||||
return self.lib.nvdaController_testIfRunning() == 0
|
||||
except:
|
||||
return False
|
||||
|
||||
def braille(self, text, **options):
|
||||
self.lib.nvdaController_brailleMessage(text)
|
||||
|
||||
def speak(self, text, interrupt=False):
|
||||
if interrupt:
|
||||
self.silence()
|
||||
self.lib.nvdaController_speakText(text)
|
||||
|
||||
def silence(self):
|
||||
self.lib.nvdaController_cancelSpeech()
|
||||
|
||||
output_class = NVDA
|
@@ -1,24 +0,0 @@
|
||||
from __future__ import absolute_import
|
||||
import ctypes
|
||||
from .base import Output
|
||||
|
||||
class PCTalker(Output):
|
||||
lib32 = 'pctkusr.dll'
|
||||
lib64 = 'pctkusr64.dll'
|
||||
cdll = True
|
||||
argtypes = {
|
||||
'PCTKPRead': (ctypes.c_char_p, ctypes.c_int, ctypes.c_int)
|
||||
}
|
||||
|
||||
def speak(self, text, interrupt=False):
|
||||
if interrupt:
|
||||
self.silence()
|
||||
self.lib.PCTKPRead(text.encode('cp932', 'replace'), 0, 1)
|
||||
|
||||
def silence(self):
|
||||
self.lib.PCTKVReset()
|
||||
|
||||
def is_active(self):
|
||||
return self.lib.PCTKStatus() != 0
|
||||
|
||||
output_class = PCTalker
|
@@ -1,143 +0,0 @@
|
||||
from __future__ import absolute_import
|
||||
from builtins import range
|
||||
from libloader.com import load_com
|
||||
from .base import Output
|
||||
|
||||
import logging
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
class Sapi4(Output):
|
||||
|
||||
name = 'sapi4'
|
||||
priority = 102
|
||||
|
||||
def __init__(self):
|
||||
sapi4 = load_com("{EEE78591-FE22-11D0-8BEF-0060081841DE}")
|
||||
self._voiceNo = sapi4.Find(0)
|
||||
sapi4.Select(self._voiceNo)
|
||||
sapi4.Speak(" ")
|
||||
self.__object = sapi4
|
||||
self._voice_list = self._available_voices()
|
||||
|
||||
def _set_capabilities(self):
|
||||
sapi4 = self.__object
|
||||
try:
|
||||
sapi4.Pitch = sapi4.Pitch
|
||||
self._min_pitch = sapi4.MinPitch
|
||||
self._max_pitch = sapi4.MaxPitch
|
||||
self._has_pitch = True
|
||||
except:
|
||||
self._min_pitch = 0
|
||||
self._max_pitch = 0
|
||||
self._has_pitch = False
|
||||
try:
|
||||
sapi4.Speed = sapi4.Speed
|
||||
self._min_rate = sapi4.MinSpeed
|
||||
self._max_rate = sapi4.MaxSpeed
|
||||
self._has_rate = True
|
||||
except:
|
||||
self._min_rate = 0
|
||||
self._max_rate = 0
|
||||
self._has_rate = False
|
||||
try:
|
||||
sapi4.VolumeLeft = sapi4.VolumeLeft
|
||||
self._min_volume = sapi4.MinVolumeLeft
|
||||
self._max_volume = sapi4.MaxVolumeLeft
|
||||
self._has_volume = True
|
||||
except:
|
||||
self._min_volume = 0
|
||||
self._max_volume = 0
|
||||
self._has_volume = False
|
||||
|
||||
def _available_voices(self):
|
||||
voice_list = []
|
||||
for voice_no in range(1, self.__object.CountEngines):
|
||||
voice_list.append(self.__object.ModeName(voice_no))
|
||||
return voice_list
|
||||
|
||||
@property
|
||||
def available_voices(self):
|
||||
return self._voice_list
|
||||
|
||||
def list_voices(self):
|
||||
return self.available_voices
|
||||
|
||||
def get_voice(self):
|
||||
return self.__object.ModeName(self._voice_no)
|
||||
|
||||
def set_voice(self, value):
|
||||
self._voice_no = self.list_voices().index(value) + 1
|
||||
self.__object.Select(self._voice_no)
|
||||
self.silence()
|
||||
self.__object.Speak(" ")
|
||||
self._set_capabilities()
|
||||
|
||||
def get_pitch(self):
|
||||
if self.has_pitch:
|
||||
return self.__object.Pitch
|
||||
|
||||
def set_pitch(self, value):
|
||||
if self.has_pitch:
|
||||
self.__object.Pitch = value
|
||||
|
||||
def get_rate(self):
|
||||
if self.has_rate:
|
||||
return self.__object.Speed
|
||||
|
||||
def set_rate(self, value):
|
||||
if self.has_rate:
|
||||
self.__object.Speed = value
|
||||
|
||||
def get_volume(self):
|
||||
if self.has_volume:
|
||||
return self.__object.VolumeLeft
|
||||
|
||||
def set_volume(self, value):
|
||||
if self.has_volume:
|
||||
self.__object.VolumeLeft = value
|
||||
|
||||
@property
|
||||
def has_pitch(self):
|
||||
return self._has_pitch
|
||||
|
||||
@property
|
||||
def has_rate(self):
|
||||
return self._has_rate
|
||||
|
||||
@property
|
||||
def has_volume(self):
|
||||
return self._has_volume
|
||||
|
||||
@property
|
||||
def min_pitch(self):
|
||||
return self._min_pitch
|
||||
|
||||
@property
|
||||
def max_pitch(self):
|
||||
return self._max_pitch
|
||||
|
||||
@property
|
||||
def min_rate(self):
|
||||
return self._min_rate
|
||||
|
||||
@property
|
||||
def max_rate(self):
|
||||
return self._max_rate
|
||||
|
||||
@property
|
||||
def min_volume(self):
|
||||
return self._min_volume
|
||||
|
||||
@property
|
||||
def max_volume(self):
|
||||
return self._max_volume
|
||||
|
||||
def speak(self, text, interrupt=False):
|
||||
if interrupt:
|
||||
self.silence()
|
||||
self.__object.Speak(text)
|
||||
|
||||
def silence(self):
|
||||
self.__object.AudioReset()
|
||||
|
||||
output_class = Sapi4
|
@@ -1,95 +0,0 @@
|
||||
from __future__ import absolute_import
|
||||
from collections import OrderedDict
|
||||
from libloader.com import load_com
|
||||
from .base import Output, OutputError
|
||||
import pywintypes
|
||||
import logging
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
SVSFDefault = 0
|
||||
SVSFlagsAsync = 1
|
||||
SVSFPurgeBeforeSpeak = 2
|
||||
SVSFIsFilename = 4
|
||||
SVSFIsXML = 8
|
||||
SVSFIsNotXML = 16
|
||||
SVSFPersistXML = 32
|
||||
|
||||
class SAPI5(Output):
|
||||
has_volume = True
|
||||
has_rate = True
|
||||
has_pitch = True
|
||||
min_pitch = -10
|
||||
max_pitch = 10
|
||||
min_rate = -10
|
||||
max_rate = 10
|
||||
min_volume = 0
|
||||
max_volume = 100
|
||||
name = "sapi5"
|
||||
priority = 101
|
||||
system_output = True
|
||||
|
||||
def __init__(self):
|
||||
try:
|
||||
self.object = load_com("SAPI.SPVoice")
|
||||
self._voices = self._available_voices()
|
||||
except pywintypes.com_error:
|
||||
raise OutputError
|
||||
self._pitch = 0
|
||||
|
||||
def _available_voices(self):
|
||||
_voices = OrderedDict()
|
||||
for v in self.object.GetVoices():
|
||||
_voices[v.GetDescription()] = v
|
||||
return _voices
|
||||
|
||||
def list_voices(self):
|
||||
return list(self._voices.keys())
|
||||
|
||||
def get_voice(self):
|
||||
return self.object.Voice.GetDescription()
|
||||
|
||||
def set_voice(self, value):
|
||||
log.debug("Setting SAPI5 voice to \"%s\"" % value)
|
||||
self.object.Voice = self._voices[value]
|
||||
# For some reason SAPI5 does not reset audio after changing the voice
|
||||
# By setting the audio device after changing voices seems to fix this
|
||||
# This was noted from information at:
|
||||
# http://lists.nvaccess.org/pipermail/nvda-dev/2011-November/022464.html
|
||||
self.object.AudioOutput = self.object.AudioOutput
|
||||
|
||||
def get_pitch(self):
|
||||
return self._pitch
|
||||
|
||||
def set_pitch(self, value):
|
||||
log.debug("Setting pitch to %d" % value)
|
||||
self._pitch = value
|
||||
|
||||
def get_rate(self):
|
||||
return self.object.Rate
|
||||
|
||||
def set_rate(self, value):
|
||||
log.debug("Setting rate to %d" % value)
|
||||
self.object.Rate = value
|
||||
|
||||
def get_volume(self):
|
||||
return self.object.Volume
|
||||
|
||||
def set_volume(self, value):
|
||||
self.object.Volume = value
|
||||
|
||||
def speak(self, text, interrupt=False):
|
||||
if interrupt:
|
||||
self.silence()
|
||||
# We need to do the pitch in XML here
|
||||
textOutput = "<pitch absmiddle=\"%d\">%s</pitch>" % (round(self._pitch), text.replace("<", "<"))
|
||||
self.object.Speak(textOutput, SVSFlagsAsync | SVSFIsXML)
|
||||
|
||||
def silence(self):
|
||||
self.object.Speak("", SVSFlagsAsync | SVSFPurgeBeforeSpeak)
|
||||
|
||||
def is_active(self):
|
||||
if self.object:
|
||||
return True
|
||||
return False
|
||||
|
||||
output_class = SAPI5
|
@@ -1,21 +0,0 @@
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
from .base import Output
|
||||
|
||||
class AppleSay(Output):
|
||||
"""Speech output supporting the Apple Say subsystem."""
|
||||
name = 'Apple Say'
|
||||
def __init__(self, voice = 'Alex', rate = '300'):
|
||||
self.voice = voice
|
||||
self.rate = rate
|
||||
super(AppleSay, self).__init__()
|
||||
def is_active(self):
|
||||
return not os.system('which say')
|
||||
def speak(self, text, interrupt = 0):
|
||||
if interrupt:
|
||||
self.silence()
|
||||
os.system('say -v %s -r %s "%s" &' % (self.voice, self.rate, text))
|
||||
def silence(self):
|
||||
os.system('killall say')
|
||||
|
||||
output_class = AppleSay
|
@@ -1,29 +0,0 @@
|
||||
from __future__ import absolute_import
|
||||
import ctypes
|
||||
from .base import Output
|
||||
|
||||
class SystemAccess (Output):
|
||||
"""Supports System Access and System Access Mobile"""
|
||||
|
||||
name = "System Access"
|
||||
lib32 = 'saapi32.dll'
|
||||
argtypes = {
|
||||
'SA_BrlShowTextW': (ctypes.c_wchar_p,),
|
||||
'SA_SayW': (ctypes.c_wchar_p,),
|
||||
}
|
||||
priority = 99
|
||||
|
||||
def braille(self, text, **options):
|
||||
self.lib.SA_BrlShowTextW(text)
|
||||
|
||||
def speak(self, text, interrupt=False):
|
||||
if self.is_active():
|
||||
self.dll.SA_SayW(str(text))
|
||||
|
||||
def is_active(self):
|
||||
try:
|
||||
return self.dll.SA_IsRunning()
|
||||
except:
|
||||
return False
|
||||
|
||||
output_class = SystemAccess
|
@@ -1 +0,0 @@
|
||||
from __future__ import absolute_import
|
@@ -1,33 +0,0 @@
|
||||
from __future__ import absolute_import
|
||||
import win32gui
|
||||
from libloader.com import load_com
|
||||
from .base import Output, OutputError
|
||||
import pywintypes
|
||||
|
||||
class WindowEyes (Output):
|
||||
"""Speech output supporting the WindowEyes screen reader"""
|
||||
|
||||
name = 'Window-Eyes'
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(WindowEyes, self).__init__(*args, **kwargs)
|
||||
try:
|
||||
self.object = load_com("gwspeak.speak")
|
||||
except pywintypes.com_error:
|
||||
raise OutputError
|
||||
|
||||
def speak(self, text, interrupt=0):
|
||||
if interrupt:
|
||||
self.silence()
|
||||
self.object.SpeakString(text)
|
||||
|
||||
def silence (self):
|
||||
self.object.Silence()
|
||||
|
||||
def is_active(self):
|
||||
try:
|
||||
return win32gui.FindWindow("GWMExternalControl", "External Control") != 0
|
||||
except:
|
||||
return False
|
||||
|
||||
output_class = WindowEyes
|
@@ -5,6 +5,7 @@ ignored_sessions = list(default=list())
|
||||
|
||||
[app-settings]
|
||||
language = string(default="system")
|
||||
update_period = integer(default=2)
|
||||
hide_gui = boolean(default=False)
|
||||
voice_enabled = boolean(default=False)
|
||||
ask_at_exit = boolean(default=True)
|
||||
@@ -17,8 +18,13 @@ log_level = string(default="error")
|
||||
load_keymap = string(default="default.keymap")
|
||||
donation_dialog_displayed = boolean(default=False)
|
||||
check_for_updates = boolean(default=True)
|
||||
remember_mention_and_longtweet = boolean(default=False)
|
||||
longtweet = boolean(default=false)
|
||||
mention_all = boolean(default=False)
|
||||
no_streaming = boolean(default=False)
|
||||
|
||||
[proxy]
|
||||
type = string(default="Direct connection")
|
||||
server = string(default="")
|
||||
port = string(default="")
|
||||
user = string(default="")
|
||||
|
@@ -1,18 +1,21 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import datetime
|
||||
|
||||
name = 'TWBlue'
|
||||
snapshot = False
|
||||
snapshot = True
|
||||
if snapshot == False:
|
||||
version = "0.86"
|
||||
update_url = 'http://twblue.es/updates/twblue_ngen.json'
|
||||
version = "0.94"
|
||||
update_url = 'https://twblue.es/updates/stable.php'
|
||||
mirror_update_url = 'https://raw.githubusercontent.com/manuelcortez/TWBlue/next-gen/updates/stable.json'
|
||||
else:
|
||||
version = "10.99"
|
||||
update_url = 'http://twblue.es/updates/snapshots_ngen.json'
|
||||
version = "12"
|
||||
update_url = 'https://twblue.es/updates/snapshot.php'
|
||||
mirror_update_url = 'https://raw.githubusercontent.com/manuelcortez/TWBlue/next-gen/updates/snapshots.json'
|
||||
author = u"Manuel Cortéz"
|
||||
authors = [u"Manuel Cortéz", u"José Manuel Delicado"]
|
||||
authorEmail = "manuel@manuelcortez.net"
|
||||
copyright = u"Copyright (C) 2015, Technow S.L. \nCopyright (C) 2013-2015, Manuel cortéz."
|
||||
copyright = u"Copyright (C) 2013-2018, Manuel cortéz."
|
||||
description = unicode(name+" is an app designed to use Twitter simply and efficiently while using minimal system resources. This app provides access to most Twitter features.")
|
||||
translators = [u"Bryner Villalobos, Bill Dengler (English)", u"Mohammed Al Shara (Arabic)", u"Joan Rabat, Juan Carlos Rivilla (Catalan)", u"Manuel cortéz (Spanish)", u"Sukil Etxenike Arizaleta (Basque)", u"Jani Kinnunen (finnish)", u"Rémy Ruiz (French)", u"Juan Buño (Galician)", u"Steffen Schultz (German)", u"Robert Osztolykan (Hungarian)", u"Paweł Masarczyk (Polish)", u"Odenilton Júnior Santos (Portuguese)", u"Alexander Jaszyn (Russian)", u"Burak (Turkish)"]
|
||||
url = u"http://twblue.es"
|
||||
report_bugs_url = "http://twblue.es/bugs/api/soap/mantisconnect.php?wsdl"
|
||||
translators = [u"Manuel Cortéz (English)", u"Mohammed Al Shara, Hatoun Felemban (Arabic)", u"Francisco Torres (Catalan)", u"Manuel cortéz (Spanish)", u"Sukil Etxenike Arizaleta (Basque)", u"Jani Kinnunen (finnish)", u"Rémy Ruiz (French)", u"Juan Buño (Galician)", u"Steffen Schultz (German)", u"Zvonimir Stanečić (Croatian)", u"Robert Osztolykan (Hungarian)", u"Christian Leo Mameli (Italian)", u"Riku (Japanese)", u"Paweł Masarczyk (Polish)", u"Odenilton Júnior Santos (Portuguese)", u"Florian Ionașcu, Nicușor Untilă (Romanian)", u"Natalia Hedlund, Valeria Kuznetsova (Russian)", u"Aleksandar Đurić (Serbian)", u"Burak Yüksek (Turkish)"]
|
||||
url = u"https://twblue.es"
|
||||
report_bugs_url = "https://github.com/manuelcortez/twblue/issues"
|
||||
supported_languages = []
|
@@ -2,6 +2,7 @@ from audio_services import matches_url
|
||||
import json
|
||||
import re
|
||||
import urllib
|
||||
import youtube_utils
|
||||
|
||||
@matches_url('https://audioboom.com')
|
||||
def convert_audioboom(url):
|
||||
@@ -28,21 +29,16 @@ def convert_soundcloud (url):
|
||||
else:
|
||||
raise TypeError('%r is not streamable' % url)
|
||||
|
||||
@matches_url('http://twup.me')
|
||||
def convert_twup(url):
|
||||
result = re.match("^http://twup.me/(?P<audio_id>[A-Za-z0-9]+/?)$", url, re.I)
|
||||
if not result or result.group("audio_id") is None:
|
||||
raise TypeError('%r is not a valid URL' % url)
|
||||
audio_id = result.group("audio_id")
|
||||
return 'http://twup.me/%s' % audio_id
|
||||
@matches_url ('https://www.youtube.com/watch')
|
||||
def convert_youtube_long (url):
|
||||
return youtube_utils.get_video_url(url)
|
||||
|
||||
#@matches_url('http://sndup.net')
|
||||
#def convert_sndup(url):
|
||||
# result = re.match("^http://sndup.net/(?P<audio_id>[a-z0-9]+/?)(|d|l|a)/?$", url, re.I)
|
||||
# if not result or result.group("audio_id") is None:
|
||||
# raise TypeError('%r is not a valid URL' % url)
|
||||
# audio_id = result.group("audio_id")
|
||||
# return 'http://sndup.net/%s/a' % audio_id
|
||||
@matches_url ('http://anyaudio.net/listen')
|
||||
def convert_anyaudio(url):
|
||||
values = url.split("audio=")
|
||||
if len(values) != 2:
|
||||
raise TypeError('%r is not streamable' % url)
|
||||
return "http://anyaudio.net/audiodownload?audio=%s" % (values[1],)
|
||||
|
||||
def convert_generic_audio(url):
|
||||
return url
|
||||
|
@@ -8,7 +8,7 @@ log = logging.getLogger("config")
|
||||
|
||||
MAINFILE = "twblue.conf"
|
||||
MAINSPEC = "app-configuration.defaults"
|
||||
|
||||
proxyTypes=[u"http", u"https", u"socks4", u"socks5"]
|
||||
app = None
|
||||
keymap=None
|
||||
changed_keymap = False
|
||||
@@ -24,4 +24,4 @@ def setup ():
|
||||
app.write()
|
||||
global changed_keymap
|
||||
changed_keymap = True
|
||||
keymap = config_utils.load_config(paths.config_path("keymap.keymap"), paths.app_path("keymaps/"+app['app-settings']['load_keymap']))
|
||||
keymap = config_utils.load_config(paths.config_path("keymap.keymap"), paths.app_path("keymaps/"+app['app-settings']['load_keymap']), copy=False)
|
||||
|
@@ -8,16 +8,14 @@ log = getLogger("config_utils")
|
||||
|
||||
class ConfigLoadError(Exception): pass
|
||||
|
||||
def load_config(config_path, configspec_path=None, *args, **kwargs):
|
||||
if os.path.exists(config_path):
|
||||
clean_config(config_path)
|
||||
def load_config(config_path, configspec_path=None, copy=True, *args, **kwargs):
|
||||
spec = ConfigObj(configspec_path, encoding='UTF8', list_values=False, _inspec=True)
|
||||
try:
|
||||
config = ConfigObj(infile=config_path, configspec=spec, create_empty=True, encoding='UTF8', *args, **kwargs)
|
||||
except ParseError:
|
||||
raise ConfigLoadError("Unable to load %r" % config_path)
|
||||
validator = Validator()
|
||||
validated = config.validate(validator, preserve_errors=False, copy=True)
|
||||
validated = config.validate(validator, preserve_errors=False, copy=copy)
|
||||
if validated == True:
|
||||
config.write()
|
||||
return config
|
||||
|
7
src/controller/buffers/__init__.py
Normal file
7
src/controller/buffers/__init__.py
Normal file
@@ -0,0 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
""" this package contains logic related to buffers. A buffer is a virtual representation of a group of items retrieved through the Social network API'S.
|
||||
Ideally, new social networks added to TWBlue will have its own "buffers", and these buffers should be defined within this package, following the Twitter example.
|
||||
Currently, the package contains the following modules:
|
||||
* baseBuffers: Define a set of functions and structure to be expected in all buffers. New buffers should inherit its classes from one of the classes present here.
|
||||
* twitterBuffers: All other code, specific to Twitter.
|
||||
"""
|
201
src/controller/buffers/baseBuffers.py
Normal file
201
src/controller/buffers/baseBuffers.py
Normal file
@@ -0,0 +1,201 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
""" Common logic to all buffers in TWBlue."""
|
||||
import logging
|
||||
import wx
|
||||
import output
|
||||
import config
|
||||
import sound
|
||||
import widgetUtils
|
||||
from pubsub import pub
|
||||
from wxUI import buffers
|
||||
|
||||
log = logging.getLogger("controller.buffers.baseBuffers")
|
||||
|
||||
def _items_exist(function):
|
||||
""" A decorator to execute a function only if the selected buffer contains at least one item."""
|
||||
def function_(self, *args, **kwargs):
|
||||
if self.buffer.list.get_count() > 0:
|
||||
function(self, *args, **kwargs)
|
||||
return function_
|
||||
|
||||
class buffer(object):
|
||||
""" A basic buffer object. This should be the base class for all other derived buffers."""
|
||||
|
||||
def __init__(self, parent=None, function=None, session=None, *args, **kwargs):
|
||||
"""Inits the main controller for this buffer:
|
||||
@ parent wx.Treebook object: Container where we will put this buffer.
|
||||
@ function str or None: function to be called periodically and update items on this buffer.
|
||||
@ session sessionmanager.session object or None: Session handler for settings, database and data access.
|
||||
"""
|
||||
super(buffer, self).__init__()
|
||||
self.function = function
|
||||
# Compose_function will be used to render an object on this buffer. Normally, signature is as follows:
|
||||
# compose_function(item, db, relative_times, show_screen_names=False, session=None)
|
||||
# Read more about compose functions in twitter/compose.py.
|
||||
self.compose_function = None
|
||||
self.args = args
|
||||
self.kwargs = kwargs
|
||||
# This will be used as a reference to the wx.Panel object wich stores the buffer GUI.
|
||||
self.buffer = None
|
||||
# This should countains the account associated to this buffer.
|
||||
self.account = ""
|
||||
# This controls whether the start_stream function should be called when starting the program.
|
||||
self.needs_init = True
|
||||
# if this is set to False, the buffer will be ignored on the invisible interface.
|
||||
self.invisible = False
|
||||
# Control variable, used to track time of execution for calls to start_stream.
|
||||
self.execution_time = 0
|
||||
|
||||
def clear_list(self):
|
||||
pass
|
||||
|
||||
def get_event(self, ev):
|
||||
""" Catch key presses in the WX interface and generate the corresponding event names."""
|
||||
if ev.GetKeyCode() == wx.WXK_RETURN and ev.ControlDown(): event = "audio"
|
||||
elif ev.GetKeyCode() == wx.WXK_RETURN: event = "url"
|
||||
elif ev.GetKeyCode() == wx.WXK_F5: event = "volume_down"
|
||||
elif ev.GetKeyCode() == wx.WXK_F6: event = "volume_up"
|
||||
elif ev.GetKeyCode() == wx.WXK_DELETE and ev.ShiftDown(): event = "clear_list"
|
||||
elif ev.GetKeyCode() == wx.WXK_DELETE: event = "destroy_status"
|
||||
else:
|
||||
event = None
|
||||
ev.Skip()
|
||||
if event != None:
|
||||
try:
|
||||
getattr(self, event)()
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
def volume_down(self):
|
||||
""" Decreases volume by 5%"""
|
||||
if self.session.settings["sound"]["volume"] > 0.0:
|
||||
if self.session.settings["sound"]["volume"] <= 0.05:
|
||||
self.session.settings["sound"]["volume"] = 0.0
|
||||
else:
|
||||
self.session.settings["sound"]["volume"] -=0.05
|
||||
sound.URLPlayer.player.audio_set_volume(int(self.session.settings["sound"]["volume"]*100.0))
|
||||
self.session.sound.play("volume_changed.ogg")
|
||||
self.session.settings.write()
|
||||
|
||||
def volume_up(self):
|
||||
""" Increases volume by 5%."""
|
||||
if self.session.settings["sound"]["volume"] < 1.0:
|
||||
if self.session.settings["sound"]["volume"] >= 0.95:
|
||||
self.session.settings["sound"]["volume"] = 1.0
|
||||
else:
|
||||
self.session.settings["sound"]["volume"] +=0.05
|
||||
sound.URLPlayer.player.audio_set_volume(int(self.session.settings["sound"]["volume"]*100))
|
||||
self.session.sound.play("volume_changed.ogg")
|
||||
self.session.settings.write()
|
||||
|
||||
def start_stream(self, mandatory=False, play_sound=True):
|
||||
pass
|
||||
|
||||
def get_more_items(self):
|
||||
output.speak(_(u"This action is not supported for this buffer"), True)
|
||||
|
||||
def put_items_on_list(self, items):
|
||||
pass
|
||||
|
||||
def remove_buffer(self):
|
||||
return False
|
||||
|
||||
def remove_item(self, item):
|
||||
f = self.buffer.list.get_selected()
|
||||
self.buffer.list.remove_item(item)
|
||||
self.buffer.list.select_item(f)
|
||||
|
||||
def bind_events(self):
|
||||
pass
|
||||
|
||||
def get_object(self):
|
||||
return self.buffer
|
||||
|
||||
def get_message(self):
|
||||
pass
|
||||
|
||||
def set_list_position(self, reversed=False):
|
||||
if reversed == False:
|
||||
self.buffer.list.select_item(-1)
|
||||
else:
|
||||
self.buffer.list.select_item(0)
|
||||
|
||||
def reply(self):
|
||||
pass
|
||||
|
||||
def send_message(self):
|
||||
pass
|
||||
|
||||
def share_item(self):
|
||||
pass
|
||||
|
||||
def destroy_status(self):
|
||||
pass
|
||||
|
||||
def post_status(self, *args, **kwargs):
|
||||
pass
|
||||
|
||||
def save_positions(self):
|
||||
try:
|
||||
self.session.db[self.name+"_pos"]=self.buffer.list.get_selected()
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
class accountPanel(buffer):
|
||||
def __init__(self, parent, name, account, account_id):
|
||||
super(accountPanel, self).__init__(parent, None, name)
|
||||
log.debug("Initializing buffer %s, account %s" % (name, account,))
|
||||
self.buffer = buffers.accountPanel(parent, name)
|
||||
self.type = self.buffer.type
|
||||
self.compose_function = None
|
||||
self.session = None
|
||||
self.needs_init = False
|
||||
self.account = account
|
||||
self.buffer.account = account
|
||||
self.name = name
|
||||
self.account_id = account_id
|
||||
|
||||
def setup_account(self):
|
||||
widgetUtils.connect_event(self.buffer, widgetUtils.CHECKBOX, self.autostart, menuitem=self.buffer.autostart_account)
|
||||
if self.account_id in config.app["sessions"]["ignored_sessions"]:
|
||||
self.buffer.change_autostart(False)
|
||||
else:
|
||||
self.buffer.change_autostart(True)
|
||||
if not hasattr(self, "logged"):
|
||||
self.buffer.change_login(login=False)
|
||||
widgetUtils.connect_event(self.buffer.login, widgetUtils.BUTTON_PRESSED, self.logout)
|
||||
else:
|
||||
self.buffer.change_login(login=True)
|
||||
widgetUtils.connect_event(self.buffer.login, widgetUtils.BUTTON_PRESSED, self.login)
|
||||
|
||||
def login(self, *args, **kwargs):
|
||||
del self.logged
|
||||
self.setup_account()
|
||||
pub.sendMessage("login", session_id=self.account_id)
|
||||
|
||||
def logout(self, *args, **kwargs):
|
||||
self.logged = False
|
||||
self.setup_account()
|
||||
pub.sendMessage("logout", session_id=self.account_id)
|
||||
|
||||
def autostart(self, *args, **kwargs):
|
||||
if self.account_id in config.app["sessions"]["ignored_sessions"]:
|
||||
self.buffer.change_autostart(True)
|
||||
config.app["sessions"]["ignored_sessions"].remove(self.account_id)
|
||||
else:
|
||||
self.buffer.change_autostart(False)
|
||||
config.app["sessions"]["ignored_sessions"].append(self.account_id)
|
||||
config.app.write()
|
||||
|
||||
class emptyPanel(buffer):
|
||||
def __init__(self, parent, name, account):
|
||||
super(emptyPanel, self).__init__(parent=parent)
|
||||
log.debug("Initializing buffer %s, account %s" % (name, account,))
|
||||
self.buffer = buffers.emptyPanel(parent, name)
|
||||
self.type = self.buffer.type
|
||||
self.compose_function = None
|
||||
self.account = account
|
||||
self.buffer.account = account
|
||||
self.name = name
|
||||
self.session = None
|
||||
self.needs_init = True
|
File diff suppressed because it is too large
Load Diff
76
src/controller/filterController.py
Normal file
76
src/controller/filterController.py
Normal file
@@ -0,0 +1,76 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import time
|
||||
import widgetUtils
|
||||
import application
|
||||
from wxUI.dialogs import filterDialogs
|
||||
from wxUI import commonMessageDialogs
|
||||
|
||||
class filter(object):
|
||||
def __init__(self, buffer, filter_title=None, if_word_exists=None, in_lang=None, regexp=None, word=None, in_buffer=None):
|
||||
self.buffer = buffer
|
||||
self.dialog = filterDialogs.filterDialog(languages=[i["name"] for i in application.supported_languages])
|
||||
if self.dialog.get_response() == widgetUtils.OK:
|
||||
title = self.dialog.get("title")
|
||||
contains = self.dialog.get("contains")
|
||||
term = self.dialog.get("term")
|
||||
regexp = self.dialog.get("regexp")
|
||||
allow_rts = self.dialog.get("allow_rts")
|
||||
allow_quotes = self.dialog.get("allow_quotes")
|
||||
allow_replies = self.dialog.get("allow_replies")
|
||||
load_language = self.dialog.get("load_language")
|
||||
ignore_language = self.dialog.get("ignore_language")
|
||||
lang_option = None
|
||||
if ignore_language:
|
||||
lang_option = False
|
||||
elif load_language:
|
||||
lang_option = True
|
||||
langs = self.dialog.get_selected_langs()
|
||||
langcodes = []
|
||||
for i in application.supported_languages:
|
||||
if i["name"] in langs:
|
||||
langcodes.append(i["code"])
|
||||
d = dict(in_buffer=self.buffer.name, word=term, regexp=regexp, in_lang=lang_option, languages=langcodes, if_word_exists=contains, allow_rts=allow_rts, allow_quotes=allow_quotes, allow_replies=allow_replies)
|
||||
if title in self.buffer.session.settings["filters"]:
|
||||
return commonMessageDialogs.existing_filter()
|
||||
self.buffer.session.settings["filters"][title] = d
|
||||
self.buffer.session.settings.write()
|
||||
|
||||
class filterManager(object):
|
||||
|
||||
def __init__(self, session):
|
||||
self.session = session
|
||||
self.dialog = filterDialogs.filterManagerDialog()
|
||||
self.insert_filters(self.session.settings["filters"])
|
||||
if self.dialog.filters.get_count() == 0:
|
||||
self.dialog.edit.Enable(False)
|
||||
self.dialog.delete.Enable(False)
|
||||
else:
|
||||
widgetUtils.connect_event(self.dialog.edit, widgetUtils.BUTTON_PRESSED, self.edit_filter)
|
||||
widgetUtils.connect_event(self.dialog.delete, widgetUtils.BUTTON_PRESSED, self.delete_filter)
|
||||
response = self.dialog.get_response()
|
||||
|
||||
def insert_filters(self, filters):
|
||||
self.dialog.filters.clear()
|
||||
for f in filters.keys():
|
||||
filterName = f
|
||||
buffer = filters[f]["in_buffer"]
|
||||
if filters[f]["if_word_exists"] == "True" and filters[f]["word"] != "":
|
||||
filter_by_word = "True"
|
||||
else:
|
||||
filter_by_word = "False"
|
||||
filter_by_lang = ""
|
||||
if filters[f]["in_lang"] != "None":
|
||||
filter_by_lang = "True"
|
||||
b = [f, buffer, filter_by_word, filter_by_lang]
|
||||
self.dialog.filters.insert_item(False, *b)
|
||||
|
||||
def edit_filter(self, *args, **kwargs):
|
||||
pass
|
||||
|
||||
def delete_filter(self, *args, **kwargs):
|
||||
filter_title = self.dialog.filters.get_text_column(self.dialog.filters.get_selected(), 0)
|
||||
response = commonMessageDialogs.delete_filter()
|
||||
if response == widgetUtils.YES:
|
||||
self.session.settings["filters"].pop(filter_title)
|
||||
self.session.settings.write()
|
||||
self.insert_filters(self.session.settings["filters"])
|
@@ -1,7 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from wxUI.dialogs import filters
|
||||
|
||||
class filterController(object):
|
||||
def __init__(self):
|
||||
self.dialog = filters.filterDialog()
|
||||
self.dialog.get_response()
|
@@ -3,7 +3,7 @@ import widgetUtils
|
||||
import output
|
||||
from wxUI.dialogs import lists
|
||||
from twython import TwythonError
|
||||
from twitter import compose, utils
|
||||
from sessions.twitter import compose, utils
|
||||
from pubsub import pub
|
||||
|
||||
class listsController(object):
|
||||
@@ -29,7 +29,7 @@ class listsController(object):
|
||||
return [compose.compose_list(item) for item in self.session.db["lists"]]
|
||||
|
||||
def get_user_lists(self, user):
|
||||
self.lists = self.session.twitter.twitter.show_lists(reverse=True, screen_name=user)
|
||||
self.lists = self.session.twitter.show_lists(reverse=True, screen_name=user)
|
||||
return [compose.compose_list(item) for item in self.lists]
|
||||
|
||||
def create_list(self, *args, **kwargs):
|
||||
@@ -43,7 +43,7 @@ class listsController(object):
|
||||
else:
|
||||
mode = "private"
|
||||
try:
|
||||
new_list = self.session.twitter.twitter.create_list(name=name, description=description, mode=mode)
|
||||
new_list = self.session.twitter.create_list(name=name, description=description, mode=mode)
|
||||
self.session.db["lists"].append(new_list)
|
||||
self.dialog.lista.insert_item(False, *compose.compose_list(new_list))
|
||||
except TwythonError as e:
|
||||
@@ -63,7 +63,7 @@ class listsController(object):
|
||||
else:
|
||||
mode = "private"
|
||||
try:
|
||||
self.session.twitter.twitter.update_list(list_id=list["id"], name=name, description=description, mode=mode)
|
||||
self.session.twitter.update_list(list_id=list["id"], name=name, description=description, mode=mode)
|
||||
self.session.get_lists()
|
||||
self.dialog.populate_list(self.get_all_lists(), True)
|
||||
except TwythonError as e:
|
||||
@@ -75,7 +75,7 @@ class listsController(object):
|
||||
list = self.session.db["lists"][self.dialog.get_item()]["id"]
|
||||
if lists.remove_list() == widgetUtils.YES:
|
||||
try:
|
||||
self.session.twitter.twitter.delete_list(list_id=list)
|
||||
self.session.twitter.delete_list(list_id=list)
|
||||
self.session.db["lists"].pop(self.dialog.get_item())
|
||||
self.dialog.lista.remove_item(self.dialog.get_item())
|
||||
except TwythonError as e:
|
||||
@@ -90,7 +90,7 @@ class listsController(object):
|
||||
if self.dialog.lista.get_count() == 0: return
|
||||
list_id = self.lists[self.dialog.get_item()]["id"]
|
||||
try:
|
||||
list = self.session.twitter.twitter.subscribe_to_list(list_id=list_id)
|
||||
list = self.session.twitter.subscribe_to_list(list_id=list_id)
|
||||
item = utils.find_item(list["id"], self.session.db["lists"])
|
||||
self.session.db["lists"].append(list)
|
||||
except TwythonError as e:
|
||||
@@ -100,7 +100,7 @@ class listsController(object):
|
||||
if self.dialog.lista.get_count() == 0: return
|
||||
list_id = self.lists[self.dialog.get_item()]["id"]
|
||||
try:
|
||||
list = self.session.twitter.twitter.unsubscribe_from_list(list_id=list_id)
|
||||
list = self.session.twitter.unsubscribe_from_list(list_id=list_id)
|
||||
self.session.db["lists"].remove(list)
|
||||
except TwythonError as e:
|
||||
output.speak("error %s: %s" % (e.status_code, e.msg))
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -1,48 +1,53 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import absolute_import
|
||||
import re
|
||||
import platform
|
||||
import attach
|
||||
from . import attach
|
||||
import arrow
|
||||
import languageHandler
|
||||
system = platform.system()
|
||||
import widgetUtils
|
||||
import output
|
||||
import url_shortener
|
||||
import sound
|
||||
import config
|
||||
from pubsub import pub
|
||||
if system == "Windows":
|
||||
from wxUI.dialogs import message, urlList
|
||||
from wxUI import commonMessageDialogs
|
||||
|
||||
from extra import translator, SpellChecker, autocompletionUsers
|
||||
from extra.AudioUploader import audioUploader
|
||||
elif system == "Linux":
|
||||
from gtkUI.dialogs import message
|
||||
from twitter import utils
|
||||
from sessions.twitter import utils
|
||||
|
||||
class basicTweet(object):
|
||||
""" This class handles the tweet main features. Other classes should derive from this class."""
|
||||
def __init__(self, session, title, caption, text, messageType="tweet", max=140):
|
||||
def __init__(self, session, title, caption, text, messageType="tweet", max=280, *args, **kwargs):
|
||||
super(basicTweet, self).__init__()
|
||||
self.max = max
|
||||
self.title = title
|
||||
self.session = session
|
||||
self.message = getattr(message, messageType)(title, caption, text)
|
||||
self.message = getattr(message, messageType)(title, caption, text, *args, **kwargs)
|
||||
widgetUtils.connect_event(self.message.spellcheck, widgetUtils.BUTTON_PRESSED, self.spellcheck)
|
||||
widgetUtils.connect_event(self.message.attach, widgetUtils.BUTTON_PRESSED, self.attach)
|
||||
# if system == "Windows":
|
||||
# if messageType != "dm":
|
||||
widgetUtils.connect_event(self.message.text, widgetUtils.ENTERED_TEXT, self.text_processor)
|
||||
widgetUtils.connect_event(self.message.shortenButton, widgetUtils.BUTTON_PRESSED, self.shorten)
|
||||
widgetUtils.connect_event(self.message.unshortenButton, widgetUtils.BUTTON_PRESSED, self.unshorten)
|
||||
widgetUtils.connect_event(self.message.translateButton, widgetUtils.BUTTON_PRESSED, self.translate)
|
||||
if hasattr(self.message, "long_tweet"):
|
||||
widgetUtils.connect_event(self.message.long_tweet, widgetUtils.CHECKBOX, self.text_processor)
|
||||
if config.app["app-settings"]["remember_mention_and_longtweet"]:
|
||||
self.message.long_tweet.SetValue(config.app["app-settings"]["longtweet"])
|
||||
self.attachments = []
|
||||
|
||||
def translate(self, event=None):
|
||||
dlg = translator.gui.translateDialog()
|
||||
if dlg.get_response() == widgetUtils.OK:
|
||||
text_to_translate = self.message.get_text()
|
||||
source = [x[0] for x in translator.translator.available_languages()][dlg.get("source_lang")]
|
||||
dest = [x[0] for x in translator.translator.available_languages()][dlg.get("dest_lang")]
|
||||
msg = translator.translator.translate(text=text_to_translate, source=source, target=dest)
|
||||
msg = translator.translator.translate(text=text_to_translate, target=dest)
|
||||
self.message.set_text(msg)
|
||||
self.text_processor()
|
||||
self.message.text_focus()
|
||||
@@ -115,24 +120,22 @@ class basicTweet(object):
|
||||
url = dlg.uploaderFunction.get_url()
|
||||
pub.unsubscribe(dlg.uploaderDialog.update, "uploading")
|
||||
dlg.uploaderDialog.destroy()
|
||||
if url != 0:
|
||||
if "sndup.net/" in url:
|
||||
self.message.set_text(self.message.get_text()+url+" #audio")
|
||||
self.text_processor()
|
||||
else:
|
||||
output.speak(_(u"Unable to upload the audio"))
|
||||
commonMessageDialogs.common_error(url)
|
||||
|
||||
dlg.cleanup()
|
||||
dlg = audioUploader.audioUploader(self.session.settings, completed_callback)
|
||||
self.message.text_focus()
|
||||
|
||||
class tweet(basicTweet):
|
||||
def __init__(self, session, title, caption, text, twishort_enabled, messageType="tweet", max=140):
|
||||
super(tweet, self).__init__(session, title, caption, text, messageType, max)
|
||||
def __init__(self, session, title, caption, text, max=280, messageType="tweet", *args, **kwargs):
|
||||
super(tweet, self).__init__(session, title, caption, text, messageType, max, *args, **kwargs)
|
||||
self.image = None
|
||||
widgetUtils.connect_event(self.message.upload_image, widgetUtils.BUTTON_PRESSED, self.upload_image)
|
||||
widgetUtils.connect_event(self.message.autocompletionButton, widgetUtils.BUTTON_PRESSED, self.autocomplete_users)
|
||||
if twishort_enabled == False:
|
||||
try: self.message.long_tweet.SetValue(False)
|
||||
except AttributeError: pass
|
||||
self.text_processor()
|
||||
|
||||
def upload_image(self, *args, **kwargs):
|
||||
@@ -145,21 +148,42 @@ class tweet(basicTweet):
|
||||
c.show_menu()
|
||||
|
||||
class reply(tweet):
|
||||
def __init__(self, session, title, caption, text, twishort_enabled, users=None):
|
||||
super(reply, self).__init__(session, title, caption, text, twishort_enabled, messageType="reply")
|
||||
self.message.mentionAll.SetValue(True)
|
||||
if users > 1:
|
||||
# widgetUtils.connect_event(self.message.mentionAll, widgetUtils.CHECKBOX, self.mention_all)
|
||||
def __init__(self, session, title, caption, text, users=[], ids=[]):
|
||||
super(reply, self).__init__(session, title, caption, text, messageType="reply", users=users)
|
||||
self.ids = ids
|
||||
self.users = users
|
||||
if len(users) > 0:
|
||||
widgetUtils.connect_event(self.message.mentionAll, widgetUtils.CHECKBOX, self.mention_all)
|
||||
self.message.enable_button("mentionAll")
|
||||
self.message.mentionAll.SetValue(False)
|
||||
if config.app["app-settings"]["remember_mention_and_longtweet"]:
|
||||
self.message.mentionAll.SetValue(config.app["app-settings"]["mention_all"])
|
||||
self.mention_all()
|
||||
self.message.set_cursor_at_end()
|
||||
self.text_processor()
|
||||
|
||||
def mention_all(self, *args, **kwargs):
|
||||
self.message.set_text(self.message.get_text()+self.users)
|
||||
self.message.set_cursor_at_end()
|
||||
self.message.text_focus()
|
||||
self.text_processor()
|
||||
if self.message.mentionAll.GetValue() == True:
|
||||
for i in self.message.checkboxes:
|
||||
i.SetValue(True)
|
||||
i.Hide()
|
||||
else:
|
||||
for i in self.message.checkboxes:
|
||||
i.SetValue(False)
|
||||
i.Show()
|
||||
|
||||
def get_ids(self):
|
||||
excluded_ids = ""
|
||||
for i in xrange(0, len(self.message.checkboxes)):
|
||||
if self.message.checkboxes[i].GetValue() == False:
|
||||
excluded_ids = excluded_ids + "{0},".format(self.ids[i],)
|
||||
return excluded_ids
|
||||
|
||||
def get_people(self):
|
||||
people = ""
|
||||
for i in xrange(0, len(self.message.checkboxes)):
|
||||
if self.message.checkboxes[i].GetValue() == True:
|
||||
people = people + "{0} ".format(self.message.checkboxes[i].GetLabel(),)
|
||||
return people
|
||||
|
||||
class dm(basicTweet):
|
||||
def __init__(self, session, title, caption, text):
|
||||
@@ -172,60 +196,72 @@ class dm(basicTweet):
|
||||
c.show_menu("dm")
|
||||
|
||||
class viewTweet(basicTweet):
|
||||
def __init__(self, tweet, tweetList, is_tweet=True):
|
||||
def __init__(self, tweet, tweetList, is_tweet=True, utc_offset=0, date=""):
|
||||
""" This represents a tweet displayer. However it could be used for showing something wich is not a tweet, like a direct message or an event.
|
||||
param tweet: A dictionary that represents a full tweet or a string for non-tweets.
|
||||
param tweetList: If is_tweet is set to True, this could be a list of quoted tweets.
|
||||
param is_tweet: True or false, depending wether the passed object is a tweet or not."""
|
||||
if is_tweet == True:
|
||||
self.title = _(u"Tweet")
|
||||
image_description = []
|
||||
text = ""
|
||||
for i in xrange(0, len(tweetList)):
|
||||
# tweets with message keys are longer tweets, the message value is the full messaje taken from twishort.
|
||||
if tweetList[i].has_key("message") and tweetList[i]["is_quote_status"] == False:
|
||||
if "message" in tweetList[i] and tweetList[i]["is_quote_status"] == False:
|
||||
value = "message"
|
||||
else:
|
||||
value = "full_text"
|
||||
if tweetList[i].has_key("retweeted_status") and tweetList[i]["is_quote_status"] == False:
|
||||
if tweetList[i].has_key("message") == False:
|
||||
if "retweeted_status" in tweetList[i] and tweetList[i]["is_quote_status"] == False:
|
||||
if ("message" in tweetList[i]) == False:
|
||||
text = text + "rt @%s: %s\n" % (tweetList[i]["retweeted_status"]["user"]["screen_name"], tweetList[i]["retweeted_status"]["full_text"])
|
||||
else:
|
||||
text = text + "rt @%s: %s\n" % (tweetList[i]["retweeted_status"]["user"]["screen_name"], tweetList[i][value])
|
||||
else:
|
||||
text = text + " @%s: %s\n" % (tweetList[i]["user"]["screen_name"], tweetList[i][value])
|
||||
# tweets with extended_entities could include image descriptions.
|
||||
if tweetList[i].has_key("extended_entities") and tweetList[i]["extended_entities"].has_key("media"):
|
||||
if "extended_entities" in tweetList[i] and "media" in tweetList[i]["extended_entities"]:
|
||||
for z in tweetList[i]["extended_entities"]["media"]:
|
||||
if z.has_key("ext_alt_text") and z["ext_alt_text"] != None:
|
||||
if "ext_alt_text" in z and z["ext_alt_text"] != None:
|
||||
image_description.append(z["ext_alt_text"])
|
||||
if "retweeted_status" in tweetList[i] and "extended_entities" in tweetList[i]["retweeted_status"] and "media" in tweetList[i]["retweeted_status"]["extended_entities"]:
|
||||
for z in tweetList[i]["retweeted_status"]["extended_entities"]["media"]:
|
||||
if "ext_alt_text" in z and z["ext_alt_text"] != None:
|
||||
image_description.append(z["ext_alt_text"])
|
||||
# set rt and likes counters.
|
||||
rt_count = str(tweet["retweet_count"])
|
||||
favs_count = str(tweet["favorite_count"])
|
||||
# Gets the client from where this tweet was made.
|
||||
source = str(re.sub(r"(?s)<.*?>", "", tweet["source"].encode("utf-8")))
|
||||
original_date = arrow.get(tweet["created_at"], "ddd MMM DD H:m:s Z YYYY", locale="en")
|
||||
date = original_date.replace(seconds=utc_offset).format(_(u"MMM D, YYYY. H:m"), locale=languageHandler.getLanguage())
|
||||
if text == "":
|
||||
if tweet.has_key("message"):
|
||||
if "message" in tweet:
|
||||
value = "message"
|
||||
else:
|
||||
value = "full_text"
|
||||
if tweet.has_key("retweeted_status"):
|
||||
if tweet.has_key("message") == False:
|
||||
if "retweeted_status" in tweet:
|
||||
if ("message" in tweet) == False:
|
||||
text = "rt @%s: %s" % (tweet["retweeted_status"]["user"]["screen_name"], tweet["retweeted_status"]["full_text"])
|
||||
else:
|
||||
text = "rt @%s: %s" % (tweet["retweeted_status"]["user"]["screen_name"], tweet[value])
|
||||
else:
|
||||
text = tweet[value]
|
||||
text = self.clear_text(text)
|
||||
if tweet.has_key("extended_entities") and tweet["extended_entities"].has_key("media"):
|
||||
if "extended_entities" in tweet and "media" in tweet["extended_entities"]:
|
||||
for z in tweet["extended_entities"]["media"]:
|
||||
if z.has_key("ext_alt_text") and z["ext_alt_text"] != None:
|
||||
if "ext_alt_text" in z and z["ext_alt_text"] != None:
|
||||
image_description.append(z["ext_alt_text"])
|
||||
self.message = message.viewTweet(text, rt_count, favs_count, source.decode("utf-8"))
|
||||
if "retweeted_status" in tweet and "extended_entities" in tweet["retweeted_status"] and "media" in tweet["retweeted_status"]["extended_entities"]:
|
||||
for z in tweet["retweeted_status"]["extended_entities"]["media"]:
|
||||
if "ext_alt_text" in z and z["ext_alt_text"] != None:
|
||||
image_description.append(z["ext_alt_text"])
|
||||
self.message = message.viewTweet(text, rt_count, favs_count, source.decode("utf-8"), date)
|
||||
self.message.set_title(len(text))
|
||||
[self.message.set_image_description(i) for i in image_description]
|
||||
else:
|
||||
self.title = _(u"View item")
|
||||
text = tweet
|
||||
self.message = message.viewNonTweet(text)
|
||||
self.message = message.viewNonTweet(text, date)
|
||||
widgetUtils.connect_event(self.message.spellcheck, widgetUtils.BUTTON_PRESSED, self.spellcheck)
|
||||
widgetUtils.connect_event(self.message.translateButton, widgetUtils.BUTTON_PRESSED, self.translate)
|
||||
if self.contain_urls() == True:
|
||||
|
@@ -11,13 +11,14 @@ import application
|
||||
from wxUI.dialogs import configuration
|
||||
from wxUI import commonMessageDialogs
|
||||
from extra.autocompletionUsers import settings
|
||||
from extra.ocr import OCRSpace
|
||||
from pubsub import pub
|
||||
import logging
|
||||
import config_utils
|
||||
log = logging.getLogger("Settings")
|
||||
import keys
|
||||
from collections import OrderedDict
|
||||
from platform_utils.autostart import windows as autostart_windows
|
||||
from mysc import autostart as autostart_windows
|
||||
|
||||
class globalSettingsController(object):
|
||||
def __init__(self):
|
||||
@@ -60,14 +61,22 @@ class globalSettingsController(object):
|
||||
else:
|
||||
self.dialog.general.autostart.Enable(False)
|
||||
self.dialog.set_value("general", "ask_at_exit", config.app["app-settings"]["ask_at_exit"])
|
||||
self.dialog.set_value("general", "no_streaming", config.app["app-settings"]["no_streaming"])
|
||||
self.dialog.set_value("general", "play_ready_sound", config.app["app-settings"]["play_ready_sound"])
|
||||
self.dialog.set_value("general", "speak_ready_msg", config.app["app-settings"]["speak_ready_msg"])
|
||||
self.dialog.set_value("general", "handle_longtweets", config.app["app-settings"]["handle_longtweets"])
|
||||
self.dialog.set_value("general", "use_invisible_shorcuts", config.app["app-settings"]["use_invisible_keyboard_shorcuts"])
|
||||
self.dialog.set_value("general", "disable_sapi5", config.app["app-settings"]["voice_enabled"])
|
||||
self.dialog.set_value("general", "hide_gui", config.app["app-settings"]["hide_gui"])
|
||||
self.dialog.set_value("general", "update_period", config.app["app-settings"]["update_period"])
|
||||
self.dialog.set_value("general", "check_for_updates", config.app["app-settings"]["check_for_updates"])
|
||||
self.dialog.create_proxy()
|
||||
self.dialog.set_value("general", "remember_mention_and_longtweet", config.app["app-settings"]["remember_mention_and_longtweet"])
|
||||
proxyTypes=config.proxyTypes
|
||||
self.dialog.create_proxy([_(u"Direct connection")]+proxyTypes)
|
||||
if config.app["proxy"]["type"] not in proxyTypes:
|
||||
self.dialog.proxy.type.SetSelection(0)
|
||||
else:
|
||||
self.dialog.proxy.type.SetSelection(proxyTypes.index(config.app["proxy"]["type"])+1)
|
||||
self.dialog.set_value("proxy", "server", config.app["proxy"]["server"])
|
||||
self.dialog.set_value("proxy", "port", config.app["proxy"]["port"])
|
||||
self.dialog.set_value("proxy", "user", config.app["proxy"]["user"])
|
||||
@@ -86,13 +95,18 @@ class globalSettingsController(object):
|
||||
kmFile = open(paths.config_path("keymap.keymap"), "w")
|
||||
kmFile.close()
|
||||
self.needs_restart = True
|
||||
|
||||
if config.app["app-settings"]["autostart"] != self.dialog.get_value("general", "autostart") and paths.mode == "installed":
|
||||
config.app["app-settings"]["autostart"] = self.dialog.get_value("general", "autostart")
|
||||
autostart_windows.setAutoStart(application.name, enable=self.dialog.get_value("general", "autostart"))
|
||||
if config.app["app-settings"]["use_invisible_keyboard_shorcuts"] != self.dialog.get_value("general", "use_invisible_shorcuts"):
|
||||
config.app["app-settings"]["use_invisible_keyboard_shorcuts"] = self.dialog.get_value("general", "use_invisible_shorcuts")
|
||||
pub.sendMessage("invisible-shorcuts-changed", registered=self.dialog.get_value("general", "use_invisible_shorcuts"))
|
||||
if config.app["app-settings"]["no_streaming"] != self.dialog.get_value("general", "no_streaming"):
|
||||
config.app["app-settings"]["no_streaming"] = self.dialog.get_value("general", "no_streaming")
|
||||
self.needs_restart = True
|
||||
if config.app["app-settings"]["update_period"] != self.dialog.get_value("general", "update_period"):
|
||||
config.app["app-settings"]["update_period"] = self.dialog.get_value("general", "update_period")
|
||||
self.needs_restart = True
|
||||
config.app["app-settings"]["voice_enabled"] = self.dialog.get_value("general", "disable_sapi5")
|
||||
config.app["app-settings"]["hide_gui"] = self.dialog.get_value("general", "hide_gui")
|
||||
config.app["app-settings"]["ask_at_exit"] = self.dialog.get_value("general", "ask_at_exit")
|
||||
@@ -100,9 +114,11 @@ class globalSettingsController(object):
|
||||
config.app["app-settings"]["play_ready_sound"] = self.dialog.get_value("general", "play_ready_sound")
|
||||
config.app["app-settings"]["speak_ready_msg"] = self.dialog.get_value("general", "speak_ready_msg")
|
||||
config.app["app-settings"]["check_for_updates"] = self.dialog.get_value("general", "check_for_updates")
|
||||
if config.app["proxy"]["server"] != self.dialog.get_value("proxy", "server") or config.app["proxy"]["port"] != self.dialog.get_value("proxy", "port") or config.app["proxy"]["user"] != self.dialog.get_value("proxy", "user") or config.app["proxy"]["password"] != self.dialog.get_value("proxy", "password"):
|
||||
config.app["app-settings"]["remember_mention_and_longtweet"] = self.dialog.get_value("general", "remember_mention_and_longtweet")
|
||||
if config.app["proxy"]["type"]!=self.dialog.get_value("proxy", "type") or config.app["proxy"]["server"] != self.dialog.get_value("proxy", "server") or config.app["proxy"]["port"] != self.dialog.get_value("proxy", "port") or config.app["proxy"]["user"] != self.dialog.get_value("proxy", "user") or config.app["proxy"]["password"] != self.dialog.get_value("proxy", "password"):
|
||||
if self.is_started == True:
|
||||
self.needs_restart = True
|
||||
config.app["proxy"]["type"]=self.dialog.get_value("proxy", "type")
|
||||
config.app["proxy"]["server"] = self.dialog.get_value("proxy", "server")
|
||||
config.app["proxy"]["port"] = self.dialog.get_value("proxy", "port")
|
||||
config.app["proxy"]["user"] = self.dialog.get_value("proxy", "user")
|
||||
@@ -121,7 +137,7 @@ class accountSettingsController(globalSettingsController):
|
||||
self.dialog.create_general_account()
|
||||
widgetUtils.connect_event(self.dialog.general.au, widgetUtils.BUTTON_PRESSED, self.manage_autocomplete)
|
||||
self.dialog.set_value("general", "relative_time", self.config["general"]["relative_times"])
|
||||
self.dialog.set_value("general", "apiCalls", self.config["general"]["max_api_calls"])
|
||||
self.dialog.set_value("general", "show_screen_names", self.config["general"]["show_screen_names"])
|
||||
self.dialog.set_value("general", "itemsPerApiCall", self.config["general"]["max_tweets_per_call"])
|
||||
self.dialog.set_value("general", "reverse_timelines", self.config["general"]["reverse_timelines"])
|
||||
rt = self.config["general"]["retweet_mode"]
|
||||
@@ -132,6 +148,9 @@ class accountSettingsController(globalSettingsController):
|
||||
else:
|
||||
self.dialog.set_value("general", "retweet_mode", _(u"Retweet with comments"))
|
||||
self.dialog.set_value("general", "persist_size", str(self.config["general"]["persist_size"]))
|
||||
self.dialog.create_reporting()
|
||||
self.dialog.set_value("reporting", "speech_reporting", self.config["reporting"]["speech_reporting"])
|
||||
self.dialog.set_value("reporting", "braille_reporting", self.config["reporting"]["braille_reporting"])
|
||||
self.dialog.create_other_buffers()
|
||||
buffer_values = self.get_buffers_list()
|
||||
self.dialog.buffers.insert_buffers(buffer_values)
|
||||
@@ -154,13 +173,13 @@ class accountSettingsController(globalSettingsController):
|
||||
self.dialog.set_value("sound", "output", self.config["sound"]["output_device"])
|
||||
self.dialog.set_value("sound", "session_mute", self.config["sound"]["session_mute"])
|
||||
self.dialog.set_value("sound", "soundpack", self.config["sound"]["current_soundpack"])
|
||||
self.dialog.create_services()
|
||||
# if self.config["services"]["pocket_access_token"] == "":
|
||||
# self.dialog.services.set_pocket(False)
|
||||
# else:
|
||||
# self.dialog.services.set_pocket(True)
|
||||
# widgetUtils.connect_event(self.dialog.services.pocketBtn, widgetUtils.BUTTON_PRESSED, self.manage_pocket)
|
||||
self.dialog.set_value("services", "apiKey", self.config["sound"]["sndup_api_key"])
|
||||
self.dialog.set_value("sound", "indicate_audio", self.config["sound"]["indicate_audio"])
|
||||
self.dialog.set_value("sound", "indicate_geo", self.config["sound"]["indicate_geo"])
|
||||
self.dialog.set_value("sound", "indicate_img", self.config["sound"]["indicate_img"])
|
||||
self.dialog.create_extras(OCRSpace.translatable_langs)
|
||||
self.dialog.set_value("extras", "sndup_apiKey", self.config["sound"]["sndup_api_key"])
|
||||
language_index = OCRSpace.OcrLangs.index(self.config["mysc"]["ocr_language"])
|
||||
self.dialog.extras.ocr_lang.SetSelection(language_index)
|
||||
self.dialog.realize()
|
||||
self.dialog.set_title(_(u"Account settings for %s") % (self.user,))
|
||||
self.response = self.dialog.get_response()
|
||||
@@ -169,7 +188,7 @@ class accountSettingsController(globalSettingsController):
|
||||
if self.config["general"]["relative_times"] != self.dialog.get_value("general", "relative_time"):
|
||||
self.needs_restart = True
|
||||
self.config["general"]["relative_times"] = self.dialog.get_value("general", "relative_time")
|
||||
self.config["general"]["max_api_calls"] = self.dialog.get_value("general", "apiCalls")
|
||||
self.config["general"]["show_screen_names"] = self.dialog.get_value("general", "show_screen_names")
|
||||
self.config["general"]["max_tweets_per_call"] = self.dialog.get_value("general", "itemsPerApiCall")
|
||||
if self.config["general"]["persist_size"] != self.dialog.get_value("general", "persist_size"):
|
||||
if self.dialog.get_value("general", "persist_size") == '':
|
||||
@@ -192,10 +211,12 @@ class accountSettingsController(globalSettingsController):
|
||||
else:
|
||||
self.config["general"]["retweet_mode"] = "comment"
|
||||
buffers_list = self.dialog.buffers.get_list()
|
||||
if set(self.config["general"]["buffer_order"]) != set(buffers_list) or buffers_list != self.config["general"]["buffer_order"]:
|
||||
if buffers_list != self.config["general"]["buffer_order"]:
|
||||
self.needs_restart = True
|
||||
self.config["general"]["buffer_order"] = buffers_list
|
||||
|
||||
self.config["reporting"]["speech_reporting"] = self.dialog.get_value("reporting", "speech_reporting")
|
||||
self.config["reporting"]["braille_reporting"] = self.dialog.get_value("reporting", "braille_reporting")
|
||||
self.config["mysc"]["ocr_language"] = OCRSpace.OcrLangs[self.dialog.extras.ocr_lang.GetSelection()]
|
||||
# if self.config["other_buffers"]["show_followers"] != self.dialog.get_value("buffers", "followers"):
|
||||
# self.config["other_buffers"]["show_followers"] = self.dialog.get_value("buffers", "followers")
|
||||
# pub.sendMessage("create-new-buffer", buffer="followers", account=self.user, create=self.config["other_buffers"]["show_followers"])
|
||||
@@ -229,9 +250,13 @@ class accountSettingsController(globalSettingsController):
|
||||
self.config["sound"]["volume"] = self.dialog.get_value("sound", "volumeCtrl")/100.0
|
||||
self.config["sound"]["session_mute"] = self.dialog.get_value("sound", "session_mute")
|
||||
self.config["sound"]["current_soundpack"] = self.dialog.sound.get("soundpack")
|
||||
self.config["sound"]["indicate_audio"] = self.dialog.get_value("sound", "indicate_audio")
|
||||
self.config["sound"]["indicate_geo"] = self.dialog.get_value("sound", "indicate_geo")
|
||||
self.config["sound"]["indicate_img"] = self.dialog.get_value("sound", "indicate_img")
|
||||
self.config["sound"]["sndup_api_key"] = self.dialog.get_value("extras", "sndup_apiKey")
|
||||
self.buffer.session.sound.config = self.config["sound"]
|
||||
self.buffer.session.sound.check_soundpack()
|
||||
self.config["sound"]["sndup_api_key"] = self.dialog.get_value("services", "apiKey")
|
||||
self.config.write()
|
||||
|
||||
def toggle_state(self,*args,**kwargs):
|
||||
return self.dialog.buffers.change_selected_item()
|
||||
@@ -264,13 +289,16 @@ class accountSettingsController(globalSettingsController):
|
||||
all_buffers['friends']=_(u"Friends")
|
||||
all_buffers['blocks']=_(u"Blocked users")
|
||||
all_buffers['muted']=_(u"Muted users")
|
||||
all_buffers['events']=_(u"Events")
|
||||
list_buffers = []
|
||||
hidden_buffers=[]
|
||||
for i in all_buffers.keys():
|
||||
if i in self.config["general"]["buffer_order"]:
|
||||
all_buffers_keys = all_buffers.keys()
|
||||
# Check buffers shown first.
|
||||
for i in self.config["general"]["buffer_order"]:
|
||||
if i in all_buffers_keys:
|
||||
list_buffers.append((i, all_buffers[i], True))
|
||||
else:
|
||||
# This second pass will retrieve all hidden buffers.
|
||||
for i in all_buffers_keys:
|
||||
if i not in self.config["general"]["buffer_order"]:
|
||||
hidden_buffers.append((i, all_buffers[i], False))
|
||||
list_buffers.extend(hidden_buffers)
|
||||
return list_buffers
|
||||
@@ -278,27 +306,4 @@ class accountSettingsController(globalSettingsController):
|
||||
def toggle_buffer_active(self, ev):
|
||||
change = self.dialog.buffers.get_event(ev)
|
||||
if change == True:
|
||||
self.dialog.buffers.change_selected_item()
|
||||
|
||||
# def manage_pocket(self, *args, **kwargs):
|
||||
# if self.dialog.services.get_pocket_status() == _(u"Connect your Pocket account"):
|
||||
# self.connect_pocket()
|
||||
# else:
|
||||
# self.disconnect_pocket()
|
||||
|
||||
# def connect_pocket(self):
|
||||
# dlg = self.dialog.services.show_pocket_dialog()
|
||||
# if dlg == widgetUtils.YES:
|
||||
# request_token = pocket.Pocket.get_request_token(consumer_key=keys.keyring.get("pocket_consumer_key"), redirect_uri="http://127.0.0.1:8080")
|
||||
# auth_url = pocket.Pocket.get_auth_url(code=request_token, redirect_uri="http://127.0.0.1:8080")
|
||||
# webbrowser.open_new_tab(auth_url)
|
||||
# httpd = BaseHTTPServer.HTTPServer(('127.0.0.1', 8080), authorisationHandler.handler)
|
||||
# while authorisationHandler.logged == False:
|
||||
# httpd.handle_request()
|
||||
# user_credentials = pocket.Pocket.get_credentials(consumer_key=keys.keyring.get("pocket_consumer_key"), code=request_token)
|
||||
# self.dialog.services.set_pocket(True)
|
||||
# self.config["services"]["pocket_access_token"] = user_credentials["access_token"]
|
||||
|
||||
def disconnect_dropbox(self):
|
||||
self.config["services"]["pocket_access_token"] = ""
|
||||
self.dialog.services.set_pocket(False)
|
||||
self.dialog.buffers.change_selected_item()
|
@@ -8,7 +8,7 @@ class trendingTopicsController(object):
|
||||
self.countries = {}
|
||||
self.cities = {}
|
||||
self.dialog = trends.trendingTopicsDialog()
|
||||
self.information = session.twitter.twitter.get_available_trends()
|
||||
self.information = session.twitter.get_available_trends()
|
||||
self.split_information()
|
||||
widgetUtils.connect_event(self.dialog.country, widgetUtils.RADIOBUTTON, self.get_places)
|
||||
widgetUtils.connect_event(self.dialog.city, widgetUtils.RADIOBUTTON, self.get_places)
|
||||
|
@@ -1,8 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import wx
|
||||
import webbrowser
|
||||
import widgetUtils
|
||||
import output
|
||||
from wxUI.dialogs import update_profile, show_user
|
||||
import logging
|
||||
log = logging.getLogger("controller.user")
|
||||
from twython import TwythonError
|
||||
|
||||
class profileController(object):
|
||||
@@ -12,14 +15,22 @@ class profileController(object):
|
||||
self.session = session
|
||||
self.user = user
|
||||
if user == None:
|
||||
self.dialog = update_profile.updateProfileDialog()
|
||||
self.get_data(screen_name=self.session.db["user_name"])
|
||||
self.dialog = update_profile.updateProfileDialog()
|
||||
self.fill_profile_fields()
|
||||
self.uploaded = False
|
||||
widgetUtils.connect_event(self.dialog.upload_image, widgetUtils.BUTTON_PRESSED, self.upload_image)
|
||||
else:
|
||||
try:
|
||||
self.get_data(screen_name=self.user)
|
||||
except TwythonError as err:
|
||||
if err.error_code == 404:
|
||||
wx.MessageDialog(None, _(u"That user does not exist"), _(u"Error"), wx.ICON_ERROR).ShowModal()
|
||||
if err.error_code == 403:
|
||||
wx.MessageDialog(None, _(u"User has been suspended"), _(u"Error"), wx.ICON_ERROR).ShowModal()
|
||||
log.error("error %d: %s" % (err.error_code, err.msg))
|
||||
return
|
||||
self.dialog = show_user.showUserProfile()
|
||||
self.get_data(screen_name=self.user)
|
||||
string = self.get_user_info()
|
||||
self.dialog.set("text", string)
|
||||
self.dialog.set_title(_(u"Information for %s") % (self.data["screen_name"]))
|
||||
@@ -30,9 +41,9 @@ class profileController(object):
|
||||
self.do_update()
|
||||
|
||||
def get_data(self, screen_name):
|
||||
self.data = self.session.twitter.twitter.show_user(screen_name=screen_name)
|
||||
self.data = self.session.twitter.show_user(screen_name=screen_name)
|
||||
if screen_name != self.session.db["user_name"]:
|
||||
self.friendship_status = self.session.twitter.twitter.show_friendship(source_screen_name=self.session.db["user_name"], target_screen_name=screen_name)
|
||||
self.friendship_status = self.session.twitter.show_friendship(source_screen_name=self.session.db["user_name"], target_screen_name=screen_name)
|
||||
|
||||
def fill_profile_fields(self):
|
||||
self.dialog.set_name(self.data["name"])
|
||||
@@ -70,11 +81,11 @@ class profileController(object):
|
||||
url = self.dialog.get("url")
|
||||
if self.file != None:
|
||||
try:
|
||||
self.session.twitter.twitter.update_profile_image(image=self.file)
|
||||
self.session.twitter.update_profile_image(image=self.file)
|
||||
except TwythonError as e:
|
||||
output.speak(u"Error %s. %s" % (e.error_code, e.msg))
|
||||
try:
|
||||
self.session.twitter.twitter.update_profile(name=name, description=description, location=location, url=url)
|
||||
self.session.twitter.update_profile(name=name, description=description, location=location, url=url)
|
||||
except TwythonError as e:
|
||||
output.speak(u"Error %s. %s" % (e.error_code, e.msg))
|
||||
|
||||
|
@@ -29,51 +29,52 @@ class userActionsController(object):
|
||||
|
||||
def follow(self, user):
|
||||
try:
|
||||
self.session.twitter.twitter.create_friendship(screen_name=user )
|
||||
self.session.twitter.create_friendship(screen_name=user )
|
||||
except TwythonError as err:
|
||||
output.speak("Error %s: %s" % (err.error_code, err.msg), True)
|
||||
|
||||
def unfollow(self, user):
|
||||
try:
|
||||
id = self.session.twitter.twitter.destroy_friendship(screen_name=user )
|
||||
id = self.session.twitter.destroy_friendship(screen_name=user )
|
||||
except TwythonError as err:
|
||||
output.speak("Error %s: %s" % (err.error_code, err.msg), True)
|
||||
|
||||
def mute(self, user):
|
||||
try:
|
||||
id = self.session.twitter.twitter.create_mute(screen_name=user )
|
||||
id = self.session.twitter.create_mute(screen_name=user )
|
||||
except TwythonError as err:
|
||||
output.speak("Error %s: %s" % (err.error_code, err.msg), True)
|
||||
|
||||
def unmute(self, user):
|
||||
try:
|
||||
id = self.session.twitter.twitter.destroy_mute(screen_name=user )
|
||||
id = self.session.twitter.destroy_mute(screen_name=user )
|
||||
except TwythonError as err:
|
||||
output.speak("Error %s: %s" % (err.error_code, err.msg), True)
|
||||
|
||||
def report(self, user):
|
||||
try:
|
||||
id = self.session.twitter.twitter.report_spam(screen_name=user )
|
||||
id = self.session.twitter.report_spam(screen_name=user )
|
||||
except TwythonError as err:
|
||||
output.speak("Error %s: %s" % (err.error_code, err.msg), True)
|
||||
|
||||
def block(self, user):
|
||||
try:
|
||||
id = self.session.twitter.twitter.create_block(screen_name=user )
|
||||
id = self.session.twitter.create_block(screen_name=user )
|
||||
except TwythonError as err:
|
||||
output.speak("Error %s: %s" % (err.error_code, err.msg), True)
|
||||
|
||||
def unblock(self, user):
|
||||
try:
|
||||
id = self.session.twitter.twitter.destroy_block(screen_name=user )
|
||||
id = self.session.twitter.destroy_block(screen_name=user )
|
||||
except TwythonError as err:
|
||||
output.speak("Error %s: %s" % (err.error_code, err.msg), True)
|
||||
|
||||
def ignore_client(self, user):
|
||||
tweet = self.buffer.get_right_tweet()
|
||||
if tweet.has_key("sender"):
|
||||
if "sender" in tweet:
|
||||
output.speak(_(u"You can't ignore direct messages"))
|
||||
return
|
||||
client = re.sub(r"(?s)<.*?>", "", tweet["source"])
|
||||
if client not in self.session.settings["twitter"]["ignored_clients"]:
|
||||
self.session.settings["twitter"]["ignored_clients"].append(client)
|
||||
self.session.settings["twitter"]["ignored_clients"].append(client)
|
||||
self.session.settings.write()
|
@@ -16,10 +16,11 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
############################################################
|
||||
from __future__ import absolute_import
|
||||
import widgetUtils
|
||||
import wx_ui
|
||||
import wx_transfer_dialogs
|
||||
import transfer
|
||||
from . import wx_ui
|
||||
from . import wx_transfer_dialogs
|
||||
from . import transfer
|
||||
import output
|
||||
import tempfile
|
||||
import sound
|
||||
@@ -52,13 +53,11 @@ class audioUploader(object):
|
||||
self.uploaderDialog = wx_transfer_dialogs.UploadDialog(self.file)
|
||||
output.speak(_(u"Attaching..."))
|
||||
if self.dialog.get("services") == "SNDUp":
|
||||
base_url = "http://sndup.net/post.php"
|
||||
base_url = "https://sndup.net/post.php"
|
||||
if len(self.config["sound"]["sndup_api_key"]) > 0:
|
||||
url = base_url + '?apikey=' + self.config['sound']['sndup_api_key']
|
||||
else:
|
||||
url = base_url
|
||||
elif self.dialog.get("services") == "TwUp":
|
||||
url = "http://api.twup.me/post.json"
|
||||
self.uploaderFunction = transfer.Upload(obj=self, field='file', url=url, filename=self.file, completed_callback=completed_callback)
|
||||
pub.subscribe(self.uploaderDialog.update, "uploading")
|
||||
self.uploaderDialog.get_response(self.uploaderFunction.perform_threaded)
|
||||
@@ -66,7 +65,6 @@ class audioUploader(object):
|
||||
def get_available_services(self):
|
||||
services = []
|
||||
services.append("SNDUp")
|
||||
services.append("TwUp")
|
||||
return services
|
||||
|
||||
def on_pause(self, *args, **kwargs):
|
||||
|
@@ -1,9 +1,10 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import absolute_import
|
||||
import sys
|
||||
import threading
|
||||
import time
|
||||
import logging
|
||||
from utils import convert_bytes
|
||||
from .utils import convert_bytes
|
||||
from pubsub import pub
|
||||
log = logging.getLogger("extra.AudioUploader.transfer")
|
||||
from requests_toolbelt.multipart.encoder import MultipartEncoder, MultipartEncoderMonitor
|
||||
@@ -22,7 +23,8 @@ class Upload(object):
|
||||
self.local_filename=os.path.basename(self.filename)
|
||||
if isinstance(self.local_filename, unicode):
|
||||
self.local_filename=self.local_filename.encode(sys.getfilesystemencoding())
|
||||
self.m = MultipartEncoder(fields={field:(self.local_filename, open(self.filename, 'rb'), "application/octet-stream")})
|
||||
self.fin=open(self.filename, 'rb')
|
||||
self.m = MultipartEncoder(fields={field:(self.local_filename, self.fin, "application/octet-stream")})
|
||||
self.monitor = MultipartEncoderMonitor(self.m, self.progress_callback)
|
||||
self.response=None
|
||||
self.obj=obj
|
||||
@@ -66,6 +68,17 @@ class Upload(object):
|
||||
def complete_transfer(self):
|
||||
if callable(self.completed_callback):
|
||||
self.completed_callback(self.obj)
|
||||
if hasattr(self,'fin') and callable(self.fin.close):
|
||||
self.fin.close()
|
||||
|
||||
def get_url(self):
|
||||
return self.response.json()['url']
|
||||
try:
|
||||
data = self.response.json()
|
||||
except:
|
||||
return _("Error in file upload: {0}").format(self.data.content,)
|
||||
if "url" in data and data["url"] != "0":
|
||||
return data["url"]
|
||||
elif "error" in data and data["error"] != "0":
|
||||
return data["error"]
|
||||
else:
|
||||
return _("Error in file upload: {0}").format(self.data.content,)
|
@@ -1,12 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import absolute_import
|
||||
import wx
|
||||
from utils import *
|
||||
from .utils import *
|
||||
import widgetUtils
|
||||
|
||||
class UploadDialog(widgetUtils.BaseDialog):
|
||||
|
||||
def __init__(self, filename, *args, **kwargs):
|
||||
super(UploadDialog, self).__init__(parent=None, id=wx.NewId(), *args, **kwargs)
|
||||
super(UploadDialog, self).__init__(parent=None, id=wx.ID_ANY, *args, **kwargs)
|
||||
self.pane = wx.Panel(self)
|
||||
self.progress_bar = wx.Gauge(parent=self.pane)
|
||||
fileBox = wx.BoxSizer(wx.HORIZONTAL)
|
||||
|
@@ -1 +1,2 @@
|
||||
from soundsTutorial import soundsTutorial
|
||||
from __future__ import absolute_import
|
||||
from .soundsTutorial import soundsTutorial
|
||||
|
@@ -1,15 +1,16 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import absolute_import
|
||||
import platform
|
||||
import widgetUtils
|
||||
import os
|
||||
import paths
|
||||
import logging
|
||||
log = logging.getLogger("extra.SoundsTutorial.soundsTutorial")
|
||||
import soundsTutorial_constants
|
||||
from . import soundsTutorial_constants
|
||||
if platform.system() == "Windows":
|
||||
import wx_ui as UI
|
||||
from . import wx_ui as UI
|
||||
elif platform.system() == "Linux":
|
||||
import gtk_ui as UI
|
||||
from . import gtk_ui as UI
|
||||
|
||||
class soundsTutorial(object):
|
||||
def __init__(self, sessionObject):
|
||||
|
@@ -1,5 +1,7 @@
|
||||
#-*- coding: utf-8 -*-
|
||||
import reverse_sort
|
||||
from __future__ import absolute_import
|
||||
#-*- coding: utf-8 -*-
|
||||
from . import reverse_sort
|
||||
import application
|
||||
actions = reverse_sort.reverse_sort([ ("audio", _(u"Audio tweet.")),
|
||||
("create_timeline", _(u"User timeline buffer created.")),
|
||||
@@ -10,6 +12,7 @@ actions = reverse_sort.reverse_sort([ ("audio", _(u"Audio tweet.")),
|
||||
("favourite", _(u"Tweet liked.")),
|
||||
("favourites_timeline_updated", _(u"Likes buffer updated.")),
|
||||
("geo", _(u"Geotweet.")),
|
||||
("image", _("Tweet contains one or more images")),
|
||||
("limit", _(u"Boundary reached.")),
|
||||
("list_tweet", _(u"List updated.")),
|
||||
("max_length", _(u"Too many characters.")),
|
||||
@@ -24,4 +27,4 @@ actions = reverse_sort.reverse_sort([ ("audio", _(u"Audio tweet.")),
|
||||
("trends_updated", _(u"Trending topics buffer updated.")),
|
||||
("tweet_timeline", _(u"New tweet in user timeline buffer.")),
|
||||
("update_followers", _(u"New follower.")),
|
||||
("volume_changed", _(u"Volume changed."))])
|
||||
("volume_changed", _(u"Volume changed."))])
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user