Revindex Storefront

How to create your own language pack

You can also create entire install-able language pack for a translation that we don't currently support. The easiest way is to use the free DotNetNuke Translator application. It allows you create and edit resource keys quickly from your desktop. 

Alternatively, you can also create the language pack manually by following the steps below. Suppose you have a language (e.g. ru-RU for Russian) that we don't have the language pack for it.

  1. Download any of the localized language package extract it to a temp folder. Preferably, it should match the version of the software you're installing. In this example, we'll use the French language pack and extract it to the following file path:

  2. Open the .dnn text file content and rename all occurences of the original language code to your desired language code. For example, open C:\Temp\\ with notepad and do a Find/Replace all from "fr-FR" to "ru-RU". Save it. 

  3. Use the following Powershell command to bulk replace all filenames from French to Russian. Change the command to match your source and destination language codes. Rename the file path, source and destination language codes if it's different from the example.
    get-childitem  -recurse -include *.resx,*.dnn -path "C:\\Temp\\" | foreach-object {rename-item -path $_.FullName -newname ($_.Name.Replace("fr-FR", "ru-RU"))}
  4. Open each resource file (.resx) using notepad or preferably using Visual Studio to translate the text to your desired language. You may decide to omit translating older display template resource files if you know you're not using them. If you don't want to translate the text from a text editor now, you may do so later on from the persona bar Settings > Site Settings page after installing your new language pack.
  5. Zip up the folder so that it looks like the original package. Install it on your DNN and you will now have a new translated language for the Storefront.


Powered by Revindex Wiki