Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
470
Swedish support for Ignite UI heml editor
posted

Hi,

We are working on a Swedish localization project and are looking for translating the the htmleditor too. We are currently using 2013.2 version. In the localization fiolder we there is no Swedish specific files. Could you please share what are the supported languages provided by Infragistics in this version?

We are aware that we can add files with *-sv.js to get Swedish strings but we want to know if there's anyway that we can get this from Infragistics.

Thanks,

Vaishnavi

  • 640
    Offline posted

    Hello Vaishnavi,

    Thank you for posting in our community.

    The Ignite UI 2013.2 package ships jQuery controls in the following languages: English, Japanese, Russian, Bulgarian, German, French, Spanish. You can find localization files in <IgniteUI_Install_Folder>\js\modules\i18n, where points by default to C:\Program Files (x86)\Infragistics\2014.1\Ignite UI.

    However a custom language can also be set. This could be achieved by making a copy of any of the localized files for the grid component – for example:

    <IgniteUI_Install_Folder>\js\modules\i18n\infragistics.ui.htmlEditor-ru.js

    And renaming it to *-<language>.js. Afterwards the file could be modified in the preferred language (for example spanish):

    (function ($) {
    	$.ig = $.ig || {};
    	$.extend($.ig.HtmlEditor, {
    
    		locale: {
    			boldButtonTitle: 'Negrita',
    			italicButtonTitle: 'Cursiva',
    			underlineButtonTitle: 'Subrayado',
    			strikethroughButtonTitle: 'Tachado',
    			increaseFontSizeButtonTitle: 'Aumentar tamaño de fuente',
    			decreaseFontSizeButtonTitle: 'Disminuir tamaño de fuente',
    			alignTextLeftButtonTitle: 'Alinear texto a la izquierda',
    			alignTextRightButtonTitle: 'Alinear texto a la derecha',
    			alignTextCenterButtonTitle: 'Centrar',
    			justifyButtonTitle: 'Justificar',
    			bulletsButtonTitle: 'Viñetas',
    			numberingButtonTitle: 'Numeración',
    			decreaseIndentButtonTitle: 'Disminuir sangría',
    			increaseIndentButtonTitle: 'Aumentar sangría',
    			insertPictureButtonTitle: 'Insertar imagen',
    			fontColorButtonTitle: 'Color de fuente',
    			textHighlightButtonTitle: 'Color de resaltado de texto',
    			insertLinkButtonTitle: 'Insertar hipervínculo'
    		}
    	});
    })(jQuery);

    The localized file and the file you just created should be included into the project and referenced the following way:

    <script src="~/js/infragistics.core.js" type="text/javascript"></script>
    <script src="~/js/infragistics.lob.js" type="text/javascript"></script>
    <script src="~/js/modules/i18n/infragistics.ui.htmleditor-es.js" type="text/javascript"></script>
    <script src="~/js/infragistics.loader.js" type="text/javascript"></script>

    More about Customizing the Localization of Ignite UI Controls you can find in this topic in our official documentation, which takes you step-by-step toward localizing a Ignite UI for control.

    Please let me know if you need more information.

    Regards,
    Viktor Kombov
    Entry Level Software Developer
    Infragistics, inc.