Permalink
Browse files

Made text in audiorecord dialog boxes localizable

  • Loading branch information...
1 parent 09086b5 commit ab6bb7263f0fa9556bbb9c2c14bf1ebe8616c4a0 @yuvipanda committed Feb 25, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 pitivi/ui/audiorecord.py
@@ -1,3 +1,5 @@
+from gettext import gettext as _
+
import tempfile
import os
import shutil
@@ -119,14 +121,14 @@ def _save_file(self):
if self._sourceExists('file:///' + self.file_path):
iBox = gtk.MessageDialog(self.audiosave_dialog,
gtk.DIALOG_MODAL, gtk.MESSAGE_INFO, gtk.BUTTONS_OK,
- "File already exists in the project and cannot be overwritten. Please choose a different filename")
+ _("File already exists in the project and cannot be overwritten. Please choose a different filename"))
iBox.run()
iBox.destroy()
self._save_file()
return
mBox = gtk.MessageDialog(self.audiosave_dialog,
gtk.DIALOG_MODAL, gtk.MESSAGE_QUESTION, gtk.BUTTONS_YES_NO,
- "File already exists. Do you want to overwrite it?")
+ _("File already exists. Do you want to overwrite it?"))
mresponse = mBox.run()
mBox.destroy()
if mresponse == gtk.RESPONSE_NO:

0 comments on commit ab6bb72

Please sign in to comment.