UI Message default value in Liferay portlet -
does know, if in liferay possibility use default value in ui message ? mean have 2 files .properties translations, example: en.properties:
welecome=hallo somekey=
,and default.properites
welecome=hallo somekey=value of key
i want achieve, if use:
<liferay-ui:message key="welcome" /> <liferay-ui:message key="somekey" />
with english language (where there no translation key 'somekey'), displayed value be:
hallo value of key
i mean, when there no translation key, liferay portlet use value default properties file.
regards
with standard naming conventions, typically have files language.properties
, language_en.properties
. when english language displayed, entry not contained in language_en.properties
, expect value language.properties
shown.
however, in case define somekey
empty value, means it's defined this.
moreover, liferay offers "language builder" tool can run during development time (in plugins-sdk run ant build-lang
. create configured language files automatically, automatically copying values original file if not yet contained in translated file.
if have api credentials bing, can use these automatically translated value various languages, i'm not big fan of these. actually, i'm quite annoyed automatic translations.
Comments
Post a Comment