Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 6.x > Installation and deployment > Custom WebPart resources View modes: 
User avatar
Member
Member
Aon_Vlado - 7/29/2012 10:27:42 AM
   
Custom WebPart resources
I am developing a custom web part I want to submit to Kentico Marketplace. I think it would be appropriate to have all text strings in resources so the consumers could localize them. However I could not find a way how to export the resources with my web part. Could somebody advice how to add the resource strings to the export package?

Thanks,

Vlado

User avatar
Kentico Support
Kentico Support
kentico_janh - 7/29/2012 10:42:08 AM
   
RE:Custom WebPart resources
Hello,

You can add your resource strings in the Site Manager -> Development -> UI cultures section and export them with your web part:

Site Manager -> Sites -> Export objects -> Next -> Development -> (Web parts -> <your web part>) AND (UI cultures -> Resource strings -> <your resource strings>)

Best regards,
Jan Hermann

User avatar
Member
Member
Aon_Vlado - 7/29/2012 11:57:53 AM
   
RE:Custom WebPart resources
Awesome - it works.

Thanks.
Vlado

User avatar
Member
Member
Aon_Vlado - 7/29/2012 12:02:48 PM
   
RE:Custom WebPart resources
BTW: it should be in Site Manager -> Development -> Web parts -> <your web part> -> Export as well since this is the preferred way to export a web part, correct?

V

User avatar
Kentico Support
Kentico Support
kentico_janh - 7/30/2012 1:54:14 AM
   
RE:Custom WebPart resources
Hello,

Yes, but most of the web parts just generate a HTML code, so they don't have to contain any resource string, so it exports only selected web part.

Best regards,
Jan Hermann