Possibly i18n with Inform 7

If I want my story to play in different languages, is there a way to “extract” the text from the story in order to translate it into languages ​​other than English?

What I'm thinking of will be something like property files in Java web applications.

+3
source share
1 answer

Not really. The Inform 7 compiler does some of this: when it converts code to Inform 6, it pulls out all string literals as directives Constantin the generated code. But editing the generated code just requires trouble if you are not 100% sure that the game is over and will never be changed again in I7.

, . :

Home is a room. "This is your house."

:

Home is a room. "[home description]".

To say home description: say "This is your house."

"" , .

. , - , , - .

, :

[in the main game code]
The widget is a thing. It is privately-named.

[in the English extension]
Understand "widget" as the widget.

"private-named", Inform , , .

+4

All Articles