Basic (untested) ebur128 (#368).
[dcpomatic.git] / src / wx / config_dialog.cc
index b5398c578542556e7f433c5e55001c3c55bf9940..fe305604418dcf5b724b64fe206c66fe6cd47775 100644 (file)
@@ -167,10 +167,11 @@ private:
                _language->Append (wxT ("Русский"));
                _language->Append (wxT ("Polski"));
                _language->Append (wxT ("Dansk"));
+               _language->Append (wxT ("Português europeu"));
                table->Add (_language, wxGBPosition (r, 1));
                ++r;
 
-               wxStaticText* restart = add_label_to_grid_bag_sizer (
+               wxStaticText* restart = add_label_to_sizer (
                        table, _panel, _("(restart DCP-o-matic to see language changes)"), false, wxGBPosition (r, 0), wxGBSpan (1, 2)
                        );
                wxFont font = restart->GetFont();
@@ -179,7 +180,7 @@ private:
                restart->SetFont (font);
                ++r;
 
-               add_label_to_grid_bag_sizer (table, _panel, _("Threads to use for encoding on this host"), true, wxGBPosition (r, 0));
+               add_label_to_sizer (table, _panel, _("Threads to use for encoding on this host"), true, wxGBPosition (r, 0));
                _num_local_encoding_threads = new wxSpinCtrl (_panel);
                table->Add (_num_local_encoding_threads, wxGBPosition (r, 1));
                ++r;
@@ -192,7 +193,7 @@ private:
                table->Add (_check_for_updates, wxGBPosition (r, 0), wxGBSpan (1, 2));
                ++r;
 
-               _check_for_test_updates = new wxCheckBox (_panel, wxID_ANY, _("Check for testing updates as well as stable ones"));
+               _check_for_test_updates = new wxCheckBox (_panel, wxID_ANY, _("Check for testing updates on startup"));
                table->Add (_check_for_test_updates, wxGBPosition (r, 0), wxGBSpan (1, 2));
                ++r;
 
@@ -248,28 +249,31 @@ private:
                        checked_set (_language, 8);
                } else if (config->language().get_value_or ("") == "da") {
                        checked_set (_language, 9);
+               } else if (config->language().get_value_or ("") == "pt") {
+                       checked_set (_language, 10);
                } else {
                        _language->SetSelection (1);
                }
 
-               setup_language_sensitivity ();
-
                checked_set (_num_local_encoding_threads, config->num_local_encoding_threads ());
                checked_set (_automatic_audio_analysis, config->automatic_audio_analysis ());
                checked_set (_check_for_updates, config->check_for_updates ());
                checked_set (_check_for_test_updates, config->check_for_test_updates ());
                checked_set (_issuer, config->dcp_issuer ());
                checked_set (_creator, config->dcp_creator ());
+
+               setup_sensitivity ();
        }
 
-       void setup_language_sensitivity ()
+       void setup_sensitivity ()
        {
                _language->Enable (_set_language->GetValue ());
+               _check_for_test_updates->Enable (_check_for_updates->GetValue ());
        }
 
        void set_language_changed ()
        {
-               setup_language_sensitivity ();
+               setup_sensitivity ();
                if (_set_language->GetValue ()) {
                        language_changed ();
                } else {
@@ -310,6 +314,9 @@ private:
                case 9:
                        Config::instance()->set_language ("da");
                        break;
+               case 10:
+                       Config::instance()->set_language ("pt");
+                       break;
                }
        }
 
@@ -569,7 +576,7 @@ public:
 private:
        void setup ()
        {
-               _use_any_servers = new wxCheckBox (_panel, wxID_ANY, _("Use all servers"));
+               _use_any_servers = new wxCheckBox (_panel, wxID_ANY, _("Search network for servers"));
                _panel->GetSizer()->Add (_use_any_servers, 0, wxALL, _border);
 
                vector<string> columns;
@@ -675,7 +682,7 @@ public:
                _sizer->Add (table, 1, wxALL | wxEXPAND, border);
                int r = 0;
 
-               add_label_to_grid_bag_sizer (table, this, _("Leaf private key"), true, wxGBPosition (r, 0));
+               add_label_to_sizer (table, this, _("Leaf private key"), true, wxGBPosition (r, 0));
                _private_key = new wxStaticText (this, wxID_ANY, wxT (""));
                wxFont font = _private_key->GetFont ();
                font.SetFamily (wxFONTFAMILY_TELETYPE);
@@ -690,7 +697,7 @@ public:
                _button_sizer = new wxBoxSizer (wxHORIZONTAL);
                _remake_certificates = new wxButton (this, wxID_ANY, _("Re-make certificates and key..."));
                _button_sizer->Add (_remake_certificates, 1, wxRIGHT, border);
-               table->Add (_button_sizer, wxGBPosition (r, 0), wxGBSpan (1, 3));
+               table->Add (_button_sizer, wxGBPosition (r, 0), wxGBSpan (1, 4));
                ++r;
 
                _add_certificate->Bind     (wxEVT_COMMAND_BUTTON_CLICKED,       boost::bind (&CertificateChainEditor::add_certificate, this));
@@ -1192,7 +1199,7 @@ private:
                _kdm_email = new wxTextCtrl (_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize (480, 128), wxTE_MULTILINE);
                _panel->GetSizer()->Add (_kdm_email, 1, wxEXPAND | wxALL, _border);
 
-               _reset_kdm_email = new wxButton (_panel, wxID_ANY, _("Reset to default text"));
+               _reset_kdm_email = new wxButton (_panel, wxID_ANY, _("Reset to default subject and text"));
                _panel->GetSizer()->Add (_reset_kdm_email, 0, wxEXPAND | wxALL, _border);
 
                _mail_server->Bind (wxEVT_COMMAND_TEXT_UPDATED, boost::bind (&KDMEmailPage::mail_server_changed, this));