Skip to content

Commit

Permalink
Menu: Update Help - Citing / About Wordless
Browse files Browse the repository at this point in the history
  • Loading branch information
BLKSerene committed Jun 21, 2024
1 parent 7175019 commit 1921905
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 13 deletions.
1 change: 1 addition & 0 deletions tests/wl_test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def __init__(self, switch_lang_utils = 'default'):

self.threads_check_updates = []
self.ver = wl_misc.get_wl_ver()
self.copyright_year = '2000'
self.email = '[email protected]'
self.email_html = '<a href="mailto:[email protected]">[email protected]</a>'

Expand Down
9 changes: 5 additions & 4 deletions wordless/wl_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ def __init__(self, loading_window):
self.threads_check_updates = []
# Version number
self.ver = wl_misc.get_wl_ver()
self.copyright_year = '2024'
# Email
self.email = '[email protected]'
self.email_html = '<a href="mailto:[email protected]">[email protected]</a>'
Expand Down Expand Up @@ -811,11 +812,11 @@ def select_citation_sys_changed(self):

if settings['select_citation_sys'].startswith('APA'):
self.set_info(
f'Ye, L. (2023). <i>Wordless</i> (Version {self.main.ver}) [Computer software]. Github. https://github.com/BLKSerene/Wordless'
f'Ye, L. ({self.main.copyright_year}). <i>Wordless</i> (Version {self.main.ver}) [Computer software]. Github. https://github.com/BLKSerene/Wordless'
)
elif settings['select_citation_sys'].startswith('MLA'):
self.set_info(
f'Ye Lei. <i>Wordless</i>, version {self.main.ver}, 2023. <i>Github</i>, https://github.com/BLKSerene/Wordless.'
f'Ye Lei. <i>Wordless</i>, version {self.main.ver}, {self.main.copyright_year}. <i>Github</i>, https://github.com/BLKSerene/Wordless.'
)

class Wl_Dialog_Donating(wl_dialogs.Wl_Dialog_Info):
Expand Down Expand Up @@ -1232,11 +1233,11 @@ def __init__(self, main):
</div>
<hr>
<div align="center">
Copyright (C) 2018-2023&nbsp;&nbsp;Ye Lei (叶磊)<br>
Copyright (C) 2018-{}&nbsp;&nbsp;Ye Lei (叶磊)<br>
Licensed Under GNU GPLv3<br>
All Other Rights Reserved
</div>
'''),
''').format(self.main.copyright_year),
self
)

Expand Down
2 changes: 1 addition & 1 deletion wordless/wl_widgets/wl_boxes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ----------------------------------------------------------------------
# Wordless: Widgets - Boxes
# Copyright (C) 2018-2023 Ye Lei (叶磊)
# Copyright (C) 2018-2024 Ye Lei (叶磊)
#
# 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
Expand Down
2 changes: 1 addition & 1 deletion wordless/wl_widgets/wl_buttons.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ----------------------------------------------------------------------
# Wordless: Widgets - Buttons
# Copyright (C) 2018-2023 Ye Lei (叶磊)
# Copyright (C) 2018-2024 Ye Lei (叶磊)
#
# 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
Expand Down
2 changes: 1 addition & 1 deletion wordless/wl_widgets/wl_editors.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ----------------------------------------------------------------------
# Wordless: Widgets - Editors
# Copyright (C) 2018-2023 Ye Lei (叶磊)
# Copyright (C) 2018-2024 Ye Lei (叶磊)
#
# 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
Expand Down
2 changes: 1 addition & 1 deletion wordless/wl_widgets/wl_item_delegates.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ----------------------------------------------------------------------
# Wordless: Widgets - Item delegates
# Copyright (C) 2018-2023 Ye Lei (叶磊)
# Copyright (C) 2018-2024 Ye Lei (叶磊)
#
# 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
Expand Down
2 changes: 1 addition & 1 deletion wordless/wl_widgets/wl_labels.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ----------------------------------------------------------------------
# Wordless: Widgets - Labels
# Copyright (C) 2018-2023 Ye Lei (叶磊)
# Copyright (C) 2018-2024 Ye Lei (叶磊)
#
# 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
Expand Down
2 changes: 1 addition & 1 deletion wordless/wl_widgets/wl_layouts.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ----------------------------------------------------------------------
# Wordless: Widgets - Layouts
# Copyright (C) 2018-2023 Ye Lei (叶磊)
# Copyright (C) 2018-2024 Ye Lei (叶磊)
#
# 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
Expand Down
2 changes: 1 addition & 1 deletion wordless/wl_widgets/wl_lists.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ----------------------------------------------------------------------
# Wordless: Widgets - Lists
# Copyright (C) 2018-2023 Ye Lei (叶磊)
# Copyright (C) 2018-2024 Ye Lei (叶磊)
#
# 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
Expand Down
2 changes: 1 addition & 1 deletion wordless/wl_widgets/wl_tables.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ----------------------------------------------------------------------
# Wordless: Widgets - Tables
# Copyright (C) 2018-2023 Ye Lei (叶磊)
# Copyright (C) 2018-2024 Ye Lei (叶磊)
#
# 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
Expand Down
2 changes: 1 addition & 1 deletion wordless/wl_widgets/wl_widgets.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ----------------------------------------------------------------------
# Wordless: Widgets - Widgets
# Copyright (C) 2018-2023 Ye Lei (叶磊)
# Copyright (C) 2018-2024 Ye Lei (叶磊)
#
# 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
Expand Down

0 comments on commit 1921905

Please sign in to comment.