Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Hi :) Sorry for the total off-topic, but… I looked at one of the screenshots provided above… does it mean that in version 1.1 commands containing accented letters (diacritics???) are supported?(I am yet to begin testing my Polish localization, because I was checking the regex time and time again, and I STILL believe some error(s) will pop up anyway!)Because it (if I remember right) wasn’t the case before, and the Alt key was a ”dead” one. So that is now fixed, it seems :) great! Best regards, Natalia Ryś

P.S. Also…for our translation file to be recognized (loaded) by/into the game it needs to bear the name of the original one “l18n.js“, correct?(Those en-GB and it-IT files were just there to help in translation.)And then we replace the original l18n.js (In v.1.1 it displays the game in English, if I remember right?) with ours…and voila! The game is now in(in my case at least) Polish…is it how we do it? Also please remind me: what is there to translate (if anything) in the game’s engine…? Because there was something…or was this content moved to the l18n file in the updated version?

Big apologies for the wall of text! :(

Hi! :)

As for diacritics, the solution that worked for me was writing the words without them in the "pattern" fields (the user input) and then normally in the label/description fields (the displayed text). The engine just ignores special characters when inputting commands, so it works just fine with Hungarian.

And yes, the game loads only i18n.js, the other files are there just for reference, if I'm correct.

Also, if I'm not mistaken in the new version you should have translatable strings only in the i18n.js file.

(2 edits)

Hi Natalia

the Engine replaced all special characters with their normalized version and LOWERED it:

For instance:

ÇÀÉÙ

become:

caeu

In the pattern you must use the simplified version for recognition (no accents, no upper words ecc):

pattern: `caeu`

In the labels, descriptions, answers ecc.. you can use what you want.

check the simplified  string in the browser console log.

All special keys now shouldn't appear (DEAD/META/UNDEFINED ecc..) If I missed one please tell me.

The file loaded into the game is 18n.js so that's the file you should edit.

In the 1.1 version of AnC i18n.js is a copy of the en-en.i18n.js file, the unofficial english version.

For instance, The engine file shouldn't be touched. You can  edit, in case, AvventuraNelCastello.js if you want, for example, to change the labirynth behaviour... but IMHO it's really hard work. All the misssing parts should be in the i18n.js file now.

:)