anki-word-query/addons21/fastwq/constants.py

46 lines
1.7 KiB
Python
Raw Normal View History

2018-07-01 10:55:30 +08:00
#-*- coding:utf-8 -*-
#
2018-07-27 17:57:00 +08:00
# Copyright (C) 2018 sthoo <sth201807@gmail.com>
2018-07-01 10:55:30 +08:00
#
# Support: Report an issue at https://github.com/sth2018/FastWordQuery/issues
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version; http://www.gnu.org/copyleft/gpl.html.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from .lang import _
2018-07-14 15:24:21 +08:00
__all__ = ['VERSION', 'Endpoint', 'Template']
2018-07-01 10:55:30 +08:00
2018-08-19 21:05:47 +08:00
VERSION = 'v1.2.7'
2018-07-01 10:55:30 +08:00
class Endpoint:
2018-07-02 21:04:57 +08:00
repository = u'https://github.com/sth2018/FastWordQuery'
2018-07-01 10:55:30 +08:00
feedback_issue = u'https://github.com/sth2018/FastWordQuery/issues'
2018-07-07 17:48:15 +08:00
feedback_mail = u'sth201807@gmail.com'
2018-07-02 21:04:57 +08:00
check_version = u'sth2018/FastWordQuery'
2018-07-08 00:53:42 +08:00
user_guide = u'https://sth2018.github.io/FastWordQuery'
2018-07-09 16:23:17 +08:00
version = VERSION
2018-07-01 10:55:30 +08:00
class Template:
2018-07-08 00:53:42 +08:00
tmpl_about = u'''<b>{t0}</b><br/>{version}<br/><b>{t1}</b><br/>
<a href="{url}">{url}</a><br/><b>{t2}</b><br/>
<a href="{feedback0}">{feedback0}</a><br/>
<a href="mailto:{feedback1}">{feedback1}</a>'''.format(
t0=_('VERSION'), version=VERSION,
2018-07-02 21:04:57 +08:00
t1=_('REPOSITORY'), url=Endpoint.repository,
2018-07-01 10:55:30 +08:00
t2=_('FEEDBACK'), feedback0=Endpoint.feedback_issue, feedback1=Endpoint.feedback_mail)
2018-07-08 00:53:42 +08:00
miss_css = u'MDX dictonary <b>{dict}</b> misses css file <b>{css}</b>. <br/>Please choose the file.'