Commit e57d9c3c authored by GustavoPeredo's avatar GustavoPeredo
Browse files

Fixed tranlation bugs

parent 3dd92ace
......@@ -57,5 +57,5 @@ They are here and need your help! I translated the app for languages that I've h
* ~~Optimize code~~
* ~~Update to libhandy 1.0 and update glade files acordingly~~
* ~~Find a way to remove the "back_button" without check-resize~~
* Fix fonts names
* Update new strings
* ~~Fix fonts names~~
* Translate new strings
......@@ -45,7 +45,8 @@ class FontBox(Gtk.Box):
#Set labels' texts
self.fontFamily.set_text(familyName)
#Change category to it's translation
self.fontCategory.set_text(category.replace('sans-serif',(_('sans-serif')).replace('serif',(_('serif'))).replace('display',(_('display'))).replace('monospaced',(_('monospaced'))).replace('handwriting',(_('handwriting')))))
self.fontCategory.set_text(_('sans-serif') if category=='sans-serif' else (_('serif') if category=='serif' else (_('display') if category=='display' else (_('monospaced') if category=='monospaced' else _('handwriting')))))
#Here we import the main window template
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment