Révision 1258
| tmp/org.txm.translate.rcp/src/org/txm/rcp/translate/devtools/NormalizeKeys.java (revision 1258) | ||
|---|---|---|
| 181 | 181 |
// tests |
| 182 | 182 |
keysNormalizer.normalize(pmManager); |
| 183 | 183 |
|
| 184 |
//pmManager.dump(pmManager.getMessagesForLang(""));
|
|
| 184 |
//pmManager.dump(pmManager.getMessagesForMainLang());
|
|
| 185 | 185 |
pmManager.dumpKeysReplacements(); |
| 186 | 186 |
|
| 187 | 187 |
System.out.println("NormalizeKeys.main(): number of keys: " + pmManager.getMessageKeys().size() + ".");
|
| ... | ... | |
| 189 | 189 |
|
| 190 | 190 |
System.out.println("NormalizeKeys.main(): terminated.");
|
| 191 | 191 |
|
| 192 |
// HashSet<String> strings = new HashSet<String>(); |
|
| 193 |
// strings.add("Error while computing.");
|
|
| 194 |
// strings.add("** Error: the connexion to the server failed: wrong port format");
|
|
| 195 |
// strings.add("** Error: ''{0}'' corpus directory is not conformant to TXM corpus binary format: corpus skipped.");
|
|
| 196 |
// strings.add("T");
|
|
| 197 |
// strings.add("");
|
|
| 198 |
// normalize(strings); |
|
| 199 | 192 |
} |
| 200 | 193 |
catch (UnsupportedEncodingException e) {
|
| 201 | 194 |
// TODO Auto-generated catch block |
| tmp/org.txm.translate.rcp/src/org/txm/rcp/translate/i18n/PluginMessages.java (revision 1258) | ||
|---|---|---|
| 556 | 556 |
} |
| 557 | 557 |
} |
| 558 | 558 |
|
| 559 |
/** |
|
| 560 |
* Dumps the specified HashMap<String, String> to standard output. |
|
| 561 |
* @param messages |
|
| 562 |
*/ |
|
| 563 |
public void dump(HashMap<String, String> messages) {
|
|
| 564 |
for (String key : messages.keySet()) {
|
|
| 565 |
System.out.println("PluginMessages.dump(): " + key + "=" + messages.get(key));
|
|
| 566 |
} |
|
| 567 |
} |
|
| 568 | 559 |
|
| 569 | 560 |
/** |
| 570 | 561 |
* Dumps the keys replacements table. |
| 571 | 562 |
*/ |
| 572 | 563 |
public void dumpKeysReplacements() {
|
| 573 | 564 |
System.out.println("PluginMessages.dumpKeysReplacements(): keys replacements table");
|
| 574 |
this.dump(this.keyModifications); |
|
| 565 |
for (String key : this.keyModifications.keySet()) {
|
|
| 566 |
System.out.println("PluginMessages.dumpKeysReplacements(): " + key + "=>" + this.keyModifications.get(key));
|
|
| 567 |
} |
|
| 575 | 568 |
} |
| 576 | 569 |
|
| 577 | 570 |
/** |
Formats disponibles : Unified diff