-rw-r--r-- | kaddressbook/kabprefs.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kaddressbook/kabprefs.cpp b/kaddressbook/kabprefs.cpp index 4b3ee47..79fff47 100644 --- a/kaddressbook/kabprefs.cpp +++ b/kaddressbook/kabprefs.cpp | |||
@@ -157,53 +157,52 @@ void KABPrefs::usrReadConfig() | |||
157 | QString wt; | 157 | QString wt; |
158 | int br = 0; | 158 | int br = 0; |
159 | int nbr; | 159 | int nbr; |
160 | nbr = text.find ( "},", br ); | 160 | nbr = text.find ( "},", br ); |
161 | line = text.mid( br, nbr - br ); | 161 | line = text.mid( br, nbr - br ); |
162 | br = nbr+1; | 162 | br = nbr+1; |
163 | int se, ee, st, et; | 163 | int se, ee, st, et; |
164 | mLocaleDict = new QDict<QString>; | 164 | mLocaleDict = new QDict<QString>; |
165 | QString end = "{ \"\",\"\" }"; | 165 | QString end = "{ \"\",\"\" }"; |
166 | while ( (line != end) && (br > 1) ) { | 166 | while ( (line != end) && (br > 1) ) { |
167 | //qDebug("%d *%s* ", br, line.latin1()); | 167 | //qDebug("%d *%s* ", br, line.latin1()); |
168 | se = line.find("\"")+1; | 168 | se = line.find("\"")+1; |
169 | et = line.findRev("\"",-1); | 169 | et = line.findRev("\"",-1); |
170 | ee = line.find("\",\""); | 170 | ee = line.find("\",\""); |
171 | st = ee+3; | 171 | st = ee+3; |
172 | we = line.mid( se, ee-se ); | 172 | we = line.mid( se, ee-se ); |
173 | wt = line.mid( st, et-st ); | 173 | wt = line.mid( st, et-st ); |
174 | //qDebug("*%s* *%s* ", we.latin1(), wt.latin1()); | 174 | //qDebug("*%s* *%s* ", we.latin1(), wt.latin1()); |
175 | mLocaleDict->insert( we, new QString (wt) ); | 175 | mLocaleDict->insert( we, new QString (wt) ); |
176 | nbr = text.find ( "}", br ); | 176 | nbr = text.find ( "}", br ); |
177 | line = text.mid( br, nbr - br ); | 177 | line = text.mid( br, nbr - br ); |
178 | br = nbr+1; | 178 | br = nbr+1; |
179 | } | 179 | } |
180 | //qDebug("end *%s* ", end.latin1()); | 180 | //qDebug("end *%s* ", end.latin1()); |
181 | 181 | ||
182 | setLocaleDict( mLocaleDict ); | 182 | setLocaleDict( mLocaleDict ); |
183 | } else { | 183 | } else { |
184 | qDebug("KO: Cannot find translation file %s",fileName.latin1() ); | 184 | qDebug("KO: Cannot find translation file %s",fileName.latin1() ); |
185 | } | 185 | } |
186 | 186 | ||
187 | 187 | ||
188 | } | 188 | } |
189 | qDebug("KABPrefs::usrReadConfig********************** "); | ||
190 | KPimPrefs::usrReadConfig(); | 189 | KPimPrefs::usrReadConfig(); |
191 | } | 190 | } |
192 | 191 | ||
193 | 192 | ||
194 | /*US | 193 | /*US |
195 | void KABPrefs::usrSetDefaults() | 194 | void KABPrefs::usrSetDefaults() |
196 | { | 195 | { |
197 | KPimPrefs::usrSetDefaults(); | 196 | KPimPrefs::usrSetDefaults(); |
198 | } | 197 | } |
199 | 198 | ||
200 | void KABPrefs::usrReadConfig() | 199 | void KABPrefs::usrReadConfig() |
201 | { | 200 | { |
202 | KPimPrefs::usrReadConfig(); | 201 | KPimPrefs::usrReadConfig(); |
203 | } | 202 | } |
204 | 203 | ||
205 | void KABPrefs::usrWriteConfig() | 204 | void KABPrefs::usrWriteConfig() |
206 | { | 205 | { |
207 | KPimPrefs::usrWriteConfig(); | 206 | KPimPrefs::usrWriteConfig(); |
208 | } | 207 | } |
209 | */ | 208 | */ |