Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Fixed use of old Albert interface - switched to new interface #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
import os
import json
import configparser
from albertv0 import *
from albert import *
from google.api_core.exceptions import *
from google.cloud import translate_v3beta1 as api
from urllib.parse import quote as quote_url

__iid__ = "PythonInterface/v0.2"
__author__ = "Dave Shoreman"
__prettyname__ = "Translate"
__version__ = "1.0.1"
__trigger__ = "tr "
__authors__ = "Dave Shoreman"
__title__ = "Translate"
__version__ = "0.0.1"
__triggers__ = "tr "
__dependencies__ = []

confPath = os.path.join(configLocation(), "translate.ini")
Expand Down Expand Up @@ -197,9 +197,9 @@ def badLanguageItem(query, lang):
"https://cloud.google.com/translate/docs/languages"))
return item

def makeItem(query=None, text=__prettyname__, subtext=""):
def makeItem(query=None, text=__title__, subtext=""):
return Item(
id=__prettyname__,
id=__title__,
icon=iconPath,
text=text,
subtext=subtext,
Expand Down