Package org.zanata.webtrans.shared.model

Examples of org.zanata.webtrans.shared.model.IdForLocale


                        projectSlug, iterationId.getIterationSlug());

        List<Locale> locales = Lists.newArrayList();
        for (HLocale hLocale : hLocales) {
            Locale locale =
                    new Locale(new IdForLocale(hLocale.getId(),
                            hLocale.getLocaleId()),
                            hLocale.retrieveDisplayName());
            locales.add(locale);
        }
        return new GetLocaleListResult(locales);
View Full Code Here


        WorkspaceId workspaceId = TestFixture.workspaceId();

        //plural="true" content0="One file removed_" content1="%d more files removed"
        sourceTransUnitId = new TransUnitId(3L);
        action = new GetTargetForLocale(sourceTransUnitId,
                new Locale(new IdForLocale(jaHLocale.getId(), localeId), ""));
        action.setWorkspaceId(workspaceId);
    }
View Full Code Here

    public void onSourceLangListBoxOptionChangedWithValidLocale() {
        configHolder.setSelectedReferenceForSourceLang(configHolder
                .DEFAULT_SELECTED_REFERENCE);

        presenter.onSourceLangListBoxOptionChanged(new Locale(
                new IdForLocale(1L, LocaleId.EN_US), "en-US"));

        assertThat(configHolder.getState().getSelectedReferenceForSourceLang(),
                Matchers.equalTo("en-US"));
        verify(eventBus).fireEvent(UserConfigChangeEvent.EDITOR_CONFIG_CHANGE_EVENT);
    }
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.shared.model.IdForLocale

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.