When in a (localized) variations site, certain “list templates” do not show when trying to create a new list. The “list template” is only available in the master variation with the locale set to English.
Including list templates in your SharePoint (Visual Studio) projects can be straight forward. On a list do a “save as template”, download the ‘stp’ file and add it to your project. However they need to be localized to show in a localized (variations) site.
For information about localization see here : http://msdn.microsoft.com/en-us/goglobal/bb688174
To localize the stp files :
- Download the list template to your local computer.
- Change the extension of the file from ‘stp’ to ‘cab’.
- Open the cab file with your compression tool of choice (I use WinRar)
- Extract the manifest.xml to your hard drive.
- Open the manifest.xml with Notepad
- You will notice that there is a <language> tag is defined.
In my sample this is:
- Simply change the number between the language tags to the desired ‘locale’.
Dutch is number 1043
French is number 1036.
For a full list of the defined locale numbers look here:
- Save the manifest.xml
- Now we will recreate the cab file with CABARC. See details below.
- Open the command prompt and type the following command:
CABARC.EXE N “CarouselTemplateNL.cab” C:\Temp\Project1\CarouselTemplateNL\*.*
- This will result in a new cab file called: “CarouselTemplateNL.cab”
- Rename the file back to .stp
- Upload the file into your list templates gallery
Site Actions -> Site settings -> Galleries -> List templates -> Upload document
Create new stp file
“CABARC” is a program from Microsoft to create cab files. Lately it has been replaced by a new program called “makecab”.
CABARC did the job for me but you probably can achieve the same result with makecab
You can download CABARC by downloading the Windows XP Service Pack 2 Support Tools
There is no need to install this package. Just unzip the file (and it’s cab files) to your locale machine. One of the unzipped files is CABARC.
Tip for when you don’t know what locales are installed on your SharePoint server.
The quickest way is go to the SharePoint installation folder (aka ’14 hive’) and look in the /TEMPLATE/LAYOUTS folder.