mirror of
https://github.com/ankidroid/Anki-Android.git
synced 2024-09-19 19:42:17 +02:00
fix(i18n): file 15-markettitle.txt is gone, remove remnants
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...)
This commit is contained in:
parent
4396544bfb
commit
74feec0a3d
@ -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",
|
||||
|
@ -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";
|
||||
}
|
||||
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user