Skip to content

Adding Language Support to MegaMek

Dave N edited this page Jul 15, 2022 · 1 revision

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"
Clone this wiki locally