Compiling and localizing SharePoint Learning Kit v1.5

This weak I’ve started to work with SharePoint Learning Kit (SLK). As it says on the page:

SharePoint Learning Kit is a SCORM 2004 certified e-learning delivery and tracking application built as a Windows SharePoint Services 3.0 solution.Памятники

Since we using “SharePoint 2010 Foundation” for our project, I was lucky, that 1.5 version which is compatible with SharePoint 2010, was released this month. I’ve managed to install and try SLK but there still were some problems:

After trying for whole day, couple of hours ago I’ve finally managed to apply updated Lithuanian language pack. I would like to share a complete list of steps I did to accomplish that.

and delete it.

  • Open “Visual Studio Command Prompt” and navigate to C:SOURCESlk.
  • Type msbuild in the command prompt. You should see progress of compilation. After it completes, you might be informed that there were some warnings. If they are related to missing XML comments, you can ignore them.
  • Copy files ExtractStrings.cmd and localize.exe from C:\SOURCE\SlkToolsLocalizationGuide to C:\SOURCE\SlkSolutionBuild.
  • Run ExtractStrings.cmd. 4 new XML files should be generated in C:SOURCESlkSolutionBuild
  • Open each of those files and in the one of the first lines, similar to this:
    <assembly culture="" name="Microsoft.LearningComponents.resources" version="1.3.1.0" />
    

    change culture=”” to culture=”CULTURE-CODE”, where CULTURE-CODE is 2 chars culture code (for Lithuania it was lt). You also need to change version=”1.3.1.0″ to version=”1.1.0.0″, otherwise you see English strings instead of localized ones after deployment.

  • Copy those 4 XML files to the C:\SOURCE\SlkToolsLocalizationGuide\TranslatedXMLs\CULTURE-ID, where CULTURE-ID is decimal ID of your culture you defined in those XML files. You can find decimal ID for your locale at this MSDN page.If there are already XML files in the directory you are coping to, you can backup those old files somewhere. They are localized files from the old version but you still can save some time while copying some translated text from those old files to the new ones.
  • Navigate to folder C:\SOURCE\SlkToolsLocalizationGuide\Solution. In files AddSolution.cmd, DeleteSolution.cmd, DeploySolution.cmd, EnumSolutions.cmd and RetractSolution.cmd replace text:
    c:\program files\common files\microsoft shared\web server extensions12
    

    with:

    Also, in files DeploySolution.cmd and RetractSolution.cmd replace:

    with

    So, that’s it. After doing all the steps above, I’ve managed to localize SharePoint Learning Kit v1.5 running on SharePoint 2010 to Lithuanian language. I guess this is neither the only nor the best way to get that result, but as I’ve said in the beginning of the article, the documentation of SLK is outdated so this is the best result I’ve came up with my small amount of SharePoint knowledge.

  • Social

    10 comments on the post

    1. Hi Tomas,

      This is great as the next bit I’m going to work on is the localization and I don’t currently know anything about it.

      The documentation is defintely lacking, but it’s finding the time to do it!

      The copy task to mosstransfer shouldn’t really be there. In my setup I build on a machine without SharePoint and then copy over to a SharePoint machine to install.

    2. Hi Tomas,

      Thanks for sharing your work.
      I will try these steps and see if it works out.

      Good news, that Richard wants to repair localization.
      It is indeed in bad shape as it is.

      Kind regards,
      Dolf Gagestein

    3. Hi Tomas,

      Thank’s for your documentation, I still have a problem on the 5th step. I Delete the line:
      But when i launch msbuild command i’ve got an error:
      Build FAILED.

      “c:SourceSlkslk.proj” (default target) (1) ->
      “c:SourceSlkdllslkdll.csproj” (Build target) (2) ->
      (AfterBuild target) ->
      c:SourceSlkdllslkdll.csproj(288,7): error MSB3021: Unable to copy file “b
      in/debug/Microsoft.SharePointLearningKit.pdb” to “mosstransferslkMicrosoft
      .SharePointLearningKit.pdb”. The network path was not found.r

      Do you have a solution? I try a lot of things but nothing solve it.

    4. Hi Tomas Dabasinskas!
      I machine is installed Sharepoint foundation 2010 and Visual Studio. I am finding an document to build SLK in my machine, can you help me?

    5. Pingback: Creating a workflow for SharePoint Foundation 2010 to automatically copy new documents to organized archive | Tomas Dabasinskas

    6. Hi, Tomas!
      Thank you very much. Due to your post I translated SLK to russian, and all works fine =))

    7. Hi Thomas,
      Thanks fro the guidelines !
      I am trying to translate SLK 1.5 on sharepoint 2010.
      I tried steps as above, the addsolution step (step 14) succeeded but the deploy solution step failed with the message “Cannot add the specified assembly to the global assembly cache: Microsoft.LearningComponents.resources.dll”
      I did not extracted the xml files through visual studio.
      I just extracted them from the source code zip file downloaded from the codeplex site.
      Can you help on that ?
      Thanks in Advance
      Michael

    Leave a Reply

    Your email address will not be published. Required fields are marked *