Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _scripts/ProcessLocalesPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class ProcessLocalesPlugin {
const data = loadYaml(contents)
this.locales.set(locale, data)

this.localeNames.push(data['Locale Name'] ?? locale)
this.localeNames.push(data['Locale name'] ?? locale)
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ function runApp() {
arguments: '--new-window',
iconPath: process.execPath,
iconIndex: 0,
title: 'New Window',
description: 'Open New Window'
title: 'Open new window',
description: 'Open new window'
}
])
}
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/>
<ft-flex-box>
<ft-button
:label="$t('Download From Site')"
:label="$t('Download from site')"
@click="openDownloadsPage"
/>
<ft-button
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/ChannelDetails/ChannelDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
v-if="subCount !== null && !hideChannelSubscriptions"
class="subCount"
>
{{ $t('Global.Counts.Subscriber Count', { count: formattedSubCount }, subCount) }}
{{ $t('Global.Counts.Subscriber count', { count: formattedSubCount }, subCount) }}
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/CommentSection/CommentSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<FtSelect
v-if="commentData.length > 0 && !isLoading && showComments && showSortBy"
class="commentSort"
:placeholder="$t('Global.Sort By')"
:placeholder="$t('Global.Sort by')"
:value="currentSortValue"
:select-names="sortNames"
:select-values="sortValues"
Expand Down
12 changes: 6 additions & 6 deletions src/renderer/components/FtCommunityPost/FtCommunityPost.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@
>
<span
class="likeCount"
:title="$t('Global.Counts.Like Count', {count: formattedVoteCount}, voteCount)"
:aria-label="$t('Global.Counts.Like Count', {count: formattedVoteCount}, voteCount)"
:title="$t('Global.Counts.Like count', {count: formattedVoteCount}, voteCount)"
:aria-label="$t('Global.Counts.Like count', {count: formattedVoteCount}, voteCount)"
>
<FontAwesomeIcon
class="thumbs-up-icon"
Expand All @@ -136,8 +136,8 @@
>
<span
class="commentCount"
:title="$t('Global.Counts.Comment Count', {count: formattedCommentCount}, commentCount)"
:aria-label="$t('Global.Counts.Comment Count', {count: formattedCommentCount}, commentCount)"
:title="$t('Global.Counts.Comment count', {count: formattedCommentCount}, commentCount)"
:aria-label="$t('Global.Counts.Comment count', {count: formattedCommentCount}, commentCount)"
>
<FontAwesomeIcon
class="comment-count-icon"
Expand All @@ -148,8 +148,8 @@
<span
v-else-if="commentCount != null"
class="commentCount"
:title="$t('Global.Counts.Comment Count', {count: formattedCommentCount}, commentCount)"
:aria-label="$t('Global.Counts.Comment Count', {count: formattedCommentCount}, commentCount)"
:title="$t('Global.Counts.Comment count', {count: formattedCommentCount}, commentCount)"
:aria-label="$t('Global.Counts.Comment count', {count: formattedCommentCount}, commentCount)"
>
<FontAwesomeIcon
class="comment-count-icon"
Expand Down
8 changes: 4 additions & 4 deletions src/renderer/components/FtInput/FtInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
:class="{
visible: inputDataPresent || showOptions
}"
:aria-label="t('Search Bar.Clear Input')"
:title="t('Search Bar.Clear Input')"
:aria-label="t('Search bar.Clear input')"
:title="t('Search bar.Clear input')"
@click="handleClearTextClick"
>
<FontAwesomeIcon
Expand Down Expand Up @@ -103,11 +103,11 @@
class="removeButton"
:class="{ removeButtonSelected: removeButtonSelectedIndex === index }"
role="button"
:aria-label="t('Search Bar.Remove')"
:aria-label="t('Search bar.Remove')"
href="javascript:void(0)"
@click.prevent.stop="handleRemoveClick(index)"
>
{{ t('Search Bar.Remove') }}
{{ t('Search bar.Remove') }}
</a>
</li>
<!-- skipped -->
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/FtListChannel/FtListChannel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@
class="subscriberCount"
>
<template v-if="handle !== null"> • </template>
{{ $t('Global.Counts.Subscriber Count', {count: formattedSubscriberCount}, subscriberCount) }}
{{ $t('Global.Counts.Subscriber count', {count: formattedSubscriberCount}, subscriberCount) }}
</span>
<span
v-if="handle == null && videoCount != null"
class="videoCount"
>
<template v-if="subscriberCount !== null && !hideChannelSubscriptions"> • </template>
{{ $t('Global.Counts.Video Count', {count: formattedVideoCount}, videoCount) }}
{{ $t('Global.Counts.Video count', {count: formattedVideoCount}, videoCount) }}
</span>
</div>
<p
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/FtListHashtag/FtListHashtag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
v-if="channelCount"
class="channelCount"
>
{{ $t('Global.Counts.Channel Count', {count: formattedChannelCount}, channelCount) }}
{{ $t('Global.Counts.Channel count', {count: formattedChannelCount}, channelCount) }}
</span>
<span
v-if="videoCount"
class="videoCount"
>
<template v-if="channelCount"> • </template>
{{ $t('Global.Counts.Video Count', {count: formattedVideosCount}, videoCount) }}
{{ $t('Global.Counts.Video count', {count: formattedVideosCount}, videoCount) }}
</span>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
</p>
<button
class="closeButton"
:aria-label="$t('Close Banner')"
:title="$t('Close Banner')"
:aria-label="$t('Close banner')"
:title="$t('Close banner')"
@click="handleClose"
@keydown.enter.space.stop
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
:value="sortBy"
:select-names="sortBySelectNames"
:select-values="SORT_BY_SELECT_VALUES"
:placeholder="t('Global.Sort By')"
:placeholder="t('Global.Sort by')"
:icon="sortBySelectIcon"
@change="sortBy = $event"
/>
Expand Down
70 changes: 35 additions & 35 deletions src/renderer/components/FtSearchFilters/FtSearchFilters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</h2>
<button
class="clearFilterButton"
:title="$t('Search Filters.Clear Filters')"
:title="$t('Search filters.Clear filters')"
:style="{visibility: (searchFilterValueChanged ? 'visible' : 'hidden')}"
@click="clearFilters"
>
Expand All @@ -28,35 +28,35 @@
<FtFlexBox class="radioFlexBox">
<FtRadioButton
v-model="sortByValue"
:title="$t('Global.Sort By')"
:title="$t('Global.Sort by')"
:labels="sortByLabels"
:values="SORT_BY_VALUES"
class="searchRadio"
/>
<FtRadioButton
v-model="timeValue"
:title="$t('Search Filters.Time.Time')"
:title="$t('Search filters.Time.Time')"
:labels="timeLabels"
:values="TIME_VALUES"
class="searchRadio"
/>
<FtRadioButton
v-model="typeValue"
:title="$t('Search Filters.Type.Type')"
:title="$t('Search filters.Type.Type')"
:labels="typeLabels"
:values="TYPE_VALUES"
class="searchRadio"
/>
<FtRadioButton
v-model="durationValue"
:title="$t('Search Filters.Duration.Duration')"
:title="$t('Search filters.Duration.Duration')"
:labels="durationLabels"
:values="DURATION_VALUES"
class="searchRadio"
/>
<FtCheckboxList
v-model="featuresValue"
:title="$t('Search Filters.Features.Features')"
:title="$t('Search filters.Features.Features')"
:labels="featureLabels"
:values="FEATURE_VALUES"
class="searchRadio"
Expand Down Expand Up @@ -138,50 +138,50 @@ const NOT_ALLOWED_FOR_MOVIES_FEATURES = [
'creative_commons'
]

const title = computed(() => t('Search Filters.Search Filters'))
const title = computed(() => t('Search filters.Search filters'))

const sortByLabels = computed(() => [
t('Search Filters.Sort By.Most Relevant'),
t('Search Filters.Sort By.Rating'),
t('Search Filters.Sort By.Upload Date'),
t('Search Filters.Sort By.View Count')
t('Search filters.Sort by.Most relevant'),
t('Search filters.Sort by.Rating'),
t('Search filters.Sort by.Upload date'),
t('Search filters.Sort by.View count')
])

const timeLabels = computed(() => [
t('Search Filters.Time.Any Time'),
t('Search Filters.Time.Last Hour'),
t('Search Filters.Time.Today'),
t('Search Filters.Time.This Week'),
t('Search Filters.Time.This Month'),
t('Search Filters.Time.This Year')
t('Search filters.Time.Any time'),
t('Search filters.Time.Last hour'),
t('Search filters.Time.Today'),
t('Search filters.Time.This week'),
t('Search filters.Time.This month'),
t('Search filters.Time.This year')
])

const typeLabels = computed(() => [
t('Search Filters.Type.All Types'),
t('Search Filters.Type.Videos'),
t('Search Filters.Type.Channels'),
t('Search filters.Type.All types'),
t('Search filters.Type.Videos'),
t('Search filters.Type.Channels'),
t('Playlists'),
t('Search Filters.Type.Movies')
t('Search filters.Type.Movies')
])

const durationLabels = computed(() => [
t('Search Filters.Duration.All Durations'),
t('Search Filters.Duration.Short (< 4 minutes)'),
t('Search Filters.Duration.Medium (4 - 20 minutes)'),
t('Search Filters.Duration.Long (> 20 minutes)')
t('Search filters.Duration.All durations'),
t('Search filters.Duration.Short (< 4 minutes)'),
t('Search filters.Duration.Medium (4 - 20 minutes)'),
t('Search filters.Duration.Long (> 20 minutes)')
])

const featureLabels = computed(() => [
t('Search Filters.Features.HD'),
t('Search Filters.Features.Subtitles'),
t('Search Filters.Features.Creative Commons'),
t('Search Filters.Features.3D'),
t('Search Filters.Features.Live'),
t('Search Filters.Features.4K'),
t('Search Filters.Features.360 Video'),
t('Search Filters.Features.Location'),
t('Search Filters.Features.HDR'),
t('Search Filters.Features.VR180')
t('Search filters.Features.HD'),
t('Search filters.Features.Subtitles'),
t('Search filters.Features.Creative Commons'),
t('Search filters.Features.3D'),
t('Search filters.Features.Live'),
t('Search filters.Features.4K'),
t('Search filters.Features.360 video'),
t('Search filters.Features.Location'),
t('Search filters.Features.HDR'),
t('Search filters.Features.VR180')
])

const searchSettings = store.getters.getSearchSettings
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/PlaylistInfo/PlaylistInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@
{{ title }}
</h2>
<p>
{{ t('Global.Counts.Video Count', { count: parsedVideoCount }, videoCount) }}
{{ t('Global.Counts.Video count', { count: parsedVideoCount }, videoCount) }}
<template v-if="!hideViews && !isUserPlaylist">
- {{ t('Global.Counts.View Count', { count: parsedViewCount }, viewCount) }}
- {{ t('Global.Counts.View count', { count: parsedViewCount }, viewCount) }}
</template>
-
<template v-if="infoSource !== 'local'">
Expand Down
10 changes: 5 additions & 5 deletions src/renderer/components/TopNav/TopNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
</button>
<button
class="navNewWindowButton navButton"
:aria-label="t('Open New Window')"
:aria-label="t('Open new window')"
:title="newWindowText"
@click="createNewWindow"
>
Expand Down Expand Up @@ -91,7 +91,7 @@
>
<FtInput
ref="searchInput"
:placeholder="t('Search / Go to URL')"
:placeholder="t('Search / go to URL')"
class="searchInput"
is-search
:data-list="activeDataList"
Expand All @@ -106,8 +106,8 @@
<button
class="navFilterButton navButton"
:class="{ filterChanged: searchFilterValueChanged }"
:aria-label="t('Search Filters.Search Filters')"
:title="t('Search Filters.Search Filters')"
:aria-label="t('Search filters.Search filters')"
:title="t('Search filters.Search filters')"
@click="showSearchFilters"
>
<FontAwesomeIcon
Expand Down Expand Up @@ -242,7 +242,7 @@ function historyForward(offset) {
const newWindowText = computed(() => {
return localizeAndAddKeyboardShortcutToActionTitle(
t('Open New Window'),
t('Open new window'),
KeyboardShortcuts.APP.GENERAL.NEW_WINDOW
)
})
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/WatchVideoInfo/WatchVideoInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ const parsedViewCount = computed(() => {
return null
}

return t('Global.Counts.View Count', { count: formatNumber(props.viewCount) }, props.viewCount)
return t('Global.Counts.View count', { count: formatNumber(props.viewCount) }, props.viewCount)
})

const dateString = computed(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
v-if="!hideVideoViews && watchingCount !== null"
class="watchingCount"
>
{{ t('Global.Counts.Watching Count', { count: formattedWatchingCount }, watchingCount) }}
{{ t('Global.Counts.Watching count', { count: formattedWatchingCount }, watchingCount) }}
</span>
</h4>
<div
Expand Down
Loading