Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit c2454d3

Browse files
committed
Dil dosyaları bulunamadığında indirme eklendi
1 parent c9ee6b6 commit c2454d3

File tree

2 files changed

+35
-13
lines changed

2 files changed

+35
-13
lines changed

README.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Anka
44

5-
Anka Browser v1.9
5+
Anka Browser v1.9.5
66

77
## What is Anka Browser?
88

@@ -12,12 +12,13 @@ You can download and use Anka Browser in every Python installed device.
1212

1313
---
1414

15-
## Anka v1.9 Beta:
15+
## Anka v1.9.5:
1616

17-
- ### Bookmarks Beta:
18-
Now, bookmars added. But beta version.
19-
17+
- ### Better Project Struct
2018

19+
- ### Bookmarks:
20+
Now, bookmars added.
21+
2122
- ### Languages:
2223
Now, Anka Browser is support two language. Türkçe(Turkish) and English. You can change language from settings.
2324

@@ -46,14 +47,6 @@ You can download and use Anka Browser in every Python installed device.
4647
![Screenshot2](./.github/docs/img/image2.png)
4748
![Screenshot3](./.github/docs/img/image3.png)
4849

49-
## Imported Python libraries in project:
50-
51-
- PyQt6
52-
- sys
53-
- os
54-
- configparser
55-
- json
56-
5750
## How I download Anka Browser?
5851
- Download latest version from Releases.
5952
- And extract it.

anka-browser.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
import configparser
88
import json
99
import re
10+
import requests
1011

12+
tr_json_url = "https://raw.githubusercontent.com/gamerYazilimci45/Anka/main/public/browser/languages/tr-TR.json"
13+
en_json_url = "https://raw.githubusercontent.com/gamerYazilimci45/Anka/main/public/browser/languages/en-US.json"
1114

1215
home = os.path.expanduser('~')
1316
config_anka = f"{home}/.config/Anka"
@@ -16,6 +19,19 @@
1619
os.makedirs(config_anka)
1720

1821
config_path = f"{config_anka}/config.conf"
22+
browser_path = f"{config_anka}/public/browser"
23+
24+
25+
if not os.path.exists(browser_path):
26+
os.makedirs(browser_path)
27+
28+
29+
languages_path = f"{browser_path}/languages"
30+
if not os.path.exists(languages_path):
31+
os.makedirs(languages_path)
32+
33+
tr_json = f"{languages_path}/tr-TR.json"
34+
en_json = f"{languages_path}/en-EN.json"
1935

2036
if not os.path.exists(config_path):
2137
with open(config_path, 'w') as cf:
@@ -30,6 +46,19 @@
3046
language = tr-TR
3147
""")
3248

49+
if not os.path.exists(tr_json):
50+
response = requests.get(tr_json_url)
51+
response.raise_for_status()
52+
53+
with open(tr_json, 'x', encoding="utf-8") as jsonn:
54+
json.dump(response.json(), jsonn, ensure_ascii=False, indent=4)
55+
56+
if not os.path.exists(en_json):
57+
response = requests.get(en_json_url)
58+
response.raise_for_status()
59+
60+
with open(en_json, 'x', encoding="utf-8") as jsonn:
61+
json.dump(response.json(), jsonn, ensure_ascii=False, indent=4)
3362

3463
config = configparser.ConfigParser()
3564
config.read(config_path)

0 commit comments

Comments
 (0)