Commit graph

3024 commits

Author SHA1 Message Date
Daniel
b8551d9739
translate: translated using Weblate (Spanish)
Currently translated at 56.7% (139 of 245 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/es/
2022-12-04 22:47:16 +01:00
c704d7bf2f
Introduce new logging facility (#669)
# Description

This PR introduces a new logger module and converts any log message that
used `buglog()` before, to use one of five new functions from Logger
class.

## Type of change

<!-- What type of change does your pull request introduce? Put an `x` in
the box that apply. -->
- [ ] Bugfix (Change which fixes a issue)
- [x] New feature (Change which adds new functionality)
- [ ] Enhancement (Change which slightly improves existing code)
- [ ] Breaking change (This change will introduce incompatibility with
existing functionality)

## Changelog <!-- This is optional, but highly appreciated. -->

- Introduce new `backend/logger` facility
- Convert log messages from `buglog()` to a new Logger functions

## Testing

- [x] I have tested my changes and verified that they work as expected
<!-- Required, your PR won't be accepted if you don't do this step. -->

### How to test the changes

<!-- Optional, it can speed up review process if you provide the
information on how to test your changes. -->
Run Gradience in debug mode for the best experience.
2022-12-04 16:09:53 +03:00
Hosted Weblate
960fd90dd6
translate: update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
2022-12-04 13:14:07 +01:00
Hosted Weblate
326a51dc9b
translate: merge branch 'origin/main' into Weblate. 2022-12-04 13:14:05 +01:00
Ali Aljishi
87aa53f46e
translate: translated using Weblate (Arabic)
Currently translated at 100.0% (245 of 245 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/ar/
2022-12-04 13:14:05 +01:00
Gradience Bot
3450bd858d ci: generate .pot file 2022-12-04 12:14:01 +00:00
tfuxu
81012fda85
Merge branch 'main' into new-logger 2022-12-04 01:47:31 +01:00
Hosted Weblate
c1479794ed
translate: update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
2022-12-04 01:40:33 +01:00
Gradience Bot
faf800545b ci: generate .pot file 2022-12-04 00:40:04 +00:00
tfuxu
a6c6881365
fix: use Github's auto-generated repository token
Signed-off-by: tfuxu <73042332+tfuxu@users.noreply.github.com>
2022-12-03 23:30:54 +00:00
tfuxu
cbdcc517d2
Merge branch 'main' into new-logger 2022-12-04 00:21:01 +01:00
tfuxu
a8c83d1935
feat: introduce new backend/logger module
This commit introduces a new logger module and converts any log message that used buglog() to use one of five new functions from Logger class.
2022-12-04 00:00:18 +01:00
8f619edc65 feat: fix name 2022-12-03 21:58:20 +03:00
64e7686714 feat: improved release notes by @tfuxu 2022-12-03 21:55:27 +03:00
tfuxu
3215e529cf
translate: translated using Weblate (Polish)
Currently translated at 99.5% (243 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/pl/
2022-12-03 18:47:51 +01:00
tfuxu
6c5698f844
UX: add tooltip text to Preview Theme button 2022-12-03 18:41:50 +01:00
d339c35279 feat: add new changes 2022-12-03 18:59:23 +03:00
tfuxu
3f10e87e04
Move modules to new backend/frontend directories (#668)
# Description

This is a yet another refactoring PR (I promise this will be the last
_major_ one), this time I based it on a codebase structure used by
Bottles project. The new structure should be more readable, and easier
to navigate. Also, as a nice small bonus, I've included `struct.md`
files inside `frontend/` and `backend/` directories with small
descriptions for subdirectories.

## Type of change

<!-- What type of change does your pull request introduce? Put an `x` in
the box that apply. -->
- [x] Refactor
- [ ] Bugfix (Change which fixes a issue)
- [ ] New feature (Change which adds new functionality)
- [ ] Enhancement (Change which slightly improves existing code)
- [ ] Breaking change (This change will introduce incompatibility with
existing functionality)

## Changelog <!-- This is optional, but highly appreciated. -->

- Rename `utils/css.py` to `utils/css_parser.py` and
`utils/custom_presets.py` to `utils/preset_downloader.py`,
- Move modules to new backend/frontend directories,
- Change module name from `utils.py` to `common.py`,
- Format some modules for better readability

## Testing

- [x] I have tested my changes and verified that they work as expected
<!-- Required, your PR won't be accepted if you don't do this step. -->

### How to test the changes

Just check if everything is working as expected in every build method
(I've tested this PR with manual and Flatpak methods)
2022-12-03 16:48:02 +01:00
tfuxu
ca9970d23b
Merge branch 'main' into rework-code-structure 2022-12-03 13:43:51 +01:00
Hosted Weblate
eb2b4a5b26
translate: update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
2022-12-03 13:12:45 +01:00
Gradience Bot
62c99f34f9 ci: generate .pot file 2022-12-03 12:12:40 +00:00
yangyangdaji
b58ece34cb
translate: translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/zh_Hans/
2022-12-03 04:48:07 +01:00
Hosted Weblate
f94f2a7c49
translate: update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/
2022-12-03 01:40:40 +01:00
Gradience Bot
eae39a3925 ci: generate .pot file 2022-12-03 00:37:44 +00:00
tfuxu
91b532ae9c
Merge branch 'main' into rework-code-structure 2022-12-02 23:56:10 +01:00
tfuxu
df73f3d006
misc: make code more readable 2022-12-02 23:37:41 +01:00
tfuxu
5e42501691
rename: change module name from utils.py to common.py 2022-12-02 23:21:55 +01:00
tfuxu
30a9fdb613
move modules to new backend/frontend directories 2022-12-02 22:52:47 +01:00
Sabri Ünal
e956b64a39
translate: translated using Weblate (Turkish)
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/tr/
2022-12-02 22:47:43 +01:00
rene-coty
56663066f7
translate: translated using Weblate (French)
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/fr/
2022-12-02 22:47:43 +01:00
Ali Aljishi
48828fd860
translate: translated using Weblate (Arabic)
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/ar/
2022-12-02 20:47:43 +01:00
Ali Aljishi
b2b3c4d60c
translate: translated using Weblate (Arabic)
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/ar/
2022-12-02 19:03:34 +01:00
9d61a36b79
translate: translated using Weblate (Ukrainian)
Currently translated at 0.8% (2 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/uk/
2022-12-02 19:01:55 +01:00
5f36f89e5d
translate: translated using Weblate (Romanian)
Currently translated at 88.9% (217 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/ro/
2022-12-02 19:01:55 +01:00
6feeef720c
translate: translated using Weblate (Indonesian)
Currently translated at 19.6% (48 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/id/
2022-12-02 19:01:54 +01:00
9b9713973f
translate: translated using Weblate (Korean)
Currently translated at 88.5% (216 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/ko/
2022-12-02 19:01:54 +01:00
27324f06e9
translate: translated using Weblate (Finnish)
Currently translated at 88.1% (215 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/fi/
2022-12-02 19:01:52 +01:00
71f9a82a9e
translate: translated using Weblate (Basque)
Currently translated at 47.1% (115 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/eu/
2022-12-02 19:01:52 +01:00
936e7f0e2a
translate: translated using Weblate (Tamil)
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/ta/
2022-12-02 19:01:51 +01:00
92e7478514
translate: translated using Weblate (Croatian)
Currently translated at 99.1% (242 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/hr/
2022-12-02 19:01:46 +01:00
4c9a335a0c
translate: translated using Weblate (Swedish)
Currently translated at 34.4% (84 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/sv/
2022-12-02 19:01:45 +01:00
aaf83d46e3
translate: translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/zh_Hans/
2022-12-02 19:01:44 +01:00
9650dcfd2f
translate: translated using Weblate (Italian)
Currently translated at 99.5% (243 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/it/
2022-12-02 19:01:44 +01:00
7514af1e39
translate: translated using Weblate (Occitan)
Currently translated at 20.4% (50 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/oc/
2022-12-02 19:01:43 +01:00
6416f1d80c
translate: translated using Weblate (Polish)
Currently translated at 88.1% (215 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/pl/
2022-12-02 19:01:42 +01:00
a10c568b8f
translate: translated using Weblate (Spanish)
Currently translated at 50.0% (122 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/es/
2022-12-02 19:01:42 +01:00
d9813b58af
translate: translated using Weblate (Dutch)
Currently translated at 99.5% (243 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/nl/
2022-12-02 19:01:41 +01:00
c89b361634
translate: translated using Weblate (Turkish)
Currently translated at 98.3% (240 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/tr/
2022-12-02 19:01:40 +01:00
8ef177850a
translate: translated using Weblate (Russian)
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/ru/
2022-12-02 19:01:39 +01:00
faf82d6849
translate: translated using Weblate (Portuguese (Brazil))
Currently translated at 47.1% (115 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/pt_BR/
2022-12-02 19:01:39 +01:00