Add warnings to generated files not to edit them directly

main
Isaiah Odhner 2020-12-17 14:26:54 -05:00
parent ffe55171f5
commit 054f47390b
28 changed files with 171 additions and 1 deletions

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("ar", {
"Attributes": "السمات",
"&Width:": "ال&عرض:",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("cs", {
"Attributes": "Atributy",
"&Width:": "Šíř&ka:",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("da", {
"Attributes": "Attributter",
"&Width:": "&Bredde:",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("de", {
"Attributes": "Attribute",
"&Width:": "&Breite:",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("el", {
"Attributes": "Χαρακτηριστικά",
"&Width:": "Π&λάτος:",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("es", {
"Attributes": "Atributos",
"&Width:": "&Ancho:",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("fi", {
"Attributes": "Määritteet",
"&Width:": "&Leveys:",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("fr", {
"Attributes": "Attributs",
"&Width:": "&Largeur :",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("he", {
"Attributes": "תכונות",
"MS Shell Dlg": "MS Sans Serif",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("hu", {
"Attributes": "Tulajdonságok",
"&Width:": "S&zélesség:",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("it", {
"Attributes": "Attributi",
"&Width:": "&Larghezza:",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("ja", {
"Attributes": "キャンバスの色とサイズ",
"MS Shell Dlg": "MS UI Gothic",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("ko", {
"Attributes": "속성",
"MS Shell Dlg": "굴림",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("nl", {
"Attributes": "Kenmerken",
"&Width:": "&Breedte:",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("no", {
"Attributes": "Attributter",
"&Width:": "&Bredde:",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("pl", {
"Attributes": "Atrybuty",
"&Width:": "&Szerokość:",

View File

@ -78,7 +78,13 @@ for (const target_lang of target_langs) {
}
localizations[base_string] = unique_strings[0];
}
const js = `loaded_localizations("${target_lang}", ${JSON.stringify(localizations, null, "\t")});\n`;
const js = `//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("${target_lang}", ${JSON.stringify(localizations, null, "\t")});\n`;
fs.writeFileSync(`${__dirname}/${target_lang}/localizations.js`, js);
}

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("pt-br", {
"Attributes": "Atributos",
"&Width:": "&Largura:",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("pt", {
"Attributes": "Atributos",
"MS Shell Dlg": "MS Sans Serif",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("ru", {
"Attributes": "Атрибуты",
"&Width:": "&Ширина:",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("sk", {
"Attributes": "Atribúty",
"&Width:": "Ší&rka:",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("sl", {
"Attributes": "Atributi",
"MS Shell Dlg": "MS Sans Serif",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("sv", {
"Attributes": "Inställningar",
"&Width:": "&Bredd:",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("tr", {
"Attributes": "Öznitelikler",
"&Width:": "&Genişlik:",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("zh-simplified", {
"Attributes": "属性",
"MS Shell Dlg": "宋体",

View File

@ -1,3 +1,9 @@
//
// NOTE: This is a generated file! Don't edit it directly.
// Eventually community translation will be set up on some translation platform.
//
// Generated with: npm run update-localization
//
loaded_localizations("zh", {
"Attributes": "屬性",
"MS Shell Dlg": "新細明體",

View File

@ -1,3 +1,10 @@
/*\
|*| Note: layout.rtl.css is a generated file. Only edit layout.css, then `npm run build-css`
|*|
|*| Right-to-left layout is handled with a processor called RTLCSS, using comment directives.
|*| Note in particular that "direction: ltr;" by default gets flipped to "direction: rtl;",
|*| so the way to make a piece of UI left-to-right-only is with an ignore directive.
\*/
html, body, .jspaint {
width: 100%;

View File

@ -1,3 +1,10 @@
/*\
|*| Note: layout.rtl.css is a generated file. Only edit layout.css, then `npm run build-css`
|*|
|*| Right-to-left layout is handled with a processor called RTLCSS, using comment directives.
|*| Note in particular that "direction: ltr;" by default gets flipped to "direction: rtl;",
|*| so the way to make a piece of UI left-to-right-only is with an ignore directive.
\*/
html, body, .jspaint {
width: 100%;