summaryrefslogtreecommitdiff
path: root/src/client/image.c
diff options
context:
space:
mode:
authorscarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-08-18 21:50:13 +0000
committerscarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-08-18 21:50:13 +0000
commit9c71274e5c4cde5dd99a0eb927243f6c481df1f2 (patch)
tree17d77f14943b7f463145a5550330b56f0ea9548b /src/client/image.c
parent9acea18a3a920b781414ba44e1e1651ea760867b (diff)
- hromada preklapeni na gettext
- zbyva odstranit language funkci - pak uz zbyva pouze rozchodit uplne gettext a vyrobit preklady git-svn-id: http://opensvn.csie.org/tuxanci_ng@222 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/client/image.c')
-rwxr-xr-xsrc/client/image.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/client/image.c b/src/client/image.c
index e76e1cf..bcac02c 100755
--- a/src/client/image.c
+++ b/src/client/image.c
@@ -25,8 +25,9 @@ bool_t isImageInicialized()
void initImageData()
{
assert( isInterfaceInicialized() == TRUE );
-
- printf("init image database..\n");
+#ifdef DEBUG
+ printf(_("Initializing image database\n"));
+#endif
listStorage = newStorage();
isImageDataInit = TRUE;
}
@@ -100,9 +101,9 @@ image_t* addImageData(char *file, int alpha, char *name, char *group)
new = newImage(surface);
addItemToStorage(listStorage, group, name, new );
-
- printf("load image %s\n", file);
-
+#ifdef DEBUG
+ printf(_("Loading image %s\n"), file);
+#endif
return new;
}
@@ -159,7 +160,9 @@ void drawImage(image_t *p, int x,int y, int px, int py, int w, int h)
*/
void quitImageData()
{
- printf("quit image database..\n");
+#ifdef DEBUG
+ printf(_("Quitting image database\n"));
+#endif
destroyStorage(listStorage, destroyImage);
isImageDataInit = FALSE;
}