Some text fixes, fix for turkey locales in arrow

This commit is contained in:
Manuel Cortez 2015-03-15 18:24:15 -06:00
parent 69aa27c33e
commit ca9f5b0c30
7 changed files with 2363 additions and 2459 deletions

View File

@ -939,7 +939,7 @@ class Controller(object):
def manage_mentions(self, data, user): def manage_mentions(self, data, user):
buffer = self.search_buffer("mentions", user) buffer = self.search_buffer("mentions", user)
play_sound = "mention_received.ogg" play_sound = "mention_received.ogg"
message = _(u"New mention") message = _(u"One mention from %s ") % (data["user"]["name"])
if "mentions" not in buffer.session.settings["other_buffers"]["muted_buffers"]: if "mentions" not in buffer.session.settings["other_buffers"]["muted_buffers"]:
self.notify(buffer.session, play_sound=play_sound, message=message) self.notify(buffer.session, play_sound=play_sound, message=message)
buffer.add_new_item(data) buffer.add_new_item(data)

View File

@ -60,7 +60,7 @@ class basicTweet(object):
def unshorten(self, event=None): def unshorten(self, event=None):
urls = utils.find_urls_in_text(self.message.get_text()) urls = utils.find_urls_in_text(self.message.get_text())
if len(urls) == 0: if len(urls) == 0:
output.speak(_(u"There's no URL to be sexpanded")) output.speak(_(u"There's no URL to be expanded"))
self.message.text_focus() self.message.text_focus()
elif len(urls) == 1: elif len(urls) == 1:
self.message.set_text(self.message.get_text().replace(urls[0], url_shortener.unshorten(urls[0]))) self.message.set_text(self.message.get_text().replace(urls[0], url_shortener.unshorten(urls[0])))

View File

@ -3,10 +3,13 @@ from arrow import locales
from arrow.locales import Locale from arrow.locales import Locale
def fix(): def fix():
''' This function adds the Catala, Basque and galician locales to the list of locales supported in Arrow''' ''' This function adds the Catala, Basque and galician locales to the list of locales supported in Arrow.
it also fixes capitalizations in names from turkish and arabian locales.'''
locales.CatalaLocale = CatalaLocale locales.CatalaLocale = CatalaLocale
locales.GalicianLocale = GalicianLocale locales.GalicianLocale = GalicianLocale
locales.BasqueLocale = BasqueLocale locales.BasqueLocale = BasqueLocale
locales.TurkishLocale.names[-1] = "tr_tr"
locales.ArabicLocale.names[-1] = "ar_eg"
# We need to reassign the locales list for updating the list with our new contents. # We need to reassign the locales list for updating the list with our new contents.
locales._locales = locales._map_locales() locales._locales = locales._map_locales()

View File

@ -27,4 +27,4 @@ def progress_callback(total_downloaded, total_size):
progress_dialog.Update((total_downloaded*100)/total_size, _(u"Updating... %s of %s") % (str(utils.convert_bytes(total_downloaded)), str(utils.convert_bytes(total_size)))) progress_dialog.Update((total_downloaded*100)/total_size, _(u"Updating... %s of %s") % (str(utils.convert_bytes(total_downloaded)), str(utils.convert_bytes(total_size))))
def update_finished(): def update_finished():
ms = wx.MessageDialog(None, _(u"The new Lees version has been downloaded and installed. Press OK to start the application."), _(u"Done!")).ShowModal() ms = wx.MessageDialog(None, _(u"The new TWBlue version has been downloaded and installed. Press OK to start the application."), _(u"Done!")).ShowModal()

View File

@ -31,14 +31,14 @@ class SysTrayIcon(wx.TaskBarIcon):
self.SetIcon(icon, application.name) self.SetIcon(icon, application.name)
self.menu=wx.Menu() self.menu=wx.Menu()
self.tweet = self.menu.Append(wx.ID_ANY, _(u"Tweet")) self.tweet = self.menu.Append(wx.ID_ANY, _(u"Tweet"))
self.global_settings = self.menu.Append(wx.ID_ANY, _(u"Global settings")) self.global_settings = self.menu.Append(wx.ID_ANY, _(u"&Global settings"))
self.account_settings = self.menu.Append(wx.ID_ANY, _(u"Account settings")) self.account_settings = self.menu.Append(wx.ID_ANY, _(u"Account se&ttings"))
self.update_profile = self.menu.Append(wx.ID_ANY, _(u"Update profile")) self.update_profile = self.menu.Append(wx.ID_ANY, _(u"Update &profile"))
self.show_hide = self.menu.Append(wx.ID_ANY, _(u"Show / hide")) self.show_hide = self.menu.Append(wx.ID_ANY, _(u"&Show / hide"))
self.doc = self.menu.Append(wx.ID_ANY, _(u"Documentation")) self.doc = self.menu.Append(wx.ID_ANY, _(u"&Documentation"))
self.doc.Enable(False) self.doc.Enable(False)
self.check_for_updates = self.menu.Append(wx.ID_ANY, _(u"Check for updates")) self.check_for_updates = self.menu.Append(wx.ID_ANY, _(u"Check for &updates"))
self.exit = self.menu.Append(wx.ID_ANY, _(u"Exit")) self.exit = self.menu.Append(wx.ID_ANY, _(u"&Exit"))
def show_menu(self): def show_menu(self):
self.PopupMenu(self.menu) self.PopupMenu(self.menu)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff