Skip to content

Commit

Permalink
fix: removed incorrect file endings
Browse files Browse the repository at this point in the history
  • Loading branch information
sr258 committed Nov 23, 2021
1 parent ee6ae51 commit 1f1f618
Show file tree
Hide file tree
Showing 26 changed files with 78 additions and 78 deletions.
6 changes: 3 additions & 3 deletions locales/lumi/af.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"title": "Voer uit as ...",
"buttonLabel": "Uitvoer",
"formatNames": {
"bundle": "Alles-in-een HTML-lêer (.html)",
"external": "HTML-lêer (.html)",
"scorm": "SCORM-lêer (.zip)"
"bundle": "Alles-in-een HTML-lêer",
"external": "HTML-lêer",
"scorm": "SCORM-lêer"
}
},
"defaults": {
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/am.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"title": "ላክ እንደ ...",
"buttonLabel": "ወደ ውጭ ላክ",
"formatNames": {
"bundle": "ሁሉም-በአንድ-ኤችቲኤምኤል ፋይል (.html)",
"external": "የኤችቲኤምኤል ፋይል (.html)",
"scorm": "SCORM ፋይል (.zip)"
"bundle": "ሁሉም-በአንድ-ኤችቲኤምኤል ፋይል",
"external": "የኤችቲኤምኤል ፋይል",
"scorm": "SCORM ፋይል"
}
},
"defaults": {
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"title": "تصدير كـ …",
"buttonLabel": "يصدر",
"formatNames": {
"bundle": "ملف HTML الكل في واحد (.html)",
"external": "ملف HTML (.html)",
"scorm": "ملف SCORM (.zip)"
"bundle": "ملف HTML الكل في واحد",
"external": "ملف HTML",
"scorm": "ملف SCORM"
}
},
"defaults": {
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"title": "Експортиране като ...",
"buttonLabel": "Износ",
"formatNames": {
"bundle": "Всичко в едно HTML файл (.html)",
"external": "HTML файл (.html)",
"scorm": "SCORM файл (.zip)"
"bundle": "Всичко в едно HTML файл",
"external": "HTML файл",
"scorm": "SCORM файл"
}
},
"defaults": {
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/bs.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"title": "Izvezi kao ...",
"buttonLabel": "Izvoz",
"formatNames": {
"bundle": "Sve u jednom HTML datoteka (.html)",
"external": "HTML datoteka (.html)",
"scorm": "SCORM datoteka (.zip)"
"bundle": "Sve u jednom HTML datoteka",
"external": "HTML datoteka",
"scorm": "SCORM datoteka"
}
},
"defaults": {
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"title": "Exporta com a ...",
"buttonLabel": "Exporta",
"formatNames": {
"bundle": "Fitxer HTML tot en un (.html)",
"external": "Fitxer HTML (.html)",
"scorm": "Fitxer SCORM (.zip)"
"bundle": "Fitxer HTML tot en un",
"external": "Fitxer HTML",
"scorm": "Fitxer SCORM"
}
},
"defaults": {
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
"filePicker": {
"buttonLabel": "Vývozní",
"formatNames": {
"bundle": "Soubor HTML typu vše v jednom (.html)",
"external": "Soubor HTML (.html)",
"scorm": "Soubor SCORM (.zip)"
"bundle": "Soubor HTML typu vše v jednom",
"external": "Soubor HTML",
"scorm": "Soubor SCORM"
},
"title": "Exportovat jako ..."
},
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
"filePicker": {
"buttonLabel": "Exportieren",
"formatNames": {
"bundle": "All-in-One-HTML-Datei (.html)",
"external": "HTML-Datei (.html)",
"scorm": "SCORM-Datei (.zip)"
"bundle": "All-in-One-HTML-Datei",
"external": "HTML-Datei",
"scorm": "SCORM-Datei"
},
"title": "Exportieren als ..."
},
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"title": "Εξαγωγή ως ...",
"buttonLabel": "Εξαγωγή",
"formatNames": {
"bundle": "Όλα σε ένα αρχείο HTML (.html)",
"external": "Αρχείο HTML (.html)",
"scorm": "Αρχείο SCORM (.zip)"
"bundle": "Όλα σε ένα αρχείο HTML",
"external": "Αρχείο HTML",
"scorm": "Αρχείο SCORM"
}
},
"defaults": {
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@
"title": "Export as...",
"buttonLabel": "Export",
"formatNames": {
"bundle": "All-in-one HTML file (.html)",
"external": "HTML file (.html)",
"scorm": "SCORM file (.zip)"
"bundle": "All-in-one HTML file",
"external": "HTML file",
"scorm": "SCORM file"
}
},
"defaults": {
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/es-MX.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
"filePicker": {
"buttonLabel": "Exportar",
"formatNames": {
"bundle": "Archivo HTML todo en uno (.html)",
"external": "Archivo HTML (.html)",
"scorm": "Archivo SCORM (.zip)"
"bundle": "Archivo HTML todo en uno",
"external": "Archivo HTML",
"scorm": "Archivo SCORM"
},
"title": "Exportar como..."
},
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
"filePicker": {
"buttonLabel": "Exportar",
"formatNames": {
"bundle": "Archivo HTML todo en uno (.html)",
"external": "Archivo HTML (.html)",
"scorm": "Archivo SCORM (.zip)"
"bundle": "Archivo HTML todo en uno",
"external": "Archivo HTML",
"scorm": "Archivo SCORM"
},
"title": "Exportar como..."
},
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/et.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
"filePicker": {
"buttonLabel": "Eksport",
"formatNames": {
"bundle": "Kõik ühes HTML-fail (.html)",
"external": "HTML-fail (.html)",
"scorm": "SCORM-fail (.zip)"
"bundle": "Kõik ühes HTML-fail",
"external": "HTML-fail",
"scorm": "SCORM-fail"
},
"title": "Ekspordi nimega ..."
},
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/eu.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"title": "Esportatu honela ...",
"buttonLabel": "Esportatu",
"formatNames": {
"bundle": "Bat-bateko HTML fitxategia (.html)",
"external": "HTML fitxategia (.html)",
"scorm": "SCORM fitxategia (.zip)"
"bundle": "Bat-bateko HTML fitxategia",
"external": "HTML fitxategia",
"scorm": "SCORM fitxategia"
}
},
"defaults": {
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"title": "Vie nimellä ...",
"buttonLabel": "Viedä",
"formatNames": {
"bundle": "Kaikki yhdessä HTML-tiedosto (.html)",
"external": "HTML-tiedosto (.html)",
"scorm": "SCORM-tiedosto (.zip)"
"bundle": "Kaikki yhdessä HTML-tiedosto",
"external": "HTML-tiedosto",
"scorm": "SCORM-tiedosto"
}
},
"defaults": {
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
"filePicker": {
"buttonLabel": "Exporter",
"formatNames": {
"bundle": "Fichier HTML tout-en-un (.html)",
"external": "Fichier HTML (.html)",
"scorm": "Fichier SCORM (.zip)"
"bundle": "Fichier HTML tout-en-un",
"external": "Fichier HTML",
"scorm": "Fichier SCORM"
},
"title": "Exporter sous ..."
},
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
"filePicker": {
"buttonLabel": "Esportare",
"formatNames": {
"bundle": "File HTML all-in-one (.html)",
"external": "File HTML (.html)",
"scorm": "File SCORM (.zip)"
"bundle": "File HTML all-in-one",
"external": "File HTML",
"scorm": "File SCORM"
},
"title": "Esporta come ..."
},
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/km.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"title": "នាំចេញជា ...",
"buttonLabel": "នាំចេញ",
"formatNames": {
"bundle": "ឯកសារ HTML ទាំងអស់ក្នុងមួយ (.html)",
"external": "ឯកសារ HTML (.html)",
"scorm": "ឯកសារ SCORM (.zip)"
"bundle": "ឯកសារ HTML ទាំងអស់ក្នុងមួយ",
"external": "ឯកសារ HTML",
"scorm": "ឯកសារ SCORM"
}
},
"defaults": {
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"title": "다른 이름으로 내보내기 ...",
"buttonLabel": "수출",
"formatNames": {
"bundle": "올인원 HTML 파일 (.html)",
"external": "HTML 파일 (.html)",
"scorm": "SCORM 파일 (.zip)"
"bundle": "올인원 HTML 파일",
"external": "HTML 파일",
"scorm": "SCORM 파일"
}
},
"defaults": {
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"title": "Exporteren als ...",
"buttonLabel": "Exporteren",
"formatNames": {
"bundle": "Alles-in-één HTML-bestand (.html)",
"external": "HTML-bestand (.html)",
"scorm": "SCORM-bestand (.zip)"
"bundle": "Alles-in-één HTML-bestand",
"external": "HTML-bestand",
"scorm": "SCORM-bestand"
}
},
"defaults": {
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
"filePicker": {
"buttonLabel": "Exportar",
"formatNames": {
"bundle": "Arquivo HTML tudo-em-um (.html)",
"external": "Arquivo HTML (.html)",
"scorm": "Arquivo SCORM (.zip)"
"bundle": "Arquivo HTML tudo-em-um",
"external": "Arquivo HTML",
"scorm": "Arquivo SCORM"
},
"title": "Exportar como ..."
},
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
"filePicker": {
"buttonLabel": "Экспорт",
"formatNames": {
"bundle": "Многофункциональный HTML-файл (.html)",
"external": "HTML-файл (.html)",
"scorm": "Файл SCORM (.zip)"
"bundle": "Многофункциональный HTML-файл",
"external": "HTML-файл",
"scorm": "Файл SCORM"
},
"title": "Экспортировать как ..."
},
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/sl.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"title": "Izvozi kot ...",
"buttonLabel": "Izvozi",
"formatNames": {
"bundle": "Vse-v-enem datoteka HTML (.html)",
"external": "Datoteka HTML (.html)",
"scorm": "Datoteka SCORM (.zip)"
"bundle": "Vse-v-enem datoteka HTML",
"external": "Datoteka HTML",
"scorm": "Datoteka SCORM"
}
},
"defaults": {
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"title": "Exportera som ...",
"buttonLabel": "Exportera",
"formatNames": {
"bundle": "Allt-i-ett HTML-fil (.html)",
"external": "HTML-fil (.html)",
"scorm": "SCORM-fil (.zip)"
"bundle": "Allt-i-ett HTML-fil",
"external": "HTML-fil",
"scorm": "SCORM-fil"
}
},
"defaults": {
Expand Down
6 changes: 3 additions & 3 deletions locales/lumi/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
"filePicker": {
"buttonLabel": "Dışa Aktar",
"formatNames": {
"bundle": "Hepsi bir arada HTML dosyası (.html)",
"external": "HTML dosyası (.html)",
"scorm": "SCORM dosyası (.zip)"
"bundle": "Hepsi bir arada HTML dosyası",
"external": "HTML dosyası",
"scorm": "SCORM dosyası"
},
"title": "Farklı Dışa Aktar..."
},
Expand Down
6 changes: 3 additions & 3 deletions server/src/helpers/FilenameSanitizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ export function generalizedSanitizeFilename(
// Shorten the filename if it is too long.
const numberOfCharactersToCut = cleanedFilename.length - maxLength;
if (numberOfCharactersToCut < 0) {
return cleanedFilename;
return cleanedFilename.trim();
}

const finalBasenameLength = Math.max(
1,
cleanedFilename.length - numberOfCharactersToCut
);
return cleanedFilename.substr(0, finalBasenameLength);
return cleanedFilename.substr(0, finalBasenameLength).trim();
}

/**
Expand All @@ -58,7 +58,7 @@ export function sanitizeFilename(
return generalizedSanitizeFilename(
filename,
/[~"#%&*:<>?/\\{|}]/g,
50,
128,
fallbackFilename
);
}

0 comments on commit 1f1f618

Please sign in to comment.