Anda di halaman 1dari 2

here I present an extension of Josefus's package: "the cottage of eternity"

no new story - no new pictures - no new message


only the possibility to switch between different languages.
by sunnyson 2011-4-7
---------------
Installation:
---------------
please install this package in your "the cottage of eternity"-folder.
None of your files are overwritten.
There is new start page "Start_x.html" beside the old "Start.html".
More files are stored in a new "files_x" folder, which lays parallel to the old
"files" folder.
A "files_x/image"-folder doesn't exist. Pictures are linked out of your old "fil
es/image"-folder.

---------------
Translation:
---------------
here is shown a samll attempt to translate german - english. Unfortuantly my kno
wledge isn't sufficient to find the right slang. Therefore only a small part of
the original german text is translated to show how the project might work.
One advantage is that all translations are placed in the same file and can be sw
itched at once.
French and Spain is prepared, but not realized.

---------------
more changes:
---------------
I structed the original text by linebreaks. Now the german text gets easier unde
rstood.

---------------
Technic
---------------
the new technic is based on a combination of CSS and javascript.
additional code is placed in the "_functions.js" file.
old:
<div align="center">
<p> some text
more text </p>
new:
<div class="dv1">
<p class="en"> translated text - english </p>
<p class="fr"> french </p>
<p class="es"> spain </p>
<p class="ll"> I </p> -- a placeholder
<p class="de"> german original text </p>
there might be another class attribut "xyxy" .
It's used to show that the translation needs to be checked.
(actually blue background color)
untranslated text remains german and is included by the script. So navig
ation is possible.
old:
<td><a href="xy.html">start game</a></td>
new:
<td>
<a href="A00_1.html">
<span class="en"> start game </span>
<span class="fr"> start jeu </span>
<span class="es"> game </span>
<span class="de"> beginne Spiel </span>
</a>
</td>

old:
<area shape="rect" coords="15,19,775,567" href="xy.html" title="weiter"
/>
new:
<area shape="rect" coords="15,19,775,567" href="xy.html" title="continue
|d weiter" />
or new:
<area shape="rect" coords="15,19,775,567" href="xy.html" title="continue
|d weiter |f french token |e spain token " />
the title attribut is splitted by "|". Always the first token is englisch. The
first token is used for standard, when no other token fits. Other tokens are re
cognized by:
|d deutsch - german
|f french
|e spanish
----------------
Enjoy!
sunnyson
----------------

Anda mungkin juga menyukai