Beispiel #1
0
 /** updates the buttons/text to language specific */
 public void updateLocale() {
   if (I18N.currentLocale == Locale.deDE) {
     edit.setBounds(420, 20, 120, 30);
     donate.setBounds(330, 20, 80, 30);
     mapInstall.setBounds(620, 20, 190, 30);
     mapInstallLocation.setBounds(420, 20, 190, 30);
     serverbutton.setBounds(420, 20, 390, 30);
     tpInstallLocation.setBounds(420, 20, 190, 30);
     tpInstall.setBounds(620, 20, 190, 30);
   } else {
     edit.setBounds(480, 20, 60, 30);
     donate.setBounds(390, 20, 80, 30);
     mapInstall.setBounds(650, 20, 160, 30);
     mapInstallLocation.setBounds(480, 20, 160, 30);
     serverbutton.setBounds(480, 20, 330, 30);
     tpInstallLocation.setBounds(480, 20, 160, 30);
     tpInstall.setBounds(650, 20, 160, 30);
   }
   launch.setText(I18N.getLocaleString("LAUNCH_BUTTON"));
   edit.setText(I18N.getLocaleString("EDIT_BUTTON"));
   serverbutton.setText(I18N.getLocaleString("DOWNLOAD_SERVER_PACK"));
   mapInstall.setText(I18N.getLocaleString("INSTALL_MAP"));
   serverMap.setText(I18N.getLocaleString("DOWNLOAD_MAP_SERVER"));
   tpInstall.setText(I18N.getLocaleString("INSTALL_TEXTUREPACK"));
   donate.setText(I18N.getLocaleString("DONATE_BUTTON"));
   dropdown_[0] = I18N.getLocaleString("PROFILE_SELECT");
   dropdown_[1] = I18N.getLocaleString("PROFILE_CREATE");
   writeUsers((String) users.getSelectedItem());
   optionsPane.updateLocale();
   modPacksPane.updateLocale();
   mapsPane.updateLocale();
   tpPane.updateLocale();
 }