Skip to content

Commit

Permalink
Internationalise other encoding strings
Browse files Browse the repository at this point in the history
  • Loading branch information
WithoutPants committed Jul 31, 2023
1 parent bfad6f0 commit 0978da9
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 8 deletions.
4 changes: 3 additions & 1 deletion ui/v2.5/src/components/Movies/MovieDetails/Movie.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,9 @@ const MoviePage: React.FC<IProps> = ({ movie }) => {
<div className="detail-header-image">
<div className="logo w-100">
{encodingImage ? (
<LoadingIndicator message="Encoding image..." />
<LoadingIndicator
message={`${intl.formatMessage({ id: "encoding_image" })}...`}
/>
) : (
<div className="movie-images">
{renderFrontImage()}
Expand Down
4 changes: 3 additions & 1 deletion ui/v2.5/src/components/Movies/MovieDetails/MovieCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ const MovieCreate: React.FC = () => {
<div className="movie-details mb-3 col">
<div className="logo w-100">
{encodingImage ? (
<LoadingIndicator message="Encoding image..." />
<LoadingIndicator
message={`${intl.formatMessage({ id: "encoding_image" })}...`}
/>
) : (
<div className="movie-images">
{renderFrontImage()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ const PerformerCreate: React.FC = () => {

function renderPerformerImage() {
if (encodingImage) {
return <LoadingIndicator message="Encoding image..." />;
return (
<LoadingIndicator
message={`${intl.formatMessage({ id: "encoding_image" })}...`}
/>
);
}
if (image) {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,11 @@ export const SceneEditPanel: React.FC<IProps> = ({

const image = useMemo(() => {
if (encodingImage) {
return <LoadingIndicator message="Encoding image..." />;
return (
<LoadingIndicator
message={`${intl.formatMessage({ id: "encoding_image" })}...`}
/>
);
}

if (coverImagePreview) {
Expand Down
4 changes: 3 additions & 1 deletion ui/v2.5/src/components/Studios/StudioDetails/Studio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,9 @@ const StudioPage: React.FC<IProps> = ({ studio }) => {
<div className="detail-container">
<div className="detail-header-image">
{encodingImage ? (
<LoadingIndicator message="Encoding image..." />
<LoadingIndicator
message={`${intl.formatMessage({ id: "encoding_image" })}...`}
/>
) : (
renderImage()
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ const StudioCreate: React.FC = () => {
</h2>
<div className="text-center">
{encodingImage ? (
<LoadingIndicator message="Encoding image..." />
<LoadingIndicator
message={`${intl.formatMessage({ id: "encoding_image" })}...`}
/>
) : (
renderImage()
)}
Expand Down
4 changes: 3 additions & 1 deletion ui/v2.5/src/components/Tags/TagDetails/Tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,9 @@ const TagPage: React.FC<IProps> = ({ tag }) => {
<div className="detail-container">
<div className="detail-header-image">
{encodingImage ? (
<LoadingIndicator message="Encoding image..." />
<LoadingIndicator
message={`${intl.formatMessage({ id: "encoding_image" })}...`}
/>
) : (
renderImage()
)}
Expand Down
4 changes: 3 additions & 1 deletion ui/v2.5/src/components/Tags/TagDetails/TagCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ const TagCreate: React.FC = () => {
<div className="tag-details col-md-8">
<div className="text-center logo-container">
{encodingImage ? (
<LoadingIndicator message="Encoding image..." />
<LoadingIndicator
message={`${intl.formatMessage({ id: "encoding_image" })}...`}
/>
) : (
renderImage()
)}
Expand Down

0 comments on commit 0978da9

Please sign in to comment.