how can i get all resourcestrings from localization?

Muhammad Kaleem asked on April 1, 2019 16:46

i want to ask about how can i get all resource strings (key + values) from localization? is there any api of kentico for this purpose? please suggest any help will be highly appreciated

Correct Answer

Brenden Kehren answered on April 1, 2019 17:21

Depends on what you're looking to do. There are a few things you can do to display them on a page.

  • Create a report in the Reporting module with a custom query selecting all the values out of the CMS_Resource table.
  • Create a custom query in a content only placeholder page type and then use a custom query repeater web part to display the values from the CMS_Resource table on the page.

And also access them via the API

  • Create a an API call using CMS.Localization.ResourceStringInfoProvider.GetResourceStrings() to get the values and then output them to a file.
1 votesVote for this answer Unmark Correct answer

Recent Answers


Muhammad Kaleem answered on April 1, 2019 17:27

thanks brenden do you have any example of this please?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on April 1, 2019 17:28

I don't but once you get into either of those applications, they are pretty easy to work with.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.