Make i18n optional, add SoW note
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user