returnwx.MessageDialog(parent,_("This retweet is over 140 characters. Would you like to post it as a mention to the poster with your comments and a link to the original tweet?"),application.name,wx.YES_NO|wx.ICON_QUESTION).ShowModal()
defretweet_question(parent):
returnwx.MessageDialog(parent,_("Would you like to add a comment to this tweet?"),_("Retweet"),wx.YES_NO|wx.CANCEL|wx.ICON_QUESTION).ShowModal()
defdelete_tweet_dialog(parent):
returnwx.MessageDialog(parent,_("Do you really want to delete this tweet? It will be deleted from Twitter as well."),_("Delete"),wx.ICON_QUESTION|wx.YES_NO).ShowModal()
defexit_dialog(parent):
dlg=wx.MessageDialog(parent,_("Do you really want to close {0}?").format(application.name,),_("Exit"),wx.YES_NO|wx.ICON_QUESTION)
returndlg.ShowModal()
defneeds_restart():
wx.MessageDialog(None,_("{0} must be restarted for these changes to take effect.").format(application.name,),_("Restart {0}").format(application.name,),wx.OK).ShowModal()
defdelete_user_from_db():
returnwx.MessageDialog(None,_("Are you sure you want to delete this user from the database? This user will not appear in autocomplete results anymore."),_("Confirm"),wx.YES_NO|wx.ICON_QUESTION).ShowModal()
defget_ignored_client():
entry=wx.TextEntryDialog(None,_("Enter the name of the client : "),_("Add client"))
ifentry.ShowModal()==wx.ID_OK:
returnentry.GetValue()
returnNone
defclear_list():
dlg=wx.MessageDialog(None,_("Do you really want to empty this buffer? It's items will be removed from the list but not from Twitter"),_("Empty buffer"),wx.ICON_QUESTION|wx.YES_NO)
returndlg.ShowModal()
defremove_buffer():
returnwx.MessageDialog(None,_("Do you really want to destroy this buffer?"),_("Attention"),style=wx.ICON_QUESTION|wx.YES_NO).ShowModal()
defuser_not_exist():
returnwx.MessageDialog(None,_("That user does not exist"),_("Error"),wx.ICON_ERROR).ShowModal()
deftimeline_exist():
returnwx.MessageDialog(None,_("A timeline for this user already exists. You can't open another"),_("Existing timeline"),wx.ICON_ERROR).ShowModal()
defno_tweets():
returnwx.MessageDialog(None,_("This user has no tweets, so you can't open a timeline for them."),_("Error!"),wx.ICON_ERROR).ShowModal()
defprotected_user():
returnwx.MessageDialog(None,_("This is a protected Twitter user, which means you can't open a timeline using the Streaming API. The user's tweets will not update due to a twitter policy. Do you want to continue?"),_("Warning"),wx.ICON_WARNING|wx.YES_NO).ShowModal()
defno_following():
returnwx.MessageDialog(None,_("This is a protected user account, you need to follow this user to view their tweets or likes."),_("Error"),wx.ICON_ERROR).ShowModal()
defdonation():
dlg=wx.MessageDialog(None,_("If you like {0} we need your help to keep it going. Help us by donating to the project. This will help us pay for the server, the domain and some other things to ensure that {0} will be actively maintained. Your donation will give us the means to continue the development of {0}, and to keep {0} free. Would you like to donate now?").format(application.name),_("We need your help"),wx.ICON_QUESTION|wx.YES_NO)
returndlg.ShowModal()
defno_tweets():
returnwx.MessageDialog(None,_("This user has no tweets. {0} can't create a timeline.").format(application.name),_("Error"),wx.ICON_ERROR).ShowModal()
defno_favs():
returnwx.MessageDialog(None,_("This user has no favorited tweets. {0} can't create a timeline.").format(application.name),_("Error"),wx.ICON_ERROR).ShowModal()
defno_followers():
returnwx.MessageDialog(None,_("This user has no followers. {0} can't create a timeline.").format(application.name),_("Error"),wx.ICON_ERROR).ShowModal()
defno_friends():
returnwx.MessageDialog(None,_("This user has no friends. {0} can't create a timeline.").format(application.name),_("Error"),wx.ICON_ERROR).ShowModal()
defview_geodata(geotext):
"""Specific message dialog to display geolocation data"""
returnwx.MessageDialog(None,_("Geolocation data: {0}").format(geotext),_("Geo data for this tweet")).ShowModal()
defchanged_keymap():
returnwx.MessageDialog(None,_("TWBlue has detected that you're running windows 10 and has changed the default keymap to the Windows 10 keymap. It means that some keyboard shorcuts could be different. Please check the keystroke editor by pressing Alt+Win+K to see all available keystrokes for this keymap."),_("Information"),wx.OK).ShowModal()
defunauthorized():
returnwx.MessageDialog(None,_("You have been blocked from viewing this content"),_("Error"),wx.OK).ShowModal()
defblocked_timeline():
returnwx.MessageDialog(None,_("You have been blocked from viewing someone's content. In order to avoid conflicts with the full session, TWBlue will remove the affected timeline."),_("Error"),wx.OK).ShowModal()
defsuspended_user():
returnwx.MessageDialog(None,_("TWBlue cannot load this timeline because the user has been suspended from Twitter."),_("Error"),wx.OK).ShowModal()