From 009e3cbfc3c2eb72b8e0ee41c9a4ea4c81b69370 Mon Sep 17 00:00:00 2001 From: kovacsv Date: Sat, 27 Jan 2024 09:54:58 +0100 Subject: [PATCH] Localization technology final steps. --- source/website/index.js | 10 ++++++++-- website/index.html | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/source/website/index.js b/source/website/index.js index 11d86a4..cd15e5c 100644 --- a/source/website/index.js +++ b/source/website/index.js @@ -5,6 +5,7 @@ import { SetEventHandler, HandleEvent } from './eventhandler.js'; import { PluginType, RegisterPlugin } from './pluginregistry.js'; import { ButtonDialog, ProgressDialog } from './dialog.js'; import { ShowMessageDialog } from './dialogs.js'; +import { Loc } from '../engine/core/localization.js'; import * as Engine from '../engine/main.js'; export { Engine }; @@ -25,7 +26,8 @@ export const UI = { ButtonDialog, ProgressDialog, ShowMessageDialog, - HandleEvent + HandleEvent, + Loc }; export function SetWebsiteEventHandler (eventHandler) @@ -46,8 +48,12 @@ export function RegisterToolbarPlugin (plugin) export function StartWebsite (externalLibLocation) { SetExternalLibLocation (externalLibLocation); + window.addEventListener ('load', () => { - let website = new Website ({ + document.getElementById ('intro_dragdrop_text').innerHTML = Loc ('Drag and drop 3D models here.'); + document.getElementById ('intro_formats_title').innerHTML = Loc ('Check an example file:'); + + let website = new Website ({ headerDiv : document.getElementById ('header'), headerButtonsDiv : document.getElementById ('header_buttons'), toolbarDiv : document.getElementById ('toolbar'), diff --git a/website/index.html b/website/index.html index dcfa68e..db96c2f 100644 --- a/website/index.html +++ b/website/index.html @@ -68,10 +68,10 @@
-
Check an example file:
+