/[classpath]/cp-tools/src/gnu/localegen/PropertiesGenerator.java
ViewVC logotype

Diff of /cp-tools/src/gnu/localegen/PropertiesGenerator.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by mkoch, Sat May 21 10:49:40 2005 UTC revision 1.3 by mkoch, Sat May 21 21:26:43 2005 UTC
# Line 342  public class PropertiesGenerator Line 342  public class PropertiesGenerator
342            Hashtable zoneTable;            Hashtable zoneTable;
343            Iterator allValues;            Iterator allValues;
344            DataElement zoneData;            DataElement zoneData;
345              StringBuffer buffer2 = new StringBuffer();
346            boolean zoneDataFound = false;            boolean zoneDataFound = false;
347    
348              buffer2.append(zoneName);
349              buffer2.append("\u00ae");
350    
351            zoneTable = listElt.flattenLeaf(zoneName);            zoneTable = listElt.flattenLeaf(zoneName);
352            for (int j = 0; j < classpathZoneOrder.length; j++)            for (int j = 0; j < classpathZoneOrder.length; j++)
353            {            {
354              zoneData = (DataElement)zoneTable.get(classpathZoneOrder[j]);              zoneData = (DataElement)zoneTable.get(classpathZoneOrder[j]);
355              if (zoneData != null)              if (zoneData != null)
356                {                {
357                  buffer.append(convertToJavaString(zoneData.data));                  buffer2.append(convertToJavaString(zoneData.data));
358                  buffer.append("\u00ae");                  buffer2.append("\u00ae");
359                  zoneDataFound = true;                  zoneDataFound = true;
360                }                }
361              else              else
362                /* TODO: Emit a warning here "Insufficient data" */                {
363                buffer.append("\u00ae");                  /* TODO: Emit a warning here "Insufficient data" */
364                  }
365            }            }
366            if (zoneDataFound)            if (zoneDataFound)
367              {              {
368                buffer.append("\u00ae\u00ae");                buffer.append(buffer2);
369                  buffer.append("\u00a9");
370                usable = true;                usable = true;
371              }              }
372            index++;            index++;
373          }          }
374        if (usable)        if (usable)
375          {          {
376            o.print(buffer);            o.println(buffer);
377          }          }
378      }      }
379    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26