Changed "download scans" to "download archive"

This commit is contained in:
DrMint 2023-05-19 12:04:11 +02:00
parent 895fee1bae
commit a047d18c76
5 changed files with 60 additions and 65 deletions

View File

@ -169,7 +169,7 @@
"level_x": "Level {x}", "level_x": "Level {x}",
"story_x": "Story {x}", "story_x": "Story {x}",
"player_name_tooltip": "Certain in-game texts use the player's name as part of the dialogue/narration. If you want to see your name in the transcript found on this website, feel free to enter your player's name here. If left empty, '(player)' will be used instead.", "player_name_tooltip": "Certain in-game texts use the player's name as part of the dialogue/narration. If you want to see your name in the transcript found on this website, feel free to enter your player's name here. If left empty, '(player)' will be used instead.",
"download_scans": "Download scans", "download_archive": "Download archive",
"search_placeholder": "Search...", "search_placeholder": "Search...",
"performance_mode": "Performance mode", "performance_mode": "Performance mode",
"performance_mode_tooltip": "This option improves performances by reducing certain visual effects (blurry backgrounds, shadows...). This mode is enabled by default on Linux, iOS, and Safari. This mode cannot be disabled on iOS or Safari as the experience would be too poor.", "performance_mode_tooltip": "This option improves performances by reducing certain visual effects (blurry backgrounds, shadows...). This mode is enabled by default on Linux, iOS, and Safari. This mode cannot be disabled on iOS or Safari as the experience would be too poor.",
@ -349,7 +349,7 @@
"level_x": "Niveau {x}", "level_x": "Niveau {x}",
"story_x": "Histoire {x}", "story_x": "Histoire {x}",
"player_name_tooltip": "Certains textes dans les jeux utilisent le nom du joueur dans les dialogue/la narration. Si vous voulez voir votre nom dans les transcriptions se trouvant sur ce site web, n'hésitez pas à entrer votre nom de joueur ici. S'il n'est pas renseigné, '(player)' sera utilisé à la place.", "player_name_tooltip": "Certains textes dans les jeux utilisent le nom du joueur dans les dialogue/la narration. Si vous voulez voir votre nom dans les transcriptions se trouvant sur ce site web, n'hésitez pas à entrer votre nom de joueur ici. S'il n'est pas renseigné, '(player)' sera utilisé à la place.",
"download_scans": "Télécharger les scans", "download_archive": "Télécharger l'archive",
"search_placeholder": "Rechercher ...", "search_placeholder": "Rechercher ...",
"performance_mode": "Mode performance", "performance_mode": "Mode performance",
"performance_mode_tooltip": "Cette option permet d'améliorer les performances en réduisant certains effets visuels (flous, ombres...). Ce mode est activé par défaut sur Linux, iOS et Safari. Ce mode ne peut pas être désactivé sur iOS ou Safari car l'expérience serait trop mauvaise.", "performance_mode_tooltip": "Cette option permet d'améliorer les performances en réduisant certains effets visuels (flous, ombres...). Ce mode est activé par défaut sur Linux, iOS et Safari. Ce mode ne peut pas être désactivé sur iOS ou Safari car l'expérience serait trop mauvaise.",
@ -529,7 +529,7 @@
"level_x": null, "level_x": null,
"story_x": null, "story_x": null,
"player_name_tooltip": null, "player_name_tooltip": null,
"download_scans": null, "download_archive": null,
"search_placeholder": null, "search_placeholder": null,
"performance_mode": null, "performance_mode": null,
"performance_mode_tooltip": null, "performance_mode_tooltip": null,
@ -709,7 +709,7 @@
"level_x": null, "level_x": null,
"story_x": null, "story_x": null,
"player_name_tooltip": null, "player_name_tooltip": null,
"download_scans": null, "download_archive": null,
"search_placeholder": null, "search_placeholder": null,
"performance_mode": null, "performance_mode": null,
"performance_mode_tooltip": null, "performance_mode_tooltip": null,
@ -889,7 +889,7 @@
"level_x": null, "level_x": null,
"story_x": null, "story_x": null,
"player_name_tooltip": null, "player_name_tooltip": null,
"download_scans": null, "download_archive": null,
"search_placeholder": null, "search_placeholder": null,
"performance_mode": null, "performance_mode": null,
"performance_mode_tooltip": null, "performance_mode_tooltip": null,

View File

@ -167,7 +167,7 @@ export interface ICUParams {
level_x: { x: Date | boolean | number | string }; level_x: { x: Date | boolean | number | string };
story_x: { x: Date | boolean | number | string }; story_x: { x: Date | boolean | number | string };
player_name_tooltip: never; player_name_tooltip: never;
download_scans: never; download_archive: never;
search_placeholder: never; search_placeholder: never;
performance_mode: never; performance_mode: never;
performance_mode_tooltip: never; performance_mode_tooltip: never;

View File

@ -174,7 +174,7 @@ query localDataGetWebsiteInterfaces {
level_x level_x
story_x story_x
player_name_tooltip player_name_tooltip
download_scans download_archive
search_placeholder search_placeholder
performance_mode performance_mode
performance_mode_tooltip performance_mode_tooltip

View File

@ -413,65 +413,60 @@ const LibrarySlug = ({
</div> </div>
)} )}
{item.metadata?.[0]?.__typename !== "ComponentMetadataGroup" && {item.metadata?.[0]?.__typename === "ComponentMetadataBooks" && (
item.metadata?.[0]?.__typename !== "ComponentMetadataOther" && ( <div
<div className={cJoin(
className={cJoin( "grid gap-4",
"grid gap-4", cIf(!isContentPanelAtLeast3xl, "place-items-center")
cIf(!isContentPanelAtLeast3xl, "place-items-center") )}>
)}> <h3 className="text-xl">{format("type_information")}</h3>
<h3 className="text-xl">{format("type_information")}</h3> <div className="flex flex-wrap place-content-between gap-x-8">
<div className="flex flex-wrap place-content-between gap-x-8"> {isDefined(item.metadata[0].page_count) && (
{item.metadata?.[0]?.__typename === "ComponentMetadataBooks" && ( <div className="flex flex-row place-content-start gap-4">
<> <p className="font-bold">{format("page", { count: Infinity })}:</p>
{isDefined(item.metadata[0].page_count) && ( <p>{item.metadata[0].page_count}</p>
<div className="flex flex-row place-content-start gap-4"> </div>
<p className="font-bold">{format("page", { count: Infinity })}:</p> )}
<p>{item.metadata[0].page_count}</p>
</div>
)}
<div className="flex flex-row place-content-start gap-4"> <div className="flex flex-row place-content-start gap-4">
<p className="font-bold">{format("binding")}:</p> <p className="font-bold">{format("binding")}:</p>
<p> <p>
{item.metadata[0].binding_type === {item.metadata[0].binding_type ===
Enum_Componentmetadatabooks_Binding_Type.Paperback Enum_Componentmetadatabooks_Binding_Type.Paperback
? format("paperback") ? format("paperback")
: item.metadata[0].binding_type === : item.metadata[0].binding_type ===
Enum_Componentmetadatabooks_Binding_Type.Hardcover Enum_Componentmetadatabooks_Binding_Type.Hardcover
? format("hardcover") ? format("hardcover")
: ""} : ""}
</p> </p>
</div>
<div className="flex flex-row place-content-start gap-4">
<p className="font-bold">{format("page_order")}:</p>
<p>
{item.metadata[0].page_order ===
Enum_Componentmetadatabooks_Page_Order.LeftToRight
? format("left_to_right")
: format("right_to_left")}
</p>
</div>
{isDefined(item.metadata[0].languages) && (
<div className="flex flex-row place-content-start gap-4">
<p className="font-bold">
{format("language", {
count: item.metadata[0].languages.data.length,
})}
:
</p>
{item.metadata[0].languages.data.map((lang) => (
<p key={lang.attributes?.code}>{lang.attributes?.name}</p>
))}
</div>
)}
</>
)}
</div> </div>
<div className="flex flex-row place-content-start gap-4">
<p className="font-bold">{format("page_order")}:</p>
<p>
{item.metadata[0].page_order ===
Enum_Componentmetadatabooks_Page_Order.LeftToRight
? format("left_to_right")
: format("right_to_left")}
</p>
</div>
{isDefined(item.metadata[0].languages) && (
<div className="flex flex-row place-content-start gap-4">
<p className="font-bold">
{format("language", {
count: item.metadata[0].languages.data.length,
})}
:
</p>
{item.metadata[0].languages.data.map((lang) => (
<p key={lang.attributes?.code}>{lang.attributes?.name}</p>
))}
</div>
)}
</div> </div>
)} </div>
)}
</div> </div>
</InsetBox> </InsetBox>
@ -542,7 +537,7 @@ const LibrarySlug = ({
<Button <Button
href={getScanArchiveURL(item.slug)} href={getScanArchiveURL(item.slug)}
icon="download" icon="download"
text={format("download_scans")} text={format("download_archive")}
/> />
)} )}
</div> </div>

View File

@ -374,7 +374,7 @@ const LibrarySlug = ({
<Button <Button
href={getScanArchiveURL(item.slug)} href={getScanArchiveURL(item.slug)}
icon="download" icon="download"
text={format("download_scans")} text={format("download_archive")}
/> />
)} )}
</SubPanel> </SubPanel>