You are here: Installation > Language Translation

Language Translation

This section contains information about Language Resource Files, Email Template and Time Picker Localization.

Language Resource Files

Copy the default language .resx files located in the App_GlobalResources folder and rename them to include the language code in their name as follows:

{Name}.{language code}.resx

Example: For Turkish, "AdminStrings.resx" should be copied to "AdminStrings.tr.resx"

Once those files are copied, their contents must be modified such that each "<value>" is translated from its English default to its language specific text.

Example: The English word "Home" can be translated to the Turkish "Ev" by changing the "<value>Home</value>" line to "<value>Ev</value>".

For a list of the .NET language codes please visit:
http://msdn.microsoft.com/en-us/library/ms533052.aspx

Email Template Localization

Adding a language

  1. Go to "Admin Control Panel > International > Preferences" and enable the setting "Enable Multiple Cultures".
  2. Go to "Admin Control Panel > International > Languages" and enable any languages needed.

Once these settings are in place, a button for each language will be visible next to each email template on the "Admin Control Panel > CMS > Email Templates" page.

Adding Regional Language Options

  1. Go to "Admin Control Panel > International > Preferences" and enable the setting "Show Regional Language Options".
  2. Go to "Admin Control Panel > CMS > Email Templates"; at the bottom of the list of email templates, select a Regional Language from the "Add" dropdown.

Once the Regional Language has been added, a button for each Regional Language will be visible next to each email template. The "Remove" dropdown will allow for removal of any Regional Language.

Note: For more information on email templates see: Email Templates

Time Picker Localization

Many cultures are already supported in the standard date picker, as listed in “\Scripts\jquery-ui-i18n.min.js”. If your culture is not already included, support can be added by editing the file “\Scripts\jquery-ui-i18n.rainworx.js”.

First, copy one of the existing functions. Then, edit the copied function for the new language you wish to add. The following code is an example of the localization for Canadian English (“en-CA”):

jQuery(function (a) {
a.datepicker.regional["en-CA"] =
{
closeText: "Done",
prevText: "Prev",
nextText: "Next",
currentText: "Today",
monthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], 
monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], 
dayNamesMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
weekHeader: "Wk",
dateFormat: "dd/mm/yy",
firstDay: 0,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ""
};
a.datepicker.setDefaults(a.datepicker.regional["en-CA"])
});

More information on localization can be found at:
http://docs.jquery.com/UI/​Datepicker/Localization