| 1 |
|
| 2 |
LTris2 |
| 3 |
|
| 4 |
a tetris clone for Linux |
| 5 |
|
| 6 |
******************** |
| 7 |
I. Requirements |
| 8 |
II. Installation |
| 9 |
III. Troubleshooting |
| 10 |
IV. Localization |
| 11 |
V. Feedback |
| 12 |
******************** |
| 13 |
|
| 14 |
******************** |
| 15 |
I. Requirements |
| 16 |
******************** |
| 17 |
LTris2 requires SDL2, SDL2_mixer, SDL2_image, SDL2_ttf. |
| 18 |
All libraries can be found at http://libsdl.org. |
| 19 |
|
| 20 |
******************** |
| 21 |
II. Installation |
| 22 |
******************** |
| 23 |
Enter your favorite shell and type in the following stuff (in the |
| 24 |
directory you extracted the LTris2 source) |
| 25 |
> ./configure [--disable-install] [--disable-nls] |
| 26 |
[--localstatedir=HIDIR] |
| 27 |
--disable-install: no installation; play from source directory |
| 28 |
--localstatedir: install global highscores to this directory |
| 29 |
REPLACES --with-highscore-path TO COMPLY |
| 30 |
WITH AUTOCONF; THE DEFAULT LOCATION NOW |
| 31 |
DEPENDS ON YOUR DISTRIBUTION: PREVIOUSLY |
| 32 |
IT WAS /var/lib/games. USE |
| 33 |
--localstatedir=/var/lib/games |
| 34 |
FOR EXISTING HIGHSCORES. |
| 35 |
--disable-nls disable gettext support |
| 36 |
> make |
| 37 |
> su (become root) |
| 38 |
> make install (if install wasn't disabled) |
| 39 |
> exit (become user again) |
| 40 |
> ltris2 (run game) |
| 41 |
|
| 42 |
******************** |
| 43 |
III. Troubleshooting |
| 44 |
******************** |
| 45 |
Nothing known yet. :-) |
| 46 |
|
| 47 |
******************** |
| 48 |
IV. Localization |
| 49 |
******************** |
| 50 |
This game now supports i18n. If you want to add l10n for your native language, |
| 51 |
please contact me first, to prevent overlapping translations. A thorough |
| 52 |
documentation can be found at |
| 53 |
http://www.gnu.org/software/gettext/manual/html_mono/gettext.html |
| 54 |
Basically, you will have to do the following: |
| 55 |
1) cd po |
| 56 |
2) add your language code (e.g., de for German) to the existing line in |
| 57 |
LINGUAS separated from the other languages by a blank |
| 58 |
3) run `msginit -o <LL>.po` with <LL> replaced by your language code |
| 59 |
4) translate the english message IDs in <LL>.po |
| 60 |
5) run make <LL>.gmo |
| 61 |
Whenever you change something in your translation you'll have to repeat |
| 62 |
step 5). I strongly recommend to configure the program with --disable-install |
| 63 |
while working on a translation. Otherwise you'd have to copy and rename the |
| 64 |
.gmo file as root every time you want to see your changes. If the source has |
| 65 |
been compiled without installation, only step 5) and simply running the game |
| 66 |
is required. (Of course, the enviroment variable LANG must be set to your |
| 67 |
locale.) |
| 68 |
This should suffice. If not, please read the excellent documentation at |
| 69 |
gnu.org. If a string has a single %, meant as a percent sign, |
| 70 |
you'll have to manually remove the 'format' comment above the id (if any). |
| 71 |
|
| 72 |
******************** |
| 73 |
V. Feedback |
| 74 |
******************** |
| 75 |
LGames URL: http://lgames.sf.net |
| 76 |
e-Mail: http://lgames.sf.net/contact.php |
| 77 |
|
| 78 |
Enjoy! |
| 79 |
Michael |