|
146 | 146 | _cached_Comments = {}; |
147 | 147 | _cached_Comments_Count = 0; |
148 | 148 | } else { |
149 | | - result = logError("No code is available available to render, skipping."); |
| 149 | + result = logError(_configuration.noCodeAvailableToRenderErrorText); |
150 | 150 | } |
151 | 151 | } else { |
152 | 152 | result = !_configuration.safeMode; |
153 | 153 | } |
154 | 154 | } else { |
155 | | - result = logError("Language '" + syntaxLanguage + "' is not supported."); |
| 155 | + result = logError(_configuration.languageNotSupportedErrorText.replace("{{language}}", syntaxLanguage)); |
156 | 156 | } |
157 | 157 | } else { |
158 | | - result = logError("The attribute '" + _attribute_Name_Language + "' has not been set correctly."); |
| 158 | + result = logError(_configuration.attributeNotSetErrorText.replace("{{attribute_name}}", _attribute_Name_Language)); |
159 | 159 | } |
160 | 160 | } |
161 | 161 | return {rendered:result, tabContents:tabContents, tabTitle:tabTitle, tabBindingOptions:tabBindingOptions, syntaxLanguage:syntaxLanguage}; |
|
775 | 775 | result = result(); |
776 | 776 | } |
777 | 777 | } catch (e2) { |
778 | | - parsed = logError("Errors in object: " + e1.message + ", " + e2.message); |
| 778 | + parsed = logError(_configuration.objectErrorText.replace("{{error_1}}", e1.message).replace("{{error_2}}", e2.message)); |
779 | 779 | result = null; |
780 | 780 | } |
781 | 781 | } |
|
955 | 955 | function buildDefaultConfigurationStrings() { |
956 | 956 | _configuration.buttonsOpenerText = getDefaultString(_configuration.buttonsOpenerText, "<"); |
957 | 957 | _configuration.buttonsCloserText = getDefaultString(_configuration.buttonsCloserText, ">"); |
| 958 | + _configuration.objectErrorText = getDefaultString(_configuration.objectErrorText, "Errors in object: {{error_1}}, {{error_2}}"); |
| 959 | + _configuration.attributeNotSetErrorText = getDefaultString(_configuration.attributeNotSetErrorText, "The attribute '{{attribute_name}}' has not been set correctly."); |
| 960 | + _configuration.languageNotSupportedErrorText = getDefaultString(_configuration.languageNotSupportedErrorText, "Language '{{language}}' is not supported."); |
| 961 | + _configuration.noCodeAvailableToRenderErrorText = getDefaultString(_configuration.noCodeAvailableToRenderErrorText, "No code is available available to render."); |
958 | 962 | } |
959 | 963 | function buildDefaultConfigurationCustomTriggers() { |
960 | 964 | _configuration.onBeforeRender = getDefaultFunction(_configuration.onBeforeRender, null); |
|
0 commit comments