Ticket #3753: dbsettings-cleanup-180707.diff
File dbsettings-cleanup-180707.diff, 4.5 KB (added by , 17 years ago) |
---|
-
mythtv/libs/libmyth/dbsettings.cpp
60 60 WOLsqlSettings(Setting *checkbox, ConfigurationGroup *group) : 61 61 TriggeredConfigurationGroup(false, false, false, false) 62 62 { 63 setLabel(QObject::tr(" Wake-On-LANsettings"));63 setLabel(QObject::tr("Backend Server Wakeup settings")); 64 64 65 65 addChild(checkbox); 66 66 setTrigger(checkbox); … … 86 86 "Please verify your database settings " 87 87 "below.")); 88 88 addChild(info); 89 89 90 VerticalConfigurationGroup* dbServer = new VerticalConfigurationGroup(); 91 dbServer->setLabel(QObject::tr("Database Server Settings")); 90 92 dbHostName = new TransLineEditSetting(true); 91 dbHostName->setLabel(QObject::tr("Host 93 dbHostName->setLabel(QObject::tr("Hostname")); 92 94 dbHostName->setHelpText(QObject::tr("The host name or IP address of " 93 95 "the machine hosting the database. " 94 96 "This information is required.")); 95 addChild(dbHostName);96 97 dbServer->addChild(dbHostName); 98 97 99 dbPort = new TransLineEditSetting(true); 98 dbPort->setLabel(QObject::tr(" HostPort"));100 dbPort->setLabel(QObject::tr("Port")); 99 101 dbPort->setHelpText(QObject::tr("The port number the database is running " 100 "on, if it's not the default database " 101 "port.")); 102 addChild(dbPort); 102 "on. Leave blank if using the default port (3306).")); 103 dbServer->addChild(dbPort); 103 104 104 105 dbName = new TransLineEditSetting(true); 105 dbName->setLabel(QObject::tr("Database "));106 dbName->setLabel(QObject::tr("Database name")); 106 107 dbName->setHelpText(QObject::tr("The name of the database. " 107 108 "This information is required.")); 108 addChild(dbName);109 dbServer->addChild(dbName); 109 110 110 111 dbUserName = new TransLineEditSetting(true); 111 112 dbUserName->setLabel(QObject::tr("User")); 112 113 dbUserName->setHelpText(QObject::tr("The user name to use while " 113 114 "connecting to the database. " 114 115 "This information is required.")); 115 addChild(dbUserName);116 dbServer->addChild(dbUserName); 116 117 117 118 dbPassword = new TransLineEditSetting(true); 118 119 dbPassword->setLabel(QObject::tr("Password")); 119 120 dbPassword->setHelpText(QObject::tr("The password to use while " 120 121 "connecting to the database. " 121 122 "This information is required.")); 122 addChild(dbPassword);123 dbServer->addChild(dbPassword); 123 124 124 125 dbType = new TransComboBoxSetting(false); 125 126 dbType->setLabel(QObject::tr("Database type")); … … 128 129 dbType->setValue(0); 129 130 dbType->setHelpText(QObject::tr("The database implementation used " 130 131 "for your server.")); 131 addChild(dbType); 132 dbType->setEnabled(false); 133 //dbServer->addChild(dbType); 134 135 addChild(dbServer); 136 132 137 } 133 138 134 139 MythDbSettings2::MythDbSettings2(void) : … … 163 168 addChild(sub3); 164 169 165 170 wolEnabled = new TransCheckBoxSetting(); 166 wolEnabled->setLabel(QObject::tr(" Use Wake-On-LAN to wake database"));171 wolEnabled->setLabel(QObject::tr("Enable Database Server Wakeup")); 167 172 wolEnabled->setHelpText(QObject::tr("If checked, the frontend will use " 168 " Wake-On-LANparameters to "173 "database wakeup parameters to " 169 174 "reconnect to the database server.")); 170 175 171 176 wolReconnect = new TransSpinBoxSetting(0, 60, 1, true); … … 182 187 wolCommand = new TransLineEditSetting(true); 183 188 wolCommand->setLabel(QObject::tr("Wake command")); 184 189 wolCommand->setHelpText(QObject::tr("The command executed on this " 185 "frontend to wake up the database "186 " server."));190 "frontend to wake up the database server " 191 "(eg. sudo /etc/init.d/mysql restart).")); 187 192 188 193 HorizontalConfigurationGroup *group2 = 189 194 new HorizontalConfigurationGroup(false, false);