Révision 1264
| tmp/org.txm.translate.rcp/src/org/txm/rcp/translate/devtools/NormalizeKeys.java (revision 1264) | ||
|---|---|---|
| 97 | 97 |
return n; |
| 98 | 98 |
} |
| 99 | 99 |
|
| 100 |
|
|
| 101 |
|
|
| 102 | 100 |
// /** |
| 103 | 101 |
// * Normalizes the keys of the specified messages map. |
| 104 | 102 |
// * @param messages |
| tmp/org.txm.translate.rcp/src/org/txm/rcp/translate/i18n/PluginMessages.java (revision 1264) | ||
|---|---|---|
| 661 | 661 |
PluginMessages pmManager = new PluginMessages(projectFile); |
| 662 | 662 |
|
| 663 | 663 |
// test to find files using the specified key |
| 664 |
|
|
| 664 |
/* |
|
| 665 | 665 |
String key = "TXMCoreMessages.Base_0"; |
| 666 | 666 |
TreeSet<File> files = pmManager.getFilesUsingKey(key); |
| 667 | 667 |
System.out.println("getFilesUsingKey: files using key: " + key);
|
| ... | ... | |
| 680 | 680 |
for (int i = 0; i < unusedKeys.size(); i++) {
|
| 681 | 681 |
System.out.println("findUnusedKeys: key " + unusedKeys.get(i) + " is unused in project " + pmManager.getProjectDirectory() + " (main language value = " + pmManager.getMessagesForLang("").get(unusedKeys.get(i)) + ")");
|
| 682 | 682 |
} |
| 683 |
|
|
| 683 |
*/ |
|
| 684 | 684 |
//dict.summary(); |
| 685 |
//dict.saveChanges(); |
|
| 685 |
|
|
| 686 |
|
|
| 687 |
pmManager.saveChanges(); |
|
| 686 | 688 |
|
| 687 | 689 |
System.out.println("PluginMessages.main(): done.");
|
| 688 | 690 |
} |
Formats disponibles : Unified diff