2023-01-12 17:33:39 +01:00
|
|
|
import qbs.FileInfo
|
|
|
|
|
|
|
|
Product {
|
|
|
|
Depends { name: "i18n" }
|
2023-01-18 14:00:43 +01:00
|
|
|
Depends { name: "i18nconfig" }
|
2023-01-12 17:33:39 +01:00
|
|
|
|
|
|
|
name: "Translations"
|
|
|
|
type: "ts"
|
|
|
|
builtByDefault: false
|
|
|
|
|
|
|
|
Group {
|
|
|
|
name: "Headers"
|
2023-01-17 11:00:35 +01:00
|
|
|
prefix: project.sourceDirectory + "/src/"
|
2023-01-12 17:33:39 +01:00
|
|
|
files: [
|
|
|
|
"app/**/*.h",
|
|
|
|
"app/**/*.hpp",
|
|
|
|
"libs/**/*.h",
|
|
|
|
"libs/**/*.hpp"
|
|
|
|
]
|
|
|
|
excludeFiles: [
|
|
|
|
"libs/vpatterndb/vtranslatemeasurements.h"
|
|
|
|
]
|
|
|
|
fileTags: "i18n.hpp"
|
|
|
|
}
|
|
|
|
|
|
|
|
Group {
|
|
|
|
name: "Sources"
|
2023-01-17 11:00:35 +01:00
|
|
|
prefix: project.sourceDirectory + "/src/"
|
2023-01-12 17:33:39 +01:00
|
|
|
files: [
|
|
|
|
"app/**/*.cpp",
|
|
|
|
"app/**/*.js",
|
|
|
|
"app/**/*.qml",
|
|
|
|
"libs/**/*.cpp",
|
|
|
|
"libs/**/*.js",
|
|
|
|
"libs/**/*.qml"
|
|
|
|
]
|
|
|
|
excludeFiles: [
|
|
|
|
"libs/vpatterndb/vtranslatemeasurements.cpp"
|
|
|
|
]
|
|
|
|
fileTags: "i18n.src"
|
|
|
|
}
|
|
|
|
|
|
|
|
Group {
|
|
|
|
name: "Forms"
|
2023-01-17 11:00:35 +01:00
|
|
|
prefix: project.sourceDirectory + "/src/"
|
2023-01-12 17:33:39 +01:00
|
|
|
files: [
|
|
|
|
"app/**/*.ui",
|
|
|
|
"libs/**/*.ui"
|
|
|
|
]
|
|
|
|
fileTags: "i18n.ui"
|
|
|
|
}
|
|
|
|
|
|
|
|
Group {
|
|
|
|
name: "Translations"
|
|
|
|
files: {
|
|
|
|
var files = [];
|
|
|
|
|
2023-01-18 14:00:43 +01:00
|
|
|
var locales = i18nconfig.translationLocales;
|
2023-01-12 17:33:39 +01:00
|
|
|
|
|
|
|
files.push("valentina.ts");
|
|
|
|
|
|
|
|
for (var i = 0; i < locales.length; i++) {
|
|
|
|
files.push("valentina_" + locales[i] + ".ts");
|
|
|
|
}
|
|
|
|
|
|
|
|
return files;
|
|
|
|
}
|
|
|
|
fileTags: "i18n.ts"
|
|
|
|
}
|
|
|
|
}
|