diff options
author | Muhammet Kara <muhammet.kara@pardus.org.tr> | 2016-06-30 15:34:58 +0300 |
---|---|---|
committer | jan iversen <jani@documentfoundation.org> | 2016-07-04 06:17:41 +0000 |
commit | 41051ebbc416aafafec79c6795a8f8587c58d0e5 (patch) | |
tree | 39e9a72ca723d9c40e06aaec09b0af59c419bb04 /forms | |
parent | b60a5dc5b8551ba0144be965873fb78f8db5acce (diff) |
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>
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/inc/frm_resource.hrc | 2 | ||||
-rw-r--r-- | forms/source/resource/xforms.src | 5 | ||||
-rw-r--r-- | forms/source/xforms/datatyperepository.cxx | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/forms/source/inc/frm_resource.hrc b/forms/source/inc/frm_resource.hrc index dd2fb11c15d7..d1e1b7414889 100644 --- a/forms/source/inc/frm_resource.hrc +++ b/forms/source/inc/frm_resource.hrc @@ -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: */ diff --git a/forms/source/resource/xforms.src b/forms/source/resource/xforms.src index b878f21c7ed8..2b4944340a19 100644 --- a/forms/source/resource/xforms.src +++ b/forms/source/resource/xforms.src @@ -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: */ diff --git a/forms/source/xforms/datatyperepository.cxx b/forms/source/xforms/datatyperepository.cxx index fe2c371c1edc..3bb4794344a9 100644 --- a/forms/source/xforms/datatyperepository.cxx +++ b/forms/source/xforms/datatyperepository.cxx @@ -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 ); } |