@Inject
  PerunRegistrarView(final PerunRegistrarViewUiBinder binder) {

    initWidget(binder.createAndBindUi(this));

    // put logo
    Image logo = Utils.perunInstanceLogo();
    logo.setWidth("auto");
    logo.setHeight("50px");
    navbarHeader.insert(logo, 0);

    // FIXME - temporary disabled
    help.setVisible(false);

    // init buttons
    application.setText(translation.application());
    myApplications.setText(translation.myApplications());
    help.setText(translation.help());
    language.setText(translation.language());
    logout.setText(translation.logout());

    if (Utils.getNativeLanguage() != null) {

      if ("default".equals(LocaleInfo.getCurrentLocale().getLocaleName())
          || "en".equalsIgnoreCase(LocaleInfo.getCurrentLocale().getLocaleName())) {
        // use english name of native language
        czech.setText(Utils.getNativeLanguage().get("englishName"));
        english.setIcon(IconType.CHECK);
        english.setIconPosition(IconPosition.RIGHT);
        czech.setIcon(null);
      } else {
        // use native name of native language
        czech.setText(Utils.getNativeLanguage().get("nativeName"));
        czech.setIcon(IconType.CHECK);
        czech.setIconPosition(IconPosition.RIGHT);
        english.setIcon(null);
      }
      english.setText(translation.english());

    } else {
      // no language switching
      language.setVisible(false);
    }

    english.setText(translation.english());
  }
 @UiHandler(value = "czech")
 public void czechClick(ClickEvent event) {
   setLocale(Utils.getNativeLanguage());
 }