Skip to content

Commit

Permalink
Merge pull request #101 from kianmeng/fix-typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
GustavoPeredo authored Apr 8, 2023
2 parents 24ecb36 + d989baa commit 3f2e198
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ They are here and need your help! Don't be afraid to open an issue or contribute
* ~~Show a little check for when a font is already installed~~
* ~~Add new filters (depending on alphabet, will probably require a redesign of the app)~~
* ~~Optimize code~~
* ~~Update to libhandy 1.0 and update glade files acordingly~~
* ~~Update to libhandy 1.0 and update glade files accordingly~~
* ~~Find a way to remove the "back_button" without check-resize~~
* ~~Fix fonts names~~
* ~~Translate new strings~~
Expand Down
2 changes: 1 addition & 1 deletion data/org.gustavoperedo.FontDownloader.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
<description>
<p> Version 3.11.0 </p>
<p> Improved russian translation</p>
<p> Fixed portguese application name </p>
<p> Fixed portuguese application name </p>
<p> Updated font lins and versions to latest </p>
<p> Version 3.0.0 </p>
<p>This release aims to be the last feature release:</p>
Expand Down
18 changes: 9 additions & 9 deletions src/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#Import nescessary libraries and modules
#Import necessary libraries and modules
#from gettext import gettext as _
from gi.repository import Gdk, Gio, Gtk, GLib, Handy, GObject, WebKit2, Pango
from os import path, makedirs, listdir, environ
Expand Down Expand Up @@ -142,7 +142,7 @@ class FontdownloaderWindow(Handy.Window):
style_textbox = Gtk.Template.Child()
text_buffer = Gtk.Template.Child()

#On initalization do:
#On initialization do:
def __init__(self, **kwargs):
super().__init__(**kwargs)
#Creates temporary variables for our window
Expand Down Expand Up @@ -247,7 +247,7 @@ def __init__(self, **kwargs):
#About dialog, courtesy of GeorgesStavracas
def on_about(self, *args, **kwargs):
authors = ['Gustavo Machado Peredo']
contributers = ['Georges Basile Stavracas Neto',
contributors = ['Georges Basile Stavracas Neto',
'Martin Abente Lahaye', 'Manuel Quiñones']
translators = ['Gustavo Machado Peredo', 'Victor Ibragimov',
'Manuel Quiñones', 'Heimen Stoffels', 'Jiri Grönroos',
Expand All @@ -262,7 +262,7 @@ def on_about(self, *args, **kwargs):
"drLaba", "Hugo", "nickavem"]
dialog = Gtk.AboutDialog(transient_for=self, modal=True)
dialog.props.authors = authors
dialog.add_credit_section(_("Contributers"), contributers)
dialog.add_credit_section(_("Contributors"), contributors)
dialog.add_credit_section(_("Translators"), translators)
dialog.props.copyright = 'Copyright \xa9 2021 Gustavo Peredo'
dialog.props.license_type = Gtk.License.GPL_3_0
Expand Down Expand Up @@ -347,9 +347,9 @@ def on_done_updating(result, error):
self.notification_label.set_label(_("Failed to install font. Check your internet connection and folder permissions"))
else:
if is_download:
self.notification_label.set_label(_("Font downloaded succesfully!"))
self.notification_label.set_label(_("Font downloaded successfully!"))
else:
self.notification_label.set_label(_("Font installed succesfully!"))
self.notification_label.set_label(_("Font installed successfully!"))
if data['family'] in str(self.jsonOfInstalledFonts['items']):
for i in range(len(self.jsonOfInstalledFonts['items'])):
if (self.jsonOfInstalledFonts['items'][i]['family'] == data['family']):
Expand Down Expand Up @@ -388,9 +388,9 @@ def on_done_updating(result, error):
self.notification_label.set_label(_("Failed to install font. Check your internet connection and folder permissions"))
else:
if is_download:
self.notification_label.set_label(_("Font downloaded succesfully!"))
self.notification_label.set_label(_("Font downloaded successfully!"))
else:
self.notification_label.set_label(_("Font installed succesfully!"))
self.notification_label.set_label(_("Font installed successfully!"))
if data['family'] in str(self.jsonOfInstalledFonts['items']):
for i in range(len(self.jsonOfInstalledFonts['items'])):
if (self.jsonOfInstalledFonts['items'][i]['family'] == data['family']):
Expand Down Expand Up @@ -492,7 +492,7 @@ def updateFilter(self, *args, **kwargs):
for i in range(len(self.fonts_list)):
self.fonts_list.remove(self.fonts_list.get_row_at_index(0))

#Add them if seen nescessary (this is faster than filtering them :P)
#Add them if seen necessary (this is faster than filtering them :P)
for i in range(len(webfontsData['items'])):
if webfontsData['items'][i]['category'] in filtered:
if searchBarText in webfontsData['items'][i]['family'].lower():
Expand Down
14 changes: 7 additions & 7 deletions src/windowX11.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#Import nescessary libraries and modules
#Import necessary libraries and modules
#from gettext import gettext as _
from gi.repository import Gdk, Gio, Gtk, GLib, Handy, GObject, WebKit2, Pango
from os import path, makedirs, listdir
Expand Down Expand Up @@ -142,7 +142,7 @@ class FontdownloaderWindow(Handy.Window):
style_textbox = Gtk.Template.Child()
text_buffer = Gtk.Template.Child()

#On initalization do:
#On initialization do:
def __init__(self, **kwargs):
super().__init__(**kwargs)
#Creates temporary variables for our window
Expand Down Expand Up @@ -247,7 +247,7 @@ def __init__(self, **kwargs):
#About dialog, courtesy of GeorgesStavracas
def on_about(self, *args, **kwargs):
authors = ['Gustavo Machado Peredo']
contributers = ['Georges Basile Stavracas Neto',
contributors = ['Georges Basile Stavracas Neto',
'Martin Abente Lahaye', 'Manuel Quiñones']
translators = ['Gustavo Machado Peredo', 'Victor Ibragimov',
'Manuel Quiñones', 'Heimen Stoffels', 'Jiri Grönroos',
Expand All @@ -259,7 +259,7 @@ def on_about(self, *args, **kwargs):
]
dialog = Gtk.AboutDialog(transient_for=self, modal=True)
dialog.props.authors = authors
dialog.add_credit_section(_("Contributers"), contributers)
dialog.add_credit_section(_("Contributors"), contributors)
dialog.add_credit_section(_("Translators"), translators)
dialog.props.copyright = 'Copyright \xa9 2021 Gustavo Peredo'
dialog.props.license_type = Gtk.License.GPL_3_0
Expand Down Expand Up @@ -345,9 +345,9 @@ def on_done_updating(result, error):
self.notification_label.set_label(_("Failed to install font. Check your internet connection and folder permissions"))
else:
if is_download:
self.notification_label.set_label(_("Font downloaded succesfully!"))
self.notification_label.set_label(_("Font downloaded successfully!"))
else:
self.notification_label.set_label(_("Font installed succesfully!"))
self.notification_label.set_label(_("Font installed successfully!"))
if data['family'] in str(self.jsonOfInstalledFonts['items']):
for i in range(len(self.jsonOfInstalledFonts['items'])):
if (self.jsonOfInstalledFonts['items'][i]['family'] == data['family']):
Expand Down Expand Up @@ -443,7 +443,7 @@ def updateFilter(self, *args, **kwargs):
for i in range(len(self.fonts_list)):
self.fonts_list.remove(self.fonts_list.get_row_at_index(0))

#Add them if seen nescessary (this is faster than filtering them :P)
#Add them if seen necessary (this is faster than filtering them :P)
for i in range(len(webfontsData['items'])):
if webfontsData['items'][i]['category'] in filtered:
if searchBarText in webfontsData['items'][i]['family'].lower():
Expand Down

0 comments on commit 3f2e198

Please sign in to comment.