Updated fr_FR translation from Thierry Journet.
[dcpomatic.git] / src / tools / dcpomatic_playlist.cc
index 0b8f935b3aaf0d8dc02ba1b3e7dcd0599b092e10..64549765fd8acad416c823bf3fdc69694c519a39 100644 (file)
@@ -32,6 +32,9 @@
 #include <wx/wx.h>
 #include <wx/listctrl.h>
 #include <wx/imaglist.h>
+#ifdef __WXOSX__
+#include <ApplicationServices/ApplicationServices.h>
+#endif
 
 using std::exception;
 using std::cout;
@@ -174,7 +177,7 @@ private:
                _list->SetItem (N, 1, std_to_wx(e.id));
                _list->SetItem (N, 2, std_to_wx(dcp::content_kind_to_string(e.kind)));
                _list->SetItem (N, 3, e.type == SPLEntry::DCP ? _("DCP") : _("E-cinema"));
-               _list->SetItem (N, 4, e.encrypted ? _("Y") : _("N"));
+               _list->SetItem (N, 4, e.encrypted ? S_("Question|Y") : S_("Question|N"));
                _list->SetItem (N, COLUMN_SKIPPABLE, wxEmptyString, e.skippable ? 0 : 1);
                _list->SetItem (N, COLUMN_DISABLE_TIMELINE, wxEmptyString, e.disable_timeline ? 0 : 1);
                _list->SetItem (N, COLUMN_STOP_AFTER_PLAY, wxEmptyString, e.stop_after_play ? 0 : 1);
@@ -283,7 +286,9 @@ private:
                wxString default_dir = c->player_playlist_directory() ? std_to_wx(c->player_playlist_directory()->string()) : wxString(wxEmptyString);
                wxFileDialog* d = new wxFileDialog (this, _("Select playlist file"), default_dir, wxEmptyString, wxT("XML files (*.xml)|*.xml"), wxFD_SAVE | wxFD_OVERWRITE_PROMPT);
                if (d->ShowModal() == wxID_OK) {
-                       _playlist.write (wx_to_std(d->GetPath()));
+                       boost::filesystem::path file = wx_to_std (d->GetPath());
+                       file.replace_extension (".xml");
+                       _playlist.write (file);
                }
        }
 
@@ -349,7 +354,7 @@ private:
                unsetenv ("UBUNTU_MENUPROXY");
 #endif
 
-               #ifdef __WXOSX__
+#ifdef __WXOSX__
                ProcessSerialNumber serial;
                GetCurrentProcess (&serial);
                TransformProcessType (&serial, kProcessTransformToForegroundApplication);