question about "locked" feature using library "italiano.aslx"

greenelvish
21 Oct 2017, 15:09

Hi,
I tried to use the locked feature, using the italian traslation. The default message should be "è chius" + object'suffix.

"E' chius" means "is closed", but without last letter (so it becames: "is close"), because in italian this last letter is the suffix of the name (it change depending on type: female, male, inanimate)

I found code in "italiano.aslx":
<dynamictemplate name="LockedObject">WriteVerb(object, "essere") + " chius" + GetSuffix (object) + " a chiave."</dynamictemplate>

So, if I lock a door (in italian door is "porta", feminine: suffix is "a"), I expect "E' chiusa".
Instead, it writes just "E' chius", without any suffix.

I can't figure out how resolve this.
Thank you


jmnevil54
21 Oct 2017, 15:44

The prefix is at the start, the suffix is at the end...
...
Sorry, I don't know...

Why are you expecting "E' chuise...?"
è (Alt 0232)
é (Alt 0233)

Did you remember to set the suffix to "e" ? You can't just say "bring me the suffix" without setting it...

Or it could be a code language error, or a code grammar error. I don't know.


greenelvish
21 Oct 2017, 15:53

My problem is not "E" (verb) but "a" (suffix at the end of the word "chius")

You may traslate "E' chiusa" with "Is closed"
The difference is that in english you cannot understand if "is closed" refers to a masculine or feminine subject, while in italian it is revealed by the suffix: "a" is feminine and "o" is masculine. So you will have "chiusa" (feminine) and "chiuso" (masculine). The part of the word that never changes is "chius".

Thank anyway for your answer!


The Pixie
21 Oct 2017, 15:54

Is this the message when am item is locked? In English (if that helps):

> Lock door
Locked.

The template is this one:

<dynamictemplate name="LockMessage">WriteVerb(object, "essere") + " bloccat" + GetSuffix (object) + " (chius" + GetSuffix (object) + " a chiave )"</dynamictemplate>

That looks like it should get the right ending. Do other templates work okay with the endings (i.e., could this be an issue with GetSuffix)? Is the porta set to be the "feminine" type (Attributes tab I guess)?


mrangel
21 Oct 2017, 16:09

I've looked over the code, and tried a few experiments; it seems to work (as far as I can tell, anyway).

Are you sure you set the door's type to "Inanimate object (feminine)"?


greenelvish
21 Oct 2017, 20:12

ok, now it seems to works. I'm not sure, but I'm afraid it was just the issue with GetSuffix...

Sorry... and thank for your support