Localize error message in ODataTypeRepository

Change-Id: I92b5a69daf405d71bf8f72685696c647a64cc9d1
Reviewed-on: https://gerrit.libreoffice.org/26807
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
This commit is contained in:
Muhammet Kara
2016-06-30 15:34:58 +03:00
committed by jan iversen
parent b60a5dc5b8
commit 41051ebbc4
3 changed files with 9 additions and 2 deletions

View File

@@ -90,6 +90,8 @@
#define RID_STR_FEATURE_NOT_EXECUTABLE ( RID_FRM_STRINGS_START + 58 )
#define RID_STR_FEATURE_UNKNOWN ( RID_FRM_STRINGS_START + 59 )
#define RID_STR_XFORMS_CANT_REMOVE_TYPE ( RID_FRM_STRINGS_START + 60 )
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -184,4 +184,9 @@ String RID_STR_XFORMS_BINDING_UI_NAME
Text [ en-US ] = "Binding" ;
};
String RID_STR_XFORMS_CANT_REMOVE_TYPE
{
Text [ en-US ] = "This is a built-in type and cannot be removed." ;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -147,8 +147,8 @@ namespace xforms
Repository::iterator aTypePos = implLocate( typeName );
if ( aTypePos->second->getIsBasic() )
throw VetoException("This is a built-in type and cannot be removed.", *this );
// TODO: localize this error message
// "This is a built-in type and cannot be removed."
throw VetoException(FRM_RES_STRING( RID_STR_XFORMS_CANT_REMOVE_TYPE ), *this );
m_aRepository.erase( aTypePos );
}