Adding Language Support to MegaMek - MegaMek/megamek GitHub Wiki

This is assuming the files in the i18n folder are written and ready to go.

In CommonSettingsDialog.java

  • update line 232 private static final String[] LOCALE_CHOICES = { "en", "de", "ru", "LANGUAGE 2 DIGIT CODE HERE" };

  • add after line 308 in CommonSettingsDialog: displayLocale.addItem(Messages.getString("CommonSettingsDialog.locale.LANGUAGE HERE"));

In messages.properties in i18n\megamek\client

  • somewhere around line 1000 add "CommonSettingsDialog.locale.LANGUAGE HERE"="LANGUAGE"