This is a migrated thread and some comments may be shown as answers.

Custom Resources

1 Answer 36 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Aisha Khurshid
Top achievements
Rank 1
Aisha Khurshid asked on 03 Oct 2011, 08:05 PM
Hello,

Our application is using a custom resource provider that fetches it's strings from a database.  Is there a way to either:

a) Have telerik ignore the custom provide and use it's own resource file
b) get a list of the resource keys and values so they can be duplicated in our database

A sample of what is being displayed is attached.  The "???" is the default string returned when the resource key is not found in the database.

Thank you.

1 Answer, 1 is accepted

Sort by
0
Aisha Khurshid
Top achievements
Rank 1
answered on 03 Oct 2011, 09:09 PM
Found it. 

By copying the resource strings found in the Resx files in the sticky post "RadEditor for ASP.NET AJAX Localizations " and adding a resource type the same name I was able to get the strings to show.  Note: Stop and restart the web server to get the resoruces to be un-cached. 

An example is below.

delete from stringresources where ResourceType = 'RadEditor.Tools'
delete from stringresources where ResourceType = 'RadEditor.Main'
delete from stringresources where ResourceType = 'RadEditor.Modules'
delete from stringresources where ResourceType = 'RadProgressArea'
delete from stringresources where ResourceType = 'RadSpell.Dialog'
delete from stringresources where ResourceType = 'RadSpell.Dialogs'
delete from stringresources where ResourceType = 'RadUpload'
go

insert into stringresources values ('RadEditor.Tools', 'en', 'AboutDialog', 'About RadEditor')
insert into stringresources values ('RadEditor.Tools', 'en', 'AbsolutePosition', 'Set Absolute Position')
insert into stringresources values ('RadEditor.Tools', 'en', 'AjaxSpellCheck', 'AJAX Spellchecker')
insert into stringresources values ('RadEditor.Tools', 'en', 'ApplyClass', 'Apply CSS Class')
insert into stringresources values ('RadEditor.Tools', 'en', 'BackColor', 'Background Colour')
.
.
.
Tags
Editor
Asked by
Aisha Khurshid
Top achievements
Rank 1
Answers by
Aisha Khurshid
Top achievements
Rank 1
Share this question
or