mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 15:32:50 -05:00
i18n: Add japanese + i18n service
This commit is contained in:
@@ -152,30 +152,30 @@ Singleton {
|
||||
return []
|
||||
|
||||
const categoryMap = {
|
||||
"AudioVideo": qsTr("Media"),
|
||||
"Audio": qsTr("Media"),
|
||||
"Video": qsTr("Media"),
|
||||
"Development": qsTr("Development"),
|
||||
"TextEditor": qsTr("Development"),
|
||||
"IDE": qsTr("Development"),
|
||||
"Education": qsTr("Education"),
|
||||
"Game": qsTr("Games"),
|
||||
"Graphics": qsTr("Graphics"),
|
||||
"Photography": qsTr("Graphics"),
|
||||
"Network": qsTr("Internet"),
|
||||
"WebBrowser": qsTr("Internet"),
|
||||
"Email": qsTr("Internet"),
|
||||
"Office": qsTr("Office"),
|
||||
"WordProcessor": qsTr("Office"),
|
||||
"Spreadsheet": qsTr("Office"),
|
||||
"Presentation": qsTr("Office"),
|
||||
"Science": qsTr("Science"),
|
||||
"Settings": qsTr("Settings"),
|
||||
"System": qsTr("System"),
|
||||
"Utility": qsTr("Utilities"),
|
||||
"Accessories": qsTr("Utilities"),
|
||||
"FileManager": qsTr("Utilities"),
|
||||
"TerminalEmulator": qsTr("Utilities")
|
||||
"AudioVideo": I18n.tr("Media"),
|
||||
"Audio": I18n.tr("Media"),
|
||||
"Video": I18n.tr("Media"),
|
||||
"Development": I18n.tr("Development"),
|
||||
"TextEditor": I18n.tr("Development"),
|
||||
"IDE": I18n.tr("Development"),
|
||||
"Education": I18n.tr("Education"),
|
||||
"Game": I18n.tr("Games"),
|
||||
"Graphics": I18n.tr("Graphics"),
|
||||
"Photography": I18n.tr("Graphics"),
|
||||
"Network": I18n.tr("Internet"),
|
||||
"WebBrowser": I18n.tr("Internet"),
|
||||
"Email": I18n.tr("Internet"),
|
||||
"Office": I18n.tr("Office"),
|
||||
"WordProcessor": I18n.tr("Office"),
|
||||
"Spreadsheet": I18n.tr("Office"),
|
||||
"Presentation": I18n.tr("Office"),
|
||||
"Science": I18n.tr("Science"),
|
||||
"Settings": I18n.tr("Settings"),
|
||||
"System": I18n.tr("System"),
|
||||
"Utility": I18n.tr("Utilities"),
|
||||
"Accessories": I18n.tr("Utilities"),
|
||||
"FileManager": I18n.tr("Utilities"),
|
||||
"TerminalEmulator": I18n.tr("Utilities")
|
||||
}
|
||||
|
||||
const mappedCategories = new Set()
|
||||
@@ -206,7 +206,7 @@ Singleton {
|
||||
}
|
||||
|
||||
function getAllCategories() {
|
||||
const categories = new Set([qsTr("All")])
|
||||
const categories = new Set([I18n.tr("All")])
|
||||
|
||||
for (const app of applications) {
|
||||
const appCategories = getCategoriesForApp(app)
|
||||
@@ -217,7 +217,7 @@ Singleton {
|
||||
}
|
||||
|
||||
function getAppsInCategory(category) {
|
||||
if (category === qsTr("All")) {
|
||||
if (category === I18n.tr("All")) {
|
||||
return applications
|
||||
}
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ Singleton {
|
||||
createEmptyFile(fullPath, function() {
|
||||
root.tabs = [{
|
||||
id: id,
|
||||
title: qsTr("Untitled"),
|
||||
title: I18n.tr("Untitled"),
|
||||
filePath: filePath,
|
||||
isTemporary: true,
|
||||
lastModified: new Date().toISOString(),
|
||||
@@ -129,7 +129,7 @@ Singleton {
|
||||
|
||||
var newTab = {
|
||||
id: id,
|
||||
title: qsTr("Untitled"),
|
||||
title: I18n.tr("Untitled"),
|
||||
filePath: filePath,
|
||||
isTemporary: true,
|
||||
lastModified: new Date().toISOString(),
|
||||
@@ -170,7 +170,7 @@ Singleton {
|
||||
createEmptyFile(baseDir + "/" + filePath, function() {
|
||||
newTabs[0] = {
|
||||
id: id,
|
||||
title: qsTr("Untitled"),
|
||||
title: I18n.tr("Untitled"),
|
||||
filePath: filePath,
|
||||
isTemporary: true,
|
||||
lastModified: new Date().toISOString(),
|
||||
|
||||
@@ -166,8 +166,8 @@ Singleton {
|
||||
|
||||
try {
|
||||
const date = new Date(isoString)
|
||||
if (index === 0) return qsTr("Today")
|
||||
if (index === 1) return qsTr("Tomorrow")
|
||||
if (index === 0) return I18n.tr("Today")
|
||||
if (index === 1) return I18n.tr("Tomorrow")
|
||||
|
||||
const locale = Qt.locale()
|
||||
return locale.dayName(date.getDay(), Locale.ShortFormat)
|
||||
|
||||
Reference in New Issue
Block a user