diff options
| author | scarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-18 21:50:13 +0000 |
|---|---|---|
| committer | scarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-18 21:50:13 +0000 |
| commit | 9c71274e5c4cde5dd99a0eb927243f6c481df1f2 (patch) | |
| tree | 17d77f14943b7f463145a5550330b56f0ea9548b /src/base/idManager.c | |
| parent | 9acea18a3a920b781414ba44e1e1651ea760867b (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/base/idManager.c')
| -rw-r--r-- | src/base/idManager.c | 25 |
1 files changed, 15 insertions, 10 deletions
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); } |