From 9c71274e5c4cde5dd99a0eb927243f6c481df1f2 Mon Sep 17 00:00:00 2001 From: scarab Date: Mon, 18 Aug 2008 21:50:13 +0000 Subject: - 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 --- src/base/idManager.c | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'src/base/idManager.c') diff --git a/src/base/idManager.c b/src/base/idManager.c index ee6792c..fd4cac9 100644 --- a/src/base/idManager.c +++ b/src/base/idManager.c @@ -38,7 +38,9 @@ void initListID() { listID = newList(); lastID = 0; - printf("init ID manger..\n"); +#ifdef DEBUG + printf(_("Starting ID manger\n")); +#endif } int isRegisterID(int id) @@ -70,7 +72,7 @@ static int findNewID() if( listID->count >= MAX_ID-1 ) { - assert( ! "ziaden ID uz nie je volny !" ); + assert( ! _("No free ID left!") ); } do{ @@ -110,7 +112,7 @@ void incID(int id) if( index == -1 ) { - assert( ! "takyto ID nebol nikdy registrovany !" ); + assert( ! _("This kind of ID was never registered!") ); return; // ha ha ha } @@ -133,7 +135,7 @@ void delID(int id) if( index == -1 ) { - assert( ! "takyto ID nebol nikdy registrovany !" ); + assert( ! _("This kind of ID was never registered!") ); return; // ha ha ha } @@ -183,21 +185,24 @@ void infoID(int id) if( index == -1 ) { - printf("ID %d not exists\n", id); +#ifdef DEBUG + printf(_("ID %d does not exist\n"), id); +#endif return; } this = listID->list[index]; - - printf("ID %d ( count %d )\n", this->id, this->count); - +#ifdef DEBUG + printf(_("ID %d (count %d)\n"), this->id, this->count); +#endif return; } void quitListID() { - printf("quit ID manger..\n"); - +#ifdef DEBUG + printf(_("Quitting ID manger\n")); +#endif assert( listID != NULL ); destroyListItem(listID, destroyIdItem); } -- cgit v1.2.3