Révision 1306
tmp/org.txm.translate.rcp/src/org/txm/rcp/translate/i18n/WorkspaceMessagesManager.java (revision 1306) | ||
---|---|---|
205 | 205 |
} |
206 | 206 |
}); |
207 | 207 |
|
208 |
System.out.println("Keys to update: "+keys); |
|
208 | 209 |
ArrayList<String> updated = new ArrayList<String>(); |
209 |
for (PluginMessagesManager pm : pluginsMessagesPerProject.values()) { |
|
210 |
TreeMap<String, TreeSet<File>> index = pm.getUsedKeysFilesIndex();
|
|
210 |
// for (PluginMessagesManager pm : pluginsMessagesPerProject.values()) {
|
|
211 |
TreeMap<String, TreeSet<File>> index = getUsedKeysFilesIndex(); |
|
211 | 212 |
|
212 | 213 |
for (String oldKey : keys) { |
213 | 214 |
if (index.containsKey(oldKey)) { |
... | ... | |
215 | 216 |
if (files.size() > 0) { |
216 | 217 |
System.out.println("REPLACE IN SOURCE FILES THE KEY="+oldKey+" BY KEY="+modifications.get(oldKey)); |
217 | 218 |
for (File srcFile : files) { |
219 |
System.out.println(" "+srcFile+" "+oldKey+" -> "+modifications.get(oldKey)); |
|
218 | 220 |
IOUtils.replaceAll(srcFile, oldKey, modifications.get(oldKey)); |
219 | 221 |
} |
220 | 222 |
updated.add(oldKey); |
221 | 223 |
} |
222 | 224 |
} |
223 | 225 |
} |
224 |
} |
|
226 |
// }
|
|
225 | 227 |
} |
226 | 228 |
|
227 | 229 |
/** |
Formats disponibles : Unified diff