diff --git a/umbraco/cms/businesslogic/ContentType.cs b/umbraco/cms/businesslogic/ContentType.cs
index c59afba4a5..f127dbf608 100644
--- a/umbraco/cms/businesslogic/ContentType.cs
+++ b/umbraco/cms/businesslogic/ContentType.cs
@@ -215,7 +215,30 @@ namespace umbraco.cms.businesslogic
/// The description.
public string Description
{
- get { return _description; }
+ get {
+ if (_description != null)
+ {
+ if (!_description.StartsWith("#"))
+ return _description;
+ else
+ {
+ Language lang = Language.GetByCultureCode(Thread.CurrentThread.CurrentCulture.Name);
+ if (lang != null)
+ {
+ if (Dictionary.DictionaryItem.hasKey(_description.Substring(1, _description.Length - 1)))
+ {
+ var di =
+ new Dictionary.DictionaryItem(_description.Substring(1, _description.Length - 1));
+ return di.Value(lang.id);
+ }
+ }
+ }
+
+ return "[" + _description + "]";
+ }
+
+ return _description;
+ }
set
{
_description = value;
@@ -471,7 +494,10 @@ namespace umbraco.cms.businesslogic
{
return base.Text;
}
-
+ public string GetRawDescription()
+ {
+ return _description;
+ }
///
/// Used to persist object changes to the database. In Version3.0 it's just a stub for future compatibility
///
diff --git a/umbraco/cms/businesslogic/propertytype/propertytype.cs b/umbraco/cms/businesslogic/propertytype/propertytype.cs
index de27e951a4..212c9369c5 100644
--- a/umbraco/cms/businesslogic/propertytype/propertytype.cs
+++ b/umbraco/cms/businesslogic/propertytype/propertytype.cs
@@ -166,8 +166,8 @@ namespace umbraco.cms.businesslogic.propertytype
return "[" + _description + "]";
}
- else
- return _description;
+
+ return _description;
}
set
{
diff --git a/umbraco/presentation/umbraco/controls/ContentTypeControlNew.ascx.cs b/umbraco/presentation/umbraco/controls/ContentTypeControlNew.ascx.cs
index f2848fa567..55f2f64ff8 100644
--- a/umbraco/presentation/umbraco/controls/ContentTypeControlNew.ascx.cs
+++ b/umbraco/presentation/umbraco/controls/ContentTypeControlNew.ascx.cs
@@ -192,7 +192,7 @@ jQuery(function() { refreshDropDowns(); });
txtName.Text = cType.GetRawText();
txtAlias.Text = cType.Alias;
- description.Text = cType.Description;
+ description.Text = cType.GetRawDescription();
}
#endregion