How To Create Resource Files for Each Target Language

The resource files used by the SharePoint 2010 Solution Storefront site contain static text displayed on the site pages. You must create localized versions of each of the following resource files for each target language for which a site variation is required:

  • CatalogResources.resx

  • ChannelConfigurationResources.resx

  • CommerceFeature.resx

  • CommerceFeatureCommunity.resx

  • Common.resx

  • defaultSite.resx

  • MarketingResources.resx

  • OrderResources.resx

  • ProfileResources.resx

  • SearchResources.resx

  • StoreLocatorResources.resx

The path to the resource files is as follows: C:\<path to your e-commerce site>\App_GlobalResources. For example, in a default Commerce Server 2009 R2 installation the path is C:\inetpub\wwwroot\wss\VirtualDirectories\<sitename or port>\App_GlobalResources.

Important   The original file must remain unaltered in the site folder. Make a copy of each resource file for each required target language. For example, if you want your site to support French, you need to have two copies of each resource file, including the original file (such as CatalogResources.resx and CatalogResources.fr-FR.resx).

To create localized resource files for each site variation

  1. Open each resource file by using Microsoft Visual Studio 2008 and use the Save As command to save a version of the file for localization. Use the same file name and the standard locale abbreviation of the target language. For example, open the file CatalogResources.resx and make your changes. Save the file according to target language you want to support, as indicated in the following table:

    Language

    Resource file name

    English (US)

    CatalogResources.en-US.resx

    French (France)

    CatalogResources.fr-fr.resx

    German (Germany)

    CatalogResources.de-de.resx

    Japanese (Japan)

    CatalogResources.ja-jp.resx

    Note

    See the SharePoint 2010 documentation for information about supported languages.

  2. Translate the content of each resource file as required.

  3. Make sure that both the default zone (internal facing) and the Internet zone (external facing) of your e-commerce site have a copy of the translated resource files. This means that both zones must have the same files in their respective App_GlobalResources folder.

    Note

    In a Web farm deployment, you deploy those same files to both zones on all servers hosting the site in the Web farm.

See Also

Other Resources

How To Set Up Your Site Variations