I need to make my custom solution for SharePoint 2010 multilingual, I have a Elements.xml file where all my ribbons controls are described but how can in reference to .resx from there and how can i be sure that correct language and culture will be choosed?
All Sharepoint element.xml modules are localized the same way.
First of all, you need to deploy your resx files into SharePoint Resources mapped folder.
After this, you can use following syntax to reference your localized resources:
$Resources: ResourceFileNameWithoutExtension, ResourceName
We use a resource helper that wraps
ASPX /ASCX files work differently, they reference resx files stored in the Web apps IIS folder (App_GlobalResources). These can be deployed to the SharePoint root (14-hive) in the config\resources folder. These get deployed to the IIS folder using
Elements.xml can just reference the resources directly i.e. :
So, 3 options: