Make i18n optional, add SoW note

This commit is contained in:
2020-05-19 11:07:10 +01:00
parent 9d0750d134
commit 04bdf3e352
2 changed files with 9 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
package assetstore
import (
"log"
"github.com/hajimehoshi/ebiten"
"code.ur.gs/lupine/ordoor/internal/menus"
@@ -77,11 +79,11 @@ func (a *AssetStore) Menu(name string) (*Menu, error) {
i18n, err := a.i18n()
if err != nil {
return nil, err
log.Printf("Failed to load i18n data, skipping internationalisatoin: %s", err)
} else {
raw.Internationalize(i18n)
}
raw.Internationalize(i18n)
// FIXME: we should parse the menu into a list of elements like "ListBox",
// "Dialogue", etc, and present those with objects already selected
objects, err := a.loadMenuObjects(raw)