Skip to content

Commit

Permalink
Change default lingva translate instance
Browse files Browse the repository at this point in the history
  • Loading branch information
1over137 committed Sep 3, 2023
1 parent 8d9ac9a commit 5650b9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion vocabsieve/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ def setupAutosave(self):
self.register_config_handler(
self.gtrans_api,
'gtrans_api',
'https://lingva.ml')
'https://lingva.lunar.icu')

self.register_config_handler(self.reader_font, "reader_font", "serif")
self.register_config_handler(self.reader_fontsize, "reader_fontsize", 14)
Expand Down
3 changes: 1 addition & 2 deletions vocabsieve/dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def preprocess_clipboard(s: str, lang: str, should_convert_to_uppercase: bool =
"""
# Convert the first letter to uppercase if should_convert_to_uppercase is True
if should_convert_to_uppercase:
print("Uppercasing")
return s[0].upper() + s[1:]
else:
return s
Expand Down Expand Up @@ -183,7 +182,7 @@ def lookupin(
greedy_lemmatize: bool=False,
dictionary: str="Wiktionary (English)",
gtrans_lang: str="en",
gtrans_api: str="https://lingva.ml") -> Optional[LookUpResults]:
gtrans_api: str="https://lingva.lunar.icu") -> Optional[LookUpResults]:
# Remove any punctuation other than a hyphen
# @language is code
if not word:
Expand Down
2 changes: 1 addition & 1 deletion vocabsieve/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ def lookup(self, word: str, use_lemmatize: bool) -> LookUpResults:
lem_greedily,
dictname,
gtrans_lang,
self.settings.value("gtrans_api", "https://lingva.ml"))
self.settings.value("gtrans_api", "https://lingva.lunar.icu"))
except Exception as e:
self.status(repr(e))
item = {
Expand Down

0 comments on commit 5650b9f

Please sign in to comment.