Ultimate Uploader v1.6
Localization  
  Home page
Contact support

Text strings replacement

You can change all text strings of the uploader, for example for localization. Here are 2 ways to change them:

  1. Strting from 1.6 version Universal Uploader allow to use external xml files with translated strings. It is faster and easiest way to translate user interface.
    UniversalUploader provides the feature to detect a user's language automatically and load an necessary file with the translation. This feature can be enabled/disabled using the LanguageAutoDetect parameter (false by deafult). If the parameter is set to true, Ultimate Uploader will try to detect the user's language using the following JavaScript statement: (navigator.language) ? navigator.language : navigator.userLanguage. When the language is detected, the 2-letter language code will replace {0} placeholder in the LanguageFile parameter. If the value of LanguageFile parameter does not contain {0} placeholder, the language detection will not be performed. If the value of the LanguageAutoDetect parameter is set to false and the value of the LanguageFile parameter contains {0}placeholder, the language detection will not be performed and the LanguageFile parameter will be ignored.
    The Ultimate Uploader distribution package contains a lot of translation files in the Extra/Languages/ subfolder.
    If you would like to set the translation manually, you should set the value of the LanguageAutoDetect parameter to false and remove the {0} placeholder from the LanguageFile parameter.

    Here is example of the xml file contents:
    <?xml version="1.0" encoding="utf-8"?>
    <Localization>
    <AddButtonText>Browse...</AddButtonText>
    <AddButtonHint>Add files</AddButtonHint>
    <RemoveButtonText>Remove</RemoveButtonText>
    <RemoveButtonHint>Remove files</RemoveButtonHint>
    <ClearButtonText>Clear</ClearButtonText>
    <ClearButtonHint>Clear list</ClearButtonHint> ... </Localization>

  2. Second way is to made rplacement through javascript by setting of certain Strings object properties as shown below:
    <object id="ultimateUploader" data="data:application/x-silverlight-2," ...
        ...
        <param name="onLoad" value="onSilverlightLoaded" />
        ...
    </object>
    
    <script type="text/javascript">
        function onSilverlightLoaded() {
            var strings = document.getElementById("ultimateUploader").Content.Strings;
            strings.AddButtonText = "My custom text";
            ...
        }
    </script>
    

If any properties are not set, default values will be assigned. Please check list of all available text string .