[pitivi] Formatters: Translate file filter menu. Fixes #584084



commit 05ac8b0f192c675df26a3e5203dbfe0d38e50c65
Author: Claude Paroz <claude 2xlibre net>
Date:   Thu May 28 09:38:24 2009 +0200

    Formatters: Translate file filter menu. Fixes #584084
---
 pitivi/formatters/format.py |    6 ++++--
 po/POTFILES.in              |    1 +
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/pitivi/formatters/format.py b/pitivi/formatters/format.py
index a91978e..532290a 100644
--- a/pitivi/formatters/format.py
+++ b/pitivi/formatters/format.py
@@ -23,6 +23,8 @@
 High-level tools for using Formatters
 """
 
+from gettext import gettext as _
+
 # FIXME : We need a registry of all available formatters
 
 def load_project(uri, formatter=None, missinguricallback=None):
@@ -103,8 +105,8 @@ def list_formats():
     from pitivi.formatters.etree import ElementTreeFormatter
     from pitivi.formatters.playlist import PlaylistFormatter
     return [
-        (ElementTreeFormatter, "PiTiVi Native (XML)", ('xptv',)),
-        (PlaylistFormatter, "Playlist format", ('pls', ))
+        (ElementTreeFormatter, _("PiTiVi Native (XML)"), ('xptv',)),
+        (PlaylistFormatter, _("Playlist format"), ('pls', ))
         ]
 
 def get_formatter_for_uri(uri):
diff --git a/po/POTFILES.in b/po/POTFILES.in
index df79ef7..07384d3 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -10,6 +10,7 @@ pitivi/stream.py
 pitivi/utils.py
 pitivi/factories/base.py
 pitivi/factories/file.py
+pitivi/formatters/format.py
 pitivi/ui/audiofxlist.py
 pitivi/ui/cam_capture.glade
 pitivi/ui/defaultpropertyeditor.py



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]