-
- // see if we find translatin indexes
- if (stat("i18n",&Buf) == 0)
- {
- D = opendir("i18n");
- for (struct dirent *Dir = readdir(D); Dir != 0; Dir = readdir(D))
- {
- if(strstr(Dir->d_name,"Translation") != NULL)
- {
- if (_config->FindB("Debug::aptcdrom",false) == true)
- std::clog << "found translations: " << Dir->d_name << "\n";
- string file = Dir->d_name;
- if(file.substr(file.size()-3,file.size()) == ".gz")
- file = file.substr(0,file.size()-3);
- TransList.push_back(CD+"i18n/"+ file);
- }
- }
- closedir(D);
- }
-