Skip to content

Commit

Permalink
fix(i18n): file 15-markettitle.txt is gone, remove remnants
Browse files Browse the repository at this point in the history
Related to PR 16348 - the file is no longer needed as it was
for the special (now defunct) ChromeOS store. We stopped processing
it, but we were still uploading it for translation (and the file was
still up in crowdin so being downloaded...)
  • Loading branch information
mikehardy committed Jun 2, 2024
1 parent f8784da commit 03546be
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion tools/localization/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export const I18N_FILES = [
"11-arrays",
"12-dont-translate",
"14-marketdescription",
"15-markettitle",
"16-multimedia-editor",
"17-model-manager",
"18-standard-models",
Expand Down
1 change: 0 additions & 1 deletion tools/localization/src/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ async function replacechars(fileName: string): Promise<boolean> {
*/
function fileExtFor(f: string): string {
if (f == "14-marketdescription") return ".txt";
else if (f == "15-markettitle") return ".txt";
else return ".xml";
}

Expand Down
7 changes: 0 additions & 7 deletions tools/localization/src/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ export async function uploadI18nFiles() {
let I18N_FILE_TARGET_NAME = `${file}.xml`;
let I18N_FILE_SOURCE_NAME = `${I18N_FILES_DIR}${I18N_FILE_TARGET_NAME}`;

// special case, the title is just the name as one line, it is ephemeral so create it
if (file == "15-markettitle") {
I18N_FILE_TARGET_NAME = "15-markettitle.txt";
I18N_FILE_SOURCE_NAME = path.join(TEMP_DIR, "15-markettitle.txt");
fs.writeFileSync(I18N_FILE_SOURCE_NAME, TITLE_STR);
}

// special case, the market description is a txt file from different location
if (file == "14-marketdescription") {
I18N_FILE_TARGET_NAME = "14-marketdescription.txt";
Expand Down

0 comments on commit 03546be

Please sign in to comment.