SomberNight
8b9296654e
contrib/push_locale: start using crowdin v2 API (instead of v1)
-----
closes https://github.com/spesmilo/electrum/issues/6936
Note: if we used the python crowdin client (https://github.com/crowdin/crowdin-api-client-python ),
we would do something like this:
```
from crowdin_api import CrowdinClient
class MyCrowdinClient(CrowdinClient):
TOKEN = ...
client = MyCrowdinClient()
with open(locale_file_name, 'rb') as f:
resp = client.storages.add_storage(f)
storage_id = resp['data']['id']
client.source_files.update_file(projectId=crowdin_project_id, storageId=storage_id, fileId=crowdin_file_id)
client.translations.build_crowdin_project_translation(projectId=crowdin_project_id)
```
3 years ago
SomberNight
70d901b544
cirrus ci: push_locale: make sure gettext is installed
3 years ago
ThomasV
7b7397a8c7
chmod push_locale
6 years ago
ThomasV
5db21134aa
separate push and pull locale
6 years ago
SomberNight
8b775fd24a
contrib: import 'requests' in try-except
6 years ago
Marcel O'Neil
21204fc552
localization: fix download link + badge
7 years ago
Janus
097ac144d9
file reorganization with top-level module
7 years ago
Johann Bauer
79edd2dbf1
Fix crowdin upload
7 years ago
Johann Bauer
92a701b97a
Follow-up 2915cb98b2
7 years ago
Johann Bauer
2915cb98b2
Follow-up e890ec02d
7 years ago
Johann Bauer
e890ec02d5
Pass all possible files to xgettext
7 years ago
Johann Bauer
eab5bcf62f
Find files to translate automatically
7 years ago
Johann Bauer
084b1e86ef
Add missing files to localization
7 years ago
SomberNight
c65d01ea96
file i/o: use 'with' keyword
7 years ago
SomberNight
c413fea404
https in build scripts
7 years ago
ThomasV
9ee10ab3e1
migrate make_locale to python3
7 years ago
Johann Bauer
a6f9e41d6a
Let Travis upload templates to crowdin
8 years ago
ThomasV
84b6a1252a
fix ssl issue, #1875
9 years ago
ThomasV
557286ff79
Fix ssl error
10 years ago
Neil Booth
a3ad32bd91
Use requests instead - SSL handling is superior
10 years ago
Neil Booth
c5c5afcb90
Fix bang line
10 years ago
ThomasV
821a9f14dd
rename file
10 years ago
ThomasV
91ea2d8752
move mki18n to contrib directory
10 years ago
ThomasV
b5ac7f2a7c
simplify setup.py using package_data
10 years ago
ThomasV
476e02026f
strip crowdin url
10 years ago
ThomasV
989a95bf25
move api key path
11 years ago
thomasv
9a0d6bc674
fix bug in mki18n.py
11 years ago
thgh
e3475b1f91
Move to Crowdin platform
11 years ago
rdymac
2550cf796d
New temporary Electrum translation wiki page Wikia
When editing the translation page use the "source" editing option instead of the WYSIWYG "Visual" editor
12 years ago
ThomasV
76eff7fdb6
increasing version number, and wiki translation version
12 years ago
genjix
4494ac8ccc
Create locale/ directory when making i18n files.
13 years ago
thomasv
717c2de4d4
restore headers; needed for unicode
13 years ago
ThomasV
55a29960d5
omit header to make generation deterministic
13 years ago
ThomasV
d511a57810
request specific version of the wiki page
13 years ago
ThomasV
00d0905d40
strip translation messages
13 years ago
thomasv
6143625f41
print progress for each language
13 years ago
thomasv
029e7b1edc
do not print dict
13 years ago
thomasv
12b3a13fbb
add si; minor fix
13 years ago
thomasv
726d892d72
create locale dir
13 years ago
thomasv
09714636ef
version 0.50: localisation using gettext
13 years ago