Skip to content

Commit 5ec376e

Browse files
committed
Update missing strings
1 parent 64d2155 commit 5ec376e

89 files changed

Lines changed: 428 additions & 398 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/api/providers/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Package } from "../../shared/package"
22

33
export const DEFAULT_HEADERS = {
4-
"HTTP-Referer": "https://github.com/RooVetGit/Roo-Cline",
4+
"HTTP-Referer": "https://github.com/datacoves/Roo-Code",
55
"X-Title": "Datacoves Copilot",
6-
"User-Agent": `RooCode/${Package.version}`,
6+
"User-Agent": `DatacovesCopilot/${Package.version}`,
77
}

src/api/providers/fetchers/roo.ts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import { DEFAULT_HEADERS } from "../constants"
77
import { resolveVersionedSettings, type VersionedSettings } from "./versionedSettings"
88

99
/**
10-
* Fetches available models from the Roo Code Cloud provider
10+
* Fetches available models from the Datacoves Copilot Cloud provider
1111
*
12-
* @param baseUrl The base URL of the Roo Code Cloud provider
13-
* @param apiKey The API key (session token) for the Roo Code Cloud provider
12+
* @param baseUrl The base URL of the Datacoves Copilot Cloud provider
13+
* @param apiKey The API key (session token) for the Datacoves Copilot Cloud provider
1414
* @returns A promise that resolves to a record of model IDs to model info
1515
* @throws Will throw an error if the request fails or the response is not as expected.
1616
*/
@@ -66,9 +66,9 @@ export async function getRooModels(baseUrl: string, apiKey?: string): Promise<Mo
6666
const parsed = RooModelsResponseSchema.safeParse(data)
6767

6868
if (!parsed.success) {
69-
console.error("Error fetching Roo Code Cloud models: Unexpected response format", data)
69+
console.error("Error fetching Datacoves Copilot Cloud models: Unexpected response format", data)
7070
console.error("Validation errors:", parsed.error.format())
71-
throw new Error("Failed to fetch Roo Code Cloud models: Unexpected response format.")
71+
throw new Error("Failed to fetch Datacoves Copilot Cloud models: Unexpected response format.")
7272
}
7373

7474
// Process the validated model data
@@ -168,7 +168,7 @@ export async function getRooModels(baseUrl: string, apiKey?: string): Promise<Mo
168168
}
169169
} catch (error: any) {
170170
// Enhanced error logging
171-
console.error("[getRooModels] Error fetching Roo Code Cloud models:", {
171+
console.error("[getRooModels] Error fetching Datacoves Copilot Cloud models:", {
172172
message: error.message || String(error),
173173
name: error.name,
174174
stack: error.stack,
@@ -178,21 +178,25 @@ export async function getRooModels(baseUrl: string, apiKey?: string): Promise<Mo
178178

179179
// Handle abort/timeout
180180
if (error.name === "AbortError") {
181-
throw new Error("Failed to fetch Roo Code Cloud models: Request timed out after 10 seconds.")
181+
throw new Error("Failed to fetch Datacoves Copilot Cloud models: Request timed out after 10 seconds.")
182182
}
183183

184184
// Handle fetch errors
185185
if (error.message?.includes("HTTP")) {
186-
throw new Error(`Failed to fetch Roo Code Cloud models: ${error.message}. Check base URL and API key.`)
186+
throw new Error(
187+
`Failed to fetch Datacoves Copilot Cloud models: ${error.message}. Check base URL and API key.`,
188+
)
187189
}
188190

189191
// Handle network errors
190192
if (error instanceof TypeError) {
191193
throw new Error(
192-
"Failed to fetch Roo Code Cloud models: No response from server. Check Roo Code Cloud server status and base URL.",
194+
"Failed to fetch Datacoves Copilot Cloud models: No response from server. Check Datacoves Copilot Cloud server status and base URL.",
193195
)
194196
}
195197

196-
throw new Error(`Failed to fetch Roo Code Cloud models: ${error.message || "An unknown error occurred."}`)
198+
throw new Error(
199+
`Failed to fetch Datacoves Copilot Cloud models: ${error.message || "An unknown error occurred."}`,
200+
)
197201
}
198202
}

src/api/providers/roo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class RooHandler extends BaseOpenAiCompatibleProvider<string> {
5454
// The provider-proxy server will return 401 if authentication fails.
5555
super({
5656
...options,
57-
providerName: "Roo Code Cloud",
57+
providerName: "Datacoves Copilot Cloud",
5858
baseURL, // Already has /v1 suffix
5959
apiKey: sessionToken,
6060
defaultProviderModelId: rooDefaultModelId,

src/api/providers/utils/image-generation.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ interface ImagesApiOptions {
5959
}
6060

6161
/**
62-
* Shared image generation implementation for OpenRouter and Roo Code Cloud providers
62+
* Shared image generation implementation for OpenRouter and Datacoves Copilot Cloud providers
6363
*/
6464
export async function generateImageWithProvider(options: ImageGenerationOptions): Promise<ImageGenerationResult> {
6565
const { baseURL, authToken, model, prompt, inputImage } = options
@@ -70,8 +70,8 @@ export async function generateImageWithProvider(options: ImageGenerationOptions)
7070
headers: {
7171
Authorization: `Bearer ${authToken}`,
7272
"Content-Type": "application/json",
73-
"HTTP-Referer": "https://github.com/RooVetGit/Roo-Code",
74-
"X-Title": "Roo Code",
73+
"HTTP-Referer": "https://github.com/datacoves/Roo-Code",
74+
"X-Title": "Datacoves Copilot",
7575
},
7676
body: JSON.stringify({
7777
model,
@@ -216,8 +216,8 @@ export async function generateImageWithImagesApi(options: ImagesApiOptions): Pro
216216
headers: {
217217
Authorization: `Bearer ${authToken}`,
218218
"Content-Type": "application/json",
219-
"HTTP-Referer": "https://github.com/RooVetGit/Roo-Code",
220-
"X-Title": "Roo Code",
219+
"HTTP-Referer": "https://github.com/datacoves/Roo-Code",
220+
"X-Title": "Datacoves Copilot",
221221
},
222222
body: JSON.stringify(requestBody),
223223
}

src/core/protect/RooProtectedController.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class RooProtectedController {
8686
* Get display message for protected file operations
8787
*/
8888
getProtectionMessage(): string {
89-
return "This is a Roo configuration file and requires approval for modifications"
89+
return "This is a Copilot configuration file and requires approval for modifications"
9090
}
9191

9292
/**
@@ -95,7 +95,7 @@ export class RooProtectedController {
9595
*/
9696
getInstructions(): string {
9797
const patterns = RooProtectedController.PROTECTED_PATTERNS.join(", ")
98-
return `# Protected Files\n\n(The following Roo configuration file patterns are write-protected and always require approval for modifications, regardless of autoapproval settings. When using list_files, you'll notice a ${SHIELD_SYMBOL} next to files that are write-protected.)\n\nProtected patterns: ${patterns}`
98+
return `# Protected Files\n\n(The following Copilot configuration file patterns are write-protected and always require approval for modifications, regardless of autoapproval settings. When using list_files, you'll notice a ${SHIELD_SYMBOL} next to files that are write-protected.)\n\nProtected patterns: ${patterns}`
9999
}
100100

101101
/**

src/i18n/locales/ca/common.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/de/common.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/en/common.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"warnings": {
136136
"no_terminal_content": "No terminal content selected",
137137
"missing_task_files": "This task's files are missing. Would you like to remove it from the task list?",
138-
"auto_import_failed": "Failed to auto-import RooCode settings: {{error}}"
138+
"auto_import_failed": "Failed to auto-import Copilot settings: {{error}}"
139139
},
140140
"info": {
141141
"no_changes": "No changes found.",
@@ -144,7 +144,7 @@
144144
"custom_storage_path_set": "Custom storage path set: {{path}}",
145145
"default_storage_path": "Reverted to using default storage path",
146146
"settings_imported": "Settings imported successfully.",
147-
"auto_import_success": "RooCode settings automatically imported from {{filename}}",
147+
"auto_import_success": "Copilot settings automatically imported from {{filename}}",
148148
"share_link_copied": "Share link copied to clipboard",
149149
"organization_share_link_copied": "Organization share link copied to clipboard!",
150150
"public_share_link_copied": "Public share link copied to clipboard!",
@@ -176,8 +176,8 @@
176176
},
177177
"storage": {
178178
"prompt_custom_path": "Enter custom conversation history storage path, leave empty to use default location",
179-
"path_placeholder": "D:\\RooCodeStorage",
180-
"enter_absolute_path": "Please enter an absolute path (e.g. D:\\RooCodeStorage or /home/user/storage)",
179+
"path_placeholder": "D:\\CopilotStorage",
180+
"enter_absolute_path": "Please enter an absolute path (e.g. D:\\CopilotStorage or /home/user/storage)",
181181
"enter_valid_path": "Please enter a valid path"
182182
},
183183
"input": {

src/i18n/locales/es/common.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/fr/common.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)