mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 16:40:32 +00:00
Merge pull request #4354 from Stypox/restriction-strings
Improve age restriction and yt restricted content strings
This commit is contained in:
commit
6fce06906d
@ -1563,7 +1563,8 @@ public class VideoDetailFragment
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void hideAgeRestrictedContent() {
|
private void hideAgeRestrictedContent() {
|
||||||
showError(getString(R.string.restricted_video), false);
|
showError(getString(R.string.restricted_video,
|
||||||
|
getString(R.string.show_age_restricted_content_title)), false);
|
||||||
|
|
||||||
if (relatedStreamsLayout != null) { // tablet
|
if (relatedStreamsLayout != null) { // tablet
|
||||||
relatedStreamsLayout.setVisibility(View.INVISIBLE);
|
relatedStreamsLayout.setVisibility(View.INVISIBLE);
|
||||||
|
@ -149,10 +149,11 @@
|
|||||||
<string name="popup_playing_append">Queued on popup player</string>
|
<string name="popup_playing_append">Queued on popup player</string>
|
||||||
<string name="c3s_url" translatable="false">https://www.c3s.cc/</string>
|
<string name="c3s_url" translatable="false">https://www.c3s.cc/</string>
|
||||||
<string name="content">Content</string>
|
<string name="content">Content</string>
|
||||||
<string name="show_age_restricted_content_title">Age restricted content</string>
|
<string name="show_age_restricted_content_title">Show age restricted content</string>
|
||||||
<string name="video_is_age_restricted">Show age restricted video. Future changes are possible from the settings.</string>
|
<string name="show_age_restricted_content_summary">Show content possibly unsuitable for children because it has an age limit (like 18+).</string>
|
||||||
<string name="youtube_restricted_mode_enabled_title">YouTube restricted mode</string>
|
<string name="youtube_restricted_mode_enabled_title">Turn on YouTube\'s \"Restricted Mode\"</string>
|
||||||
<string name="restricted_video">This video is age restricted.\n\nTurn on \"Age restricted content\" in the settings if you want to see it.</string>
|
<string name="youtube_restricted_mode_enabled_summary">YouTube provides a \"Restricted Mode\" which hides potentially mature content.</string>
|
||||||
|
<string name="restricted_video">This video is age restricted.\n\nTurn on \"%1$s\" in the settings if you want to see it.</string>
|
||||||
<string name="duration_live">Live</string>
|
<string name="duration_live">Live</string>
|
||||||
<string name="downloads">Downloads</string>
|
<string name="downloads">Downloads</string>
|
||||||
<string name="downloads_title">Downloads</string>
|
<string name="downloads_title">Downloads</string>
|
||||||
|
@ -49,13 +49,15 @@
|
|||||||
app:iconSpaceReserved="false"
|
app:iconSpaceReserved="false"
|
||||||
android:defaultValue="false"
|
android:defaultValue="false"
|
||||||
android:key="@string/show_age_restricted_content"
|
android:key="@string/show_age_restricted_content"
|
||||||
android:title="@string/show_age_restricted_content_title"/>
|
android:title="@string/show_age_restricted_content_title"
|
||||||
|
android:summary="@string/show_age_restricted_content_summary"/>
|
||||||
|
|
||||||
<SwitchPreferenceCompat
|
<SwitchPreferenceCompat
|
||||||
app:iconSpaceReserved="false"
|
app:iconSpaceReserved="false"
|
||||||
android:defaultValue="false"
|
android:defaultValue="false"
|
||||||
android:key="@string/youtube_restricted_mode_enabled"
|
android:key="@string/youtube_restricted_mode_enabled"
|
||||||
android:title="@string/youtube_restricted_mode_enabled_title"/>
|
android:title="@string/youtube_restricted_mode_enabled_title"
|
||||||
|
android:summary="@string/youtube_restricted_mode_enabled_summary"/>
|
||||||
|
|
||||||
<SwitchPreferenceCompat
|
<SwitchPreferenceCompat
|
||||||
app:iconSpaceReserved="false"
|
app:iconSpaceReserved="false"
|
||||||
|
Loading…
Reference in New Issue
Block a user