| 642 | } |
| 643 | |
| 644 | private static String loadString(String key) { |
| 645 | if (lang == null) { |
| 646 | loadLang(); |
| 647 | } |
| 648 | String value = (String) lang.get(key); |
| 649 | //#ifdef LANG_DEBUG |
| 650 | //# if (value==null) { |
| 651 | //# if (!lang.isEmpty()) { |
| 652 | //# System.out.print("-----> Can't find local string for <"); |
| 653 | //# System.out.print(key); |
| 654 | //# System.out.println("> <-----"); |
| 655 | //# } |
| 656 | //# } else { |
| 657 | //# System.out.print(key); |
| 658 | //# System.out.print('\t'); |
| 659 | //# System.out.println(value); |
| 660 | //# } |
| 661 | //#endif |
| 662 | return (value == null) ? key : value; |
| 663 | } |
| 664 | |
| 665 | public static String getPresence(String presenceName) { |
| 666 | if (presenceName.equals("online")) { |