11 Commits

Author SHA1 Message Date
Chopper
7dea021357
MachineTranslations: Add font settings (#10307)
* Add font settings

* Bump version

* Fix utf-8

* Add open fonts

* Fix lint

* Update messages

* Fix filename

* Remove distinctBy
2025-10-02 23:59:08 +01:00
Chopper
41a275917d
MachineTranslations: Fix bad fragments and settings (#10239)
* Fix bad fragments and settings

* Bump version

* Use keiyoushi.utils.parseAs

* Avoid replacing default settings
2025-10-02 23:59:02 +01:00
Chopper
86e982fa3f
Solarmtl/Snowmtl: Add support for Spanish and Italian, and fix settings (#10224)
* Add support for Spanish and Italian

* Bump version

* Fix translator switch

* Add more options for font size

* Fix prefs

* Fix font size default

* Add support for translating manga details
2025-10-02 23:59:02 +01:00
Chopper
89beec2f78
Solarmtl: Add support to Indonesian and Arabic (#10213)
* Add support to Indonesian and Arabic

* Add settings to disable translator
2025-10-02 23:58:50 +01:00
AwkwardPeak7
060473aedf
use Preferences functions from utils (#7757)
* import all temporarily

* use `getPreferencesLazy()`

regex: lazy\s*\{\s*Injekt\.get<Application>\(\)\.getSharedPreferences\(\"source_\$id\"\, 0x0000\)(!!)?\s*\}

* use `getPreferences()`

regex: Injekt\.get<Application>\(\)\.getSharedPreferences\(\"source_\$id\"\, 0x0000\)(!!)?

* `getPreferences` and `getPreferencesLazy` with migration

regex to find: getPreferences\(\)\s*\.

* preferences edge cases

* run lint

* why kotlinter not add newline

* bruh

* bump

* unused import not caught by kotlinter

* review suggestions on all files

* bump after merge main

* review

* reduce usage of
2025-03-27 00:02:28 +00:00
Chopper
6fa43de2c5
MTL: Improves readability (#7682)
* Improves readability

* Update settings messages
2025-02-23 21:31:15 +00:00
Chopper
11d6ca37c3
Snowmtl: Add support to Google Translator (#7558)
* Add support to Google Translator

* Remove Request.Builder

* Remove unused code

* Refatoring

* Replace the hashmap with the when statement

* Improves readability

* Remove site color and add text outline
2025-02-23 21:31:14 +00:00
Chopper
643376e8a0
Snowmlt: Add support to arabic (#7514)
* Add support to arabic

* Refatoring
2025-02-23 21:31:14 +00:00
Chopper
0505a26934
MachineTranslations & Snowmtl: Fix the regex in the translator engine and add font size settings (#7465)
* Fix the regex in the translator engine and add font size settings

* Remove extra lines

* Remove rateLimit

* Remove init pref

* Use lazy statement in the snowmtl client

* Relax the exception and show pages without dialog

* Fix the translator's bad formatted response for some cases

* Change listener return to false

Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>

---------

Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>
2025-02-23 21:31:14 +00:00
Chopper
7ae3695832
Snowmtl: Fix json serializer (#7168)
* Fix json serializer

* Fix lint
2025-01-18 20:14:01 +00:00
Chopper
580b2b1b16
Move snowmlt to lib-multisrc and add Solarmtl (#7054)
* Move snowmlt to lib-multisrc

* Fix snowmtl

* Remove assets from src
2025-01-18 20:13:05 +00:00