Package pt.utl.ist.fenix.tools.util.i18n

Examples of pt.utl.ist.fenix.tools.util.i18n.MultiLanguageString


                AlertMessage.create("message.phd.alert.public.presentation.seminar.subject")));
    }

    private MultiLanguageString buildBody(final PhdIndividualProgramProcess process) {
        int days = getDaysUntilNow(process.getWhenStartedStudies());
        return new MultiLanguageString(Locale.getDefault(), AlertService.getBodyText(process, AlertMessage.create(
                "message.phd.alert.public.presentation.seminar.body", process.getWhenStartedStudies().toString("dd/MM/yyyy"),
                String.valueOf(days < 1 ? 1 : days), getGuidersNames(process))));
    }
View Full Code Here


        if (degreeOfficialPublication == null || area == null || name == null) {
            throw new InvalidArgumentsServiceException();
        }

        DegreeSpecializationArea specializationArea =
                new DegreeSpecializationArea(degreeOfficialPublication, new MultiLanguageString(area));
        specializationArea.setName(new MultiLanguageString(name));
        degreeOfficialPublication.addSpecializationArea(specializationArea);

    }
View Full Code Here

        DegreeInfo degreeInfo = getDegreeInfoFor(executionYear);
        if (degreeInfo == null) {
            degreeInfo = tryCreateUsingMostRecentInfo(executionYear);
        }
        degreeInfo.setName(new MultiLanguageString().with(MultiLanguageString.pt, name.trim()).with(MultiLanguageString.en,
                nameEn.trim()));

        this.setNome(name);
        this.setNameEn(nameEn);
        this.setSigla(code.trim());
View Full Code Here

    }

    @Deprecated
    public MultiLanguageString getNameFor(final ExecutionYear executionYear) {
        DegreeInfo degreeInfo = executionYear == null ? getMostRecentDegreeInfo() : getMostRecentDegreeInfo(executionYear);
        return degreeInfo == null ? new MultiLanguageString().with(MultiLanguageString.pt, super.getNome()).with(
                MultiLanguageString.en, super.getNameEn()) : degreeInfo.getName();
    }
View Full Code Here

        return getNameFor(executionSemester != null ? executionSemester.getExecutionYear() : null);
    }

    public MultiLanguageString getNameFor(final AcademicInterval academicInterval) {
        DegreeInfo degreeInfo = academicInterval == null ? getMostRecentDegreeInfo() : getMostRecentDegreeInfo(academicInterval);
        return degreeInfo == null ? new MultiLanguageString().with(MultiLanguageString.pt, super.getNome()).with(
                MultiLanguageString.en, super.getNameEn()) : degreeInfo.getName();
    }
View Full Code Here

            res.append(degreeType).append(" ");
            res.append(BundleUtil.getString(Bundle.APPLICATION, locale, "label.in"));
            res.append(" ");
        }

        final MultiLanguageString mls = getNameFor(executionYear);
        final Locale language = locale;
        res.append(mls.hasContent(language) ? mls.getContent(language) : mls.getPreferedContent());

        return res.toString();
    }
View Full Code Here

            setRootDomainObject(rootDomainObject);
        } else {
            throw new Error("there.can.only.be.one!");
        }
        setAvailable(Boolean.FALSE);
        setTitle(new MultiLanguageString(MultiLanguageString.pt, "IRS"));
        setIrsLink("");
    }
View Full Code Here

                referee.getValue());
    }

    @Override
    public MultiLanguageString getEmailMessageSubjectForMissingCandidacyValidation(PhdIndividualProgramProcess process) {
        return new MultiLanguageString().with(
                MultiLanguageString.pt,
                MessageFormat.format(BundleUtil.getString(Bundle.PHD, Locale.forLanguageTag("pt"),
                        "message.phd.institution.email.subject.missing.candidacy.validation"), Unit.getInstitutionAcronym()))
                .with(MultiLanguageString.en,
                        MessageFormat.format(BundleUtil.getString(Bundle.PHD, Locale.ENGLISH,
View Full Code Here

                MessageFormat.format(String.format(BundleUtil.getString(Bundle.PHD, Locale.forLanguageTag("pt"),
                        "message.phd.institution.email.body.missing.candidacy.validation"),
                        InstitutionPhdCandidacyProcessProperties.getPublicCandidacyAccessLink(new Locale("en", "EN")), process
                                .getCandidacyProcess().getCandidacyHashCode().getValue()), Unit.getInstitutionAcronym());

        return new MultiLanguageString().with(MultiLanguageString.en, englishBody).with(MultiLanguageString.pt, portugueseBody);
    }
View Full Code Here

        this();
        super.init(process, buildSubject(process), buildBody(process));
    }

    private MultiLanguageString buildSubject(final PhdIndividualProgramProcess process) {
        return new MultiLanguageString(Locale.getDefault(), AlertService.getSubjectPrefixed(process,
                "message.phd.alert.final.proof.request.subject"));
    }
View Full Code Here

TOP

Related Classes of pt.utl.ist.fenix.tools.util.i18n.MultiLanguageString

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.