mirror of https://github.com/zlatinb/muwire
do not show language dialog until there are some translations
parent
a8c91d4a3c
commit
341275c8a3
|
@ -1 +0,0 @@
|
|||
EXIT=Изход
|
|
@ -205,6 +205,8 @@ class Initialize extends AbstractLifecycleHandler {
|
|||
}
|
||||
|
||||
private String showLanguageDialog() {
|
||||
if (Translator.SUPPORTED_LOCALES.size() == 1)
|
||||
return Locale.US.toLanguageTag()
|
||||
def builder = new SwingBuilder()
|
||||
def languageComboBox
|
||||
def chooseButton
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package com.muwire.gui;
|
||||
|
||||
import java.text.ChoiceFormat;
|
||||
import java.text.MessageFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedHashSet;
|
||||
|
@ -16,7 +15,6 @@ public class Translator {
|
|||
public static final Set<Locale> SUPPORTED_LOCALES = new LinkedHashSet<>();
|
||||
static {
|
||||
SUPPORTED_LOCALES.add(Locale.US);
|
||||
SUPPORTED_LOCALES.add(Locale.forLanguageTag("bg"));
|
||||
// add more as they get translated
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue