23 gc->setLabel(VideoGeneralSettings::tr(
"Starting Parental Level"));
25 gc->addSelection(VideoGeneralSettings::tr(
"4 - Highest"),
27 gc->addSelection(VideoGeneralSettings::tr(
"1 - Lowest"),
32 gc->setHelpText(VideoGeneralSettings::tr(
"This is the 'level' that Video "
33 "starts at. Any videos with a "
34 "level at or below this will be "
35 "shown in the list or while "
36 "browsing by default. The "
37 "Parental PIN should be set to "
38 "limit changing of the default "
44 QT_TRANSLATE_NOOP(
"VideoGeneralSettings",
"Setting this value to all "
45 "numbers will make your life "
52 gc->setLabel(VideoGeneralSettings::tr(
"Parental Level 4 PIN"));
54 gc->setHelpText(QString(
"%1 %2")
55 .arg(VideoGeneralSettings::tr(
"This PIN is used to enter Parental "
56 "Control Level 4 as well as the Video "
67 gc->setLabel(VideoGeneralSettings::tr(
"Parental Level 3 PIN"));
69 gc->setHelpText(QString(
"%1 %2")
70 .arg(VideoGeneralSettings::tr(
"This PIN is used to enter Parental "
81 gc->setLabel(VideoGeneralSettings::tr(
"Parental Level 2 PIN"));
83 gc->setHelpText(QString(
"%1 %2")
84 .arg(VideoGeneralSettings::tr(
"This PIN is used to enter Parental "
95 gc->setLabel(VideoGeneralSettings::tr(
"Aggressive Parental Control"));
98 gc->setHelpText(VideoGeneralSettings::tr(
"If set, you will not be able to "
99 "return to this screen and reset "
100 "the Parental PIN without first "
101 "entering the current PIN. You "
102 "have been warned."));
110 gc->setLabel(VideoGeneralSettings::tr(
"Directories that hold videos"));
114 gc->setHelpText(VideoGeneralSettings::tr(
"Multiple directories can be "
115 "separated by ':'. Each "
116 "directory must exist and be "
117 "readable by the user running "
126 gc->setLabel(VideoGeneralSettings::tr(
"Directory that holds movie "
129 gc->setValue(
GetConfDir() +
"/Video/Artwork");
131 gc->setHelpText(VideoGeneralSettings::tr(
"This directory must exist, and "
132 "the user running the frontend "
133 "needs to have read/write "
134 "permission to the directory."));
142 gc->setLabel(VideoGeneralSettings::tr(
"Directory that holds movie "
145 gc->setValue(
GetConfDir() +
"/Video/Screenshots");
147 gc->setHelpText(VideoGeneralSettings::tr(
"This directory must exist, and "
148 "the user running the frontend "
149 "needs to have read/write "
150 "permission to the directory."));
158 gc->setLabel(VideoGeneralSettings::tr(
"Directory that holds movie/TV "
161 gc->setValue(
GetConfDir() +
"/Video/Banners");
163 gc->setHelpText(VideoGeneralSettings::tr(
"This directory must exist, and "
164 "the user running the frontend "
165 "needs to have read/write "
166 "permission to the directory."));
174 gc->setLabel(VideoGeneralSettings::tr(
"Directory that holds movie fanart"));
178 gc->setHelpText(VideoGeneralSettings::tr(
"This directory must exist, and "
179 "the user running the frontend "
180 "needs to have read/write "
181 "permission to the directory."));
189 gc->setLabel(VideoGeneralSettings::tr(
"Directory that holds movie "
192 gc->setValue(
GetConfDir() +
"/Video/Trailers");
194 gc->setHelpText(VideoGeneralSettings::tr(
"This directory must exist, and "
195 "the user running the frontend "
196 "needs to have read/write "
197 "permission to the directory."));
211 gc->setLabel(VideoGeneralSettings::tr(
"On DVD insertion"));
213 gc->addSelection(VideoGeneralSettings::tr(
"Display mythdvd menu"),
"1");
214 gc->addSelection(VideoGeneralSettings::tr(
"Do nothing"),
"0");
215 gc->addSelection(VideoGeneralSettings::tr(
"Play DVD"),
"2");
217 gc->setHelpText(VideoGeneralSettings::tr(
"Media Monitoring should be "
218 "turned on to allow this feature "
219 "(Setup -> General -> CD/DVD "
228 gc->setLabel(VideoGeneralSettings::tr(
"Video Tree remembers last selected "
233 gc->setHelpText(VideoGeneralSettings::tr(
"If set, the current position in "
234 "the Video Tree is persistent."));
242 r2pl->setLabel(VideoGeneralSettings::tr(
"Enable automatic Parental "
243 "Level from rating"));
244 r2pl->setValue(
false);
246 r2pl->setHelpText(VideoGeneralSettings::tr(
"If enabled, searches will "
247 "automatically set the "
248 "Parental Level to the one "
249 "matching the rating "
252 using r2pl_map = std::map<ParentalLevel::Level, QString>;
254 r2pl_map r2pl_defaults;
257 VideoGeneralSettings::tr(
"G",
"PL 1 default search string.")));
259 VideoGeneralSettings::tr(
"PG",
"PL 2 default search string.")));
261 VideoGeneralSettings::tr(
"PG-13",
"PL3 default search "
264 VideoGeneralSettings::tr(
"R:NC-17",
"PL4 default search "
271 .arg(pl.GetLevel()));
273 hle->setLabel(VideoGeneralSettings::tr(
"Level %1")
274 .arg(pl.GetLevel()));
276 hle->setHelpText(VideoGeneralSettings::tr(
"Ratings containing "
278 "(separated by :) will "
279 "be assigned to Parental "
281 .arg(pl.GetLevel()));
283 auto def_setting = r2pl_defaults.find(pl.GetLevel());
284 if (def_setting != r2pl_defaults.end())
286 hle->setValue(def_setting->second);
289 r2pl->addTargetedChild(
"1", hle);
312 pctrl->setLabel(tr(
"Parental Control Settings"));