Rename user facing strings with "project" -> "repository"

This commit is contained in:
Rūdolfs Ošiņš
2024-06-20 15:28:59 +02:00
parent 2f1a5dcdfe
commit 173ede84d5
10 changed files with 30 additions and 29 deletions
@@ -56,9 +56,9 @@
corner to get started.
</div>
{:else if localProject === "notFound"}
<div class="title txt-bold">Project not available locally</div>
<div class="title txt-bold">Repository not available locally</div>
<div class="description" style:padding-bottom="0.5rem">
This project hasn't been found on your local
This repository hasn't been found on your local
<br />
node. To get a local copy start seeding it
<br />
@@ -24,7 +24,7 @@
function createTitle(p: Remote): string {
const nodeId = formatNodeId(p.id);
return p.delegate
? `${nodeId} is a delegate of this project`
? `${nodeId} is a delegate of this repository`
: `${nodeId} is a peer followed by this node`;
}
</script>
+5 -5
View File
@@ -21,7 +21,7 @@ export function handleError(
} else if (route.resource === "project.patch") {
subject = "Patch";
} else {
subject = "Project";
subject = "Repository";
}
return {
@@ -33,7 +33,7 @@ export function handleError(
resource: "error",
params: {
error,
title: "Could not load this project",
title: "Could not load this repository",
description: `Make sure you are able to connect to the seed <a href="${url}">${url}</a>.`,
},
};
@@ -55,9 +55,9 @@ export function handleError(
return {
resource: "error",
params: {
title: "Could not load this project",
title: "Could not load this repository",
description:
"You're trying to access a project on your local node but the app is not connected to it. Click the Connect button in the top right corner to connect.",
"You're trying to access a repository on your local node but the app is not connected to it. Click the Connect button in the top right corner to connect.",
error: undefined,
},
};
@@ -66,7 +66,7 @@ export function handleError(
resource: "error",
params: {
error,
title: "Could not load this project",
title: "Could not load this repository",
description:
"You stumbled on an unknown error, we aren't exactly sure what happened.",
},