Revision 26431 branches/v10/extensions/extI18n/src/org/gvsig/i18n/impl/I18nManagerImpl.java
I18nManagerImpl.java | ||
---|---|---|
50 | 50 |
*/ |
51 | 51 |
public class I18nManagerImpl implements I18nManager { |
52 | 52 |
|
53 |
private static final String LOCALES_FILE_NAME = "locales.csv"; |
|
54 |
|
|
53 | 55 |
private static final String CSV_SEPARATOR = ","; |
54 | 56 |
|
55 | 57 |
private static final String I18N_EXTENSION = "org.gvsig.i18n"; |
... | ... | |
419 | 421 |
|
420 | 422 |
private Map getZipFileNonReferenceLocales(ZipFile zipFile) |
421 | 423 |
throws I18nException { |
422 |
ZipEntry zipEntry = zipFile.getEntry("locales.csv");
|
|
424 |
ZipEntry zipEntry = zipFile.getEntry(LOCALES_FILE_NAME);
|
|
423 | 425 |
|
424 | 426 |
if (zipEntry == null) { |
425 | 427 |
return null; |
... | ... | |
505 | 507 |
|
506 | 508 |
private void writeZipFileLocales(ZipOutputStream zos, Locale locale, |
507 | 509 |
Locale[] referenceLocales) throws IOException { |
508 |
ZipEntry zipEntry = new ZipEntry("locales.csv");
|
|
510 |
ZipEntry zipEntry = new ZipEntry(LOCALES_FILE_NAME);
|
|
509 | 511 |
|
510 | 512 |
zos.putNextEntry(zipEntry); |
511 | 513 |
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(zos)); |
Also available in: Unified diff