diff --git a/ccm-cms/src/com/arsdigita/cms/CMSResources.properties b/ccm-cms/src/com/arsdigita/cms/CMSResources.properties index 852b78712..91cacefc1 100755 --- a/ccm-cms/src/com/arsdigita/cms/CMSResources.properties +++ b/ccm-cms/src/com/arsdigita/cms/CMSResources.properties @@ -1099,3 +1099,4 @@ cms.contenttypes.ui.external_link_requires_uri_field=The URI field is required f cms.contenttypes.ui.url_not_valid=The URL is not valid cms.contenttypes.ui.url_missing_protocol=A valid URL starts with a protocol, eg http:// cms.contenttypes.ui.internal_link_requires_item_selection=Item selection is required for internal link +cms.contenttypes.ui.false_link_target=Link target is the same as this object diff --git a/ccm-cms/src/com/arsdigita/cms/CMSResources_de.properties b/ccm-cms/src/com/arsdigita/cms/CMSResources_de.properties index c0d0851b9..a83f8f419 100755 --- a/ccm-cms/src/com/arsdigita/cms/CMSResources_de.properties +++ b/ccm-cms/src/com/arsdigita/cms/CMSResources_de.properties @@ -1093,3 +1093,4 @@ cms.contenttypes.ui.external_link_requires_uri_field=Das URI-Feld wird f\u00fcr cms.contenttypes.ui.url_not_valid=Die URL ist nicht g\u00fcltig cms.contenttypes.ui.url_missing_protocol=Eine g\u00fcltige URL startet mit einem Protokoll, z.B. http:// cms.contenttypes.ui.internal_link_requires_item_selection=Item-Wahl f\u00fcr den internen Link ist notwendig +cms.contenttypes.ui.false_link_target=Das Ziel des Links ist das Selbe, wie dieses Objekt diff --git a/ccm-cms/src/com/arsdigita/cms/CMSResources_en_GB.properties b/ccm-cms/src/com/arsdigita/cms/CMSResources_en_GB.properties index 8b9775bba..387e473c4 100755 --- a/ccm-cms/src/com/arsdigita/cms/CMSResources_en_GB.properties +++ b/ccm-cms/src/com/arsdigita/cms/CMSResources_en_GB.properties @@ -137,3 +137,4 @@ cms.contenttypes.ui.external_link_requires_uri_field= cms.contenttypes.ui.url_not_valid= cms.contenttypes.ui.url_missing_protocol= cms.contenttypes.ui.internal_link_requires_item_selection= +cms.contenttypes.ui.false_link_target= diff --git a/ccm-cms/src/com/arsdigita/cms/CMSResources_fr.properties b/ccm-cms/src/com/arsdigita/cms/CMSResources_fr.properties index 41ffe4e94..d272f007d 100755 --- a/ccm-cms/src/com/arsdigita/cms/CMSResources_fr.properties +++ b/ccm-cms/src/com/arsdigita/cms/CMSResources_fr.properties @@ -609,3 +609,4 @@ cms.contenttypes.ui.external_link_requires_uri_field=Le champ URI est n\u00e9ces cms.contenttypes.ui.url_not_valid=L'URL n'est pas valide cms.contenttypes.ui.url_missing_protocol=Une URL valide commence par un protocol, p.e. http:// cms.contenttypes.ui.internal_link_requires_item_selection=Choix d'article pour le lien interne est n\u00e9cessaire +cms.contenttypes.ui.false_link_target=La cible de lien est la m\u00eame que cet objet diff --git a/ccm-cms/src/com/arsdigita/cms/contenttypes/ui/LinkPropertyForm.java b/ccm-cms/src/com/arsdigita/cms/contenttypes/ui/LinkPropertyForm.java index 3b93a5099..7c0c4b181 100755 --- a/ccm-cms/src/com/arsdigita/cms/contenttypes/ui/LinkPropertyForm.java +++ b/ccm-cms/src/com/arsdigita/cms/contenttypes/ui/LinkPropertyForm.java @@ -454,7 +454,8 @@ public class LinkPropertyForm extends FormSection // The target of the link must not be the same as the owner if (m_itemModel.getSelectedItem(state).getID().equals( ((ContentItem) data.get(ITEM_SEARCH)).getID())) { - throw new FormProcessException("Link target is the same as this object."); + throw new FormProcessException(GlobalizationUtil.globalize( + "cms.contenttypes.ui.false_link_target")); } } }