Compare commits

...

6 Commits

Author SHA1 Message Date
Jie Li
d6cbce09b3
Merge 4ade0d900a into a70a5c6ab2 2024-11-21 09:00:40 +00:00
Gideon Wentink
a70a5c6ab2
Translated using Weblate (Afrikaans)
Currently translated at 31.9% (272 of 852 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/af/
2024-11-21 10:00:20 +01:00
Jie Li
4ade0d900a changed showTags type to boolean 2024-11-15 12:08:37 +00:00
Jie Li
18ae7292b2 capitalize text 2024-11-13 00:25:15 +00:00
Jie Li
23882080fc renamed variables 2024-11-12 23:52:17 +00:00
Jie Li
2351ee9cba added buttons to hide hidden content 2024-11-12 23:31:21 +00:00
7 changed files with 55 additions and 11 deletions

View File

@ -111,6 +111,12 @@ export default defineComponent({
showDistractionFreeTitles: function () {
return this.$store.getters.getShowDistractionFreeTitles
},
showHiddenChannels: function () {
return this.$store.getters.getShowHiddenChannels
},
showHiddenText: function () {
return this.$store.getters.getShowHiddenText
},
channelsHidden: function () {
return JSON.parse(this.$store.getters.getChannelsHidden).map((ch) => {
// Legacy support
@ -224,6 +230,8 @@ export default defineComponent({
'updateHideSubscriptionsShorts',
'updateHideSubscriptionsLive',
'updateHideSubscriptionsCommunity',
'updateShowHiddenChannels',
'updateShowHiddenText'
])
}
})

View File

@ -228,6 +228,25 @@
</div>
</div>
<br class="hide-on-mobile">
<h4
class="groupTitle"
>
{{ $t('Settings.Distraction Free Settings.Sections.Content Filter') }}
</h4>
<div class="switchColumnGrid">
<ft-toggle-switch
:label="$t('Settings.Distraction Free Settings.Show Hidden Channels')"
:compact="true"
:default-value="showHiddenChannels"
@change="updateShowHiddenChannels"
/>
<ft-toggle-switch
:label="$t('Settings.Distraction Free Settings.Show Hidden Text')"
:compact="true"
:default-value="showHiddenText"
@change="updateShowHiddenText"
/>
</div>
<ft-flex-box>
<ft-input-tags
:disabled="channelHiderDisabled"
@ -236,6 +255,7 @@
:tag-name-placeholder="$t('Settings.Distraction Free Settings.Hide Channels Placeholder')"
:show-action-button="true"
:tag-list="channelsHidden"
:show-tags="showHiddenChannels"
:tooltip="$t('Tooltips.Distraction Free Settings.Hide Channels')"
:validate-tag-name="validateChannelId"
:find-tag-info="findChannelTagInfo"
@ -252,6 +272,7 @@
:tag-name-placeholder="$t('Settings.Distraction Free Settings.Hide Videos and Playlists Containing Text Placeholder')"
:show-action-button="true"
:tag-list="forbiddenTitles"
:show-tags="showHiddenText"
:min-input-length="3"
:tooltip="$t('Tooltips.Distraction Free Settings.Hide Videos and Playlists Containing Text')"
@change="handleForbiddenTitles"

View File

@ -28,6 +28,10 @@ export default defineComponent({
type: String,
required: true
},
showTags: {
type: Boolean,
required: true
},
minInputLength: {
type: Number,
default: 1

View File

@ -21,7 +21,10 @@
:force-action-button-icon-name="['fas', 'arrow-right']"
@click="updateTags"
/>
<div class="ft-tag-box">
<div
v-if="showTags"
class="ft-tag-box"
>
<ul>
<li
v-for="tag in tagList"

View File

@ -296,6 +296,8 @@ const state = {
screenshotFolderPath: '',
screenshotFilenamePattern: '%Y%M%D-%H%N%S',
settingsSectionSortEnabled: false,
showHiddenChannels: true,
showHiddenText: true,
fetchSubscriptionsAutomatically: true,
settingsPassword: '',
useDeArrowTitles: false,

View File

@ -686,20 +686,23 @@ Channel:
Shorts:
This channel does not currently have any shorts: ''
Live:
Live: ''
This channel does not currently have any live streams: ''
Live: 'Regstreeks'
This channel does not currently have any live streams: 'Hierdie kanaal het tans
geen rekstreekse stromings nie'
Playlists:
Playlists: ''
This channel does not currently have any playlists: ''
Playlists: 'Afspeellyste'
This channel does not currently have any playlists: 'Hierdie kanaal het tans geen
afspeellyste nie'
Sort Types:
Last Video Added: ''
Newest: ''
Oldest: ''
Last Video Added: 'Laaste toegevoegde video'
Newest: 'Nuutste'
Oldest: 'Oudste'
Podcasts:
Podcasts: ''
This channel does not currently have any podcasts: ''
Podcasts: 'Podsendings'
This channel does not currently have any podcasts: 'Hierdie kanaal het tans geen
podsendings nie'
Releases:
Releases: ''
Releases: 'Vrystellings'
This channel does not currently have any releases: 'Hierdie kanaal het nie tans
enige vrystellings nie'
About:

View File

@ -484,6 +484,7 @@ Settings:
Channel Page: Channel Page
Watch Page: Watch Page
General: General
Content Filter: Content Filter
Hide Video Views: Hide Video Views
Hide Video Likes And Dislikes: Hide Video Likes And Dislikes
Hide Channel Subscribers: Hide Channel Subscribers
@ -520,6 +521,8 @@ Settings:
Hide Subscriptions Shorts: Hide Subscriptions Shorts
Hide Subscriptions Live: Hide Subscriptions Live
Hide Subscriptions Community: Hide Subscriptions Community
Show Hidden Channels: Show Hidden Channels
Show Hidden Text: Show Hidden Text
Data Settings:
Data Settings: Data
Select Import Type: Select Import Type