Skip to content

Commit

Permalink
remove chromeos release files
Browse files Browse the repository at this point in the history
  • Loading branch information
RobozinhoD committed May 5, 2024
1 parent 057693c commit 28a5a0a
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 114 deletions.
1 change: 0 additions & 1 deletion .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ jobs:
"18-standard-models",
"20-search-preference",
"marketdescription",
"ankidroid-titles",
];
let stringsLabel = "Strings";
Expand Down
45 changes: 0 additions & 45 deletions docs/marketing/localized_description/ankidroid-titles.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class TranslationTypo : ResourceXmlDetector(), XmlScanner {
)

// copied from tools/localization/src/constants.ts
// excludes ankidroid-titles and marketdescription as these are .txt
// excludes marketdescription as it is .txt
private val I18N_FILES = listOf(
"01-core",
"02-strings",
Expand Down
57 changes: 0 additions & 57 deletions tools/chromeos/release.sh

This file was deleted.

1 change: 0 additions & 1 deletion tools/localization/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ createDirIfNotExisting(TEMP_DIR);

export const I18N_FILES_DIR = path.join(__dirname, RES_DIR, "values/");
export const RES_VALUES_LANG_DIR = path.join(__dirname, RES_DIR, "values-");
export const TITLE_FILE = path.join(__dirname, DOCS_MARKET_DIR, "ankidroid-titles.txt");
export const MARKET_DESC_FILE = path.join(
__dirname,
DOCS_MARKET_DIR,
Expand Down
9 changes: 0 additions & 9 deletions tools/localization/src/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
LOCALIZED_REGIONS,
TEMP_DIR,
TITLE_STR,
TITLE_FILE,
I18N_FILES,
XML_LICENSE_HEADER,
RES_VALUES_LANG_DIR,
Expand Down Expand Up @@ -145,10 +144,6 @@ async function update(
// these are appended to a special file
if (f == "15-markettitle") {
const translatedTitle = translatedContent.split("\n")[0];

if (TITLE_STR != translatedTitle) {
fs.appendFileSync(TITLE_FILE, "\n" + language + ": " + translatedTitle);
}
return true;
}

Expand All @@ -162,10 +157,6 @@ async function update(
* Update translated I18n files in res/value dir
*/
export async function updateI18nFiles() {
// Create new / empty marketing title file to populate
fs.truncateSync(TITLE_FILE);
fs.appendFileSync(TITLE_FILE, TITLE_STR);

for (const language of LANGUAGES) {
// Language tags are 2- or 3-letters, and regional files need a marker in Android where subtag starts with "r"
// Note the documentation does not describe what works in practice:
Expand Down

0 comments on commit 28a5a0a

Please sign in to comment.