Dear Infragistics,
Our customers are Dutch. When you hold the cursor on the "Expand Row" icon it'll read in the tooltip: "Expand Row".
Can I translate this to Dutch and show it in Dutch to the enduser in the tooltip?
Hello Danny,
When using the loader and specifying the locale, it will want some additional -nl.js files. You could copy and paste some of the other locale files and rename them.
The alternative I found was to follow step 4 instead of step 5, even when using the loader. Just make sure to reference the custom locale file before the loader.
Your paths will be slightly different than mine, but here is an example.
<head> <title></title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js" type="text/javascript"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/jquery-ui.js" type="text/javascript"></script>
<!-- Reference to custom localization file --> <script src="../IgniteUI_20131_WithSamplesAndHelp_NoInstaller/js/modules/i18n/infragistics.ui.grid-nl.js" type="text/javascript"></script> <!-- Use the loader --> <script src="../IgniteUI_20131_WithSamplesAndHelp_NoInstaller/js/infragistics.loader.js" type="text/javascript"></script> </head>
... (inside the body script)
$.ig.loader({ scriptPath: '../IgniteUI_20131_WithSamplesAndHelp_NoInstaller/js/', cssPath: '../IgniteUI_20131_WithSamplesAndHelp_NoInstaller/css/', resources: 'igHierarchicalGrid.*', });
Elizabeth AlbertLocalization Engineer
The strings in the infragistics.ui.grid-en.js file are combined into the infragistics.ui.grid.framework.js file during our build process. That is why you found them there. However, they should also be in the infragistics.ui.grid-??.js files, where ?? is any 2 letter culture code that we support. The -en.js file is not included in the installation package because it is combined into the grid script. I have attached it for your convenience.
Please follow these steps.
1. Localize any strings you would like in the infragistics.ui.grid-en.js file.
2. Rename the file to infragistics.ui.grid-nl.js.
3. Put the file in the /js/modules/i18n folder. You should see this folder in your installation package.
4. If you are not using the loader, in your .cshtml file, include a script reference *above* the other two. If this file is not referenced (defining the locale) before the other .js files are loaded, then it will default to English.<script src="@Url.Content("[path to where you put the file in step 3]")" type="text/javascript"></script>
5. When using the loader, you can specify the locale. For more information, please see the Using Infragistics Loader topic.
Please let me know if you have any other questions.
Hello Elizabeth,
Thank you very much for replying.
I have followed the topic you linked.
I found the strings that I want to change in the infragistics.ui.grid.framework.js file (so not in the infragistics.ui.grid.js). I changed the expandTooltip and the collapseTooltip and made a infragistics.ui.grid.framework-nl.js file.
But... Now I want to reference my new nl js file, but in my _Layout.cshtml I only reference infragistics.js and infragistics.loader.js, like so:
<script src="@Url.Content("~/Scripts/IG/infragistics.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/IG/infragistics.loader.js")" type="text/javascript"></script>
So, where do I set the reference to my new -nl.js file?
Thank you very much in advance for answering.
Kind regards,
Danny
p.s.: Sorry for the late reply, I was on vacation.
Hello DannyvdK,
Our Ignite UI controls are localized to 6 languages other than English. To localize to another language, you can follow the steps listed in this topic. It provides a walkthrough, in which you can subsitute "-es" with "-nl" for Dutch. Instead of localizing the paging, you'd be translating "expandTooltip" and "collapseTooltip" in the infragistics.ui.grid-nl.js file. You can translate as many or as few strings as you'd like.
Please let me know if you have any questions about this approach.