|
Lines 173-178
Link Here
|
| 173 |
{ |
173 |
{ |
| 174 |
osl::DirectoryItem aItem; |
174 |
osl::DirectoryItem aItem; |
| 175 |
osl::FileStatus aFileStatus(FileStatusMask_FileURL); |
175 |
osl::FileStatus aFileStatus(FileStatusMask_FileURL); |
|
|
176 |
|
| 177 |
for (sal_Int32 nPass = 0; nPass < 2; nPass++) { |
| 176 |
while (aSystemDicts.getNextItem(aItem) == osl::FileBase::E_None) |
178 |
while (aSystemDicts.getNextItem(aItem) == osl::FileBase::E_None) |
| 177 |
{ |
179 |
{ |
| 178 |
aItem.getFileStatus(aFileStatus); |
180 |
aItem.getFileStatus(aFileStatus); |
|
Lines 191-196
Link Here
|
| 191 |
if (nIndex != -1) |
193 |
if (nIndex != -1) |
| 192 |
sRegion = sChunk.copy( nIndex, sChunk.getLength() - nIndex ); |
194 |
sRegion = sChunk.copy( nIndex, sChunk.getLength() - nIndex ); |
| 193 |
|
195 |
|
|
|
196 |
if (nPass == 0 && sRegion.getLength() > 2) |
| 197 |
continue; |
| 198 |
|
| 194 |
// Thus we first get the language of the dictionary |
199 |
// Thus we first get the language of the dictionary |
| 195 |
LanguageType nLang = MsLangId::convertIsoNamesToLanguage( |
200 |
LanguageType nLang = MsLangId::convertIsoNamesToLanguage( |
| 196 |
sLang, sRegion ); |
201 |
sLang, sRegion ); |
|
Lines 212-217
Link Here
|
| 212 |
} |
217 |
} |
| 213 |
} |
218 |
} |
| 214 |
} |
219 |
} |
|
|
220 |
} |
| 215 |
} |
221 |
} |
| 216 |
|
222 |
|
| 217 |
#endif |
223 |
#endif |