Home Forum Blog Market Events Resources
Showing results for 
Search instead for 
Do you mean 
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.

Multilingual

by adamcastle ‎10-26-2012 08:27 AM - edited ‎02-26-2014 07:21 AM

Current Version V1.8 Below is a link to a video that will help you create Multilingual forms. http://www.k2.com/multilingualsmartforms_video V1.8 Translates tab header text. V1.7.1 Translates both normal and data labels. V1.7 If you used the resource editor to generate a language file from a webpage, any words ending with three dots ‘…’ would cause a smartform the break. This has now been resolved. V1.5 Changes made to work with k2 smartforms 1.0.2. (use V1.4 for k2 smartforms

Comments
by almasov
‎11-22-2012 02:29 AM - edited ‎02-26-2014 07:21 AM
Compatibility with IE8

I would like to thank you Adam for this great control because working in multi language environment is really painful for UI designers. It works great in Chrome and FF but not in IE8 :( My corporate world is very conservative and current approved and widely deployed browser is IE8. My investigation shown that this control uses textContent and innerHTML js functions. textContent is not supported in IE8 :( 

I'm wondering if it would be possible to use jQuery similar function .text() which is supported by all browsers (with a little bit different results, but it is not the case for this control I believe). I tried to make appropriate changes in published sources but no luck with it.

Adam, could you have a look on this? I also would welcome an opportunity to get  v1.2 sources ;)

by Zakhar
‎11-19-2013 12:07 AM - edited ‎02-26-2014 07:21 AM
Source Code

Hi All,

Could anybody tell me, where can I take source codes for the last version of this control. I need it to make some changes for adapting this control to use database instead of .resx file in file share. Thanks in advance.

by ShaneR
on ‎07-09-2014 11:17 PM

Loving the control! Have a queston I hope someone can help me with though. 

We have noticed a behaviour when an element with a translated placeholder is clicked it reverts back to English - when the element loses focus.

Has anyone seen this behaviour? And if so is there a workaround for it?

 

Thanks!

by MajdHadi
on ‎05-25-2015 01:04 PM

Hi

it is great control, but i faced a problem, the tile of the view editable list in the form not translated,

i have tried many scenarios but still the sme,

 

any advaices 

 

 

Thanks !

by CDR923
on ‎12-02-2015 04:09 PM

Hi,

I created a test Smartform containing the Multilingual Control. I am getting Javascript errors that is preventing the form from loading (translations)

- _debug is not defined
- Syntax error -> see second screenshot

Error1.PNG


Error2.PNG


Any feedback would be greatly appreciated.

Regards,
Chris

by sergii
on ‎01-15-2016 06:38 AM

Hi CDR923,

 

It might be because the default language is not set or doesn't exist in the resource file

 

Try also to check/uncheck the "run of load" checkbox

by Daniele
on ‎08-20-2016 12:43 PM

In the zip folder, I'm not able to find the .exe file to install the control. Any help?

by karl3s
‎09-19-2016 06:24 AM - edited ‎09-22-2016 01:45 PM

@Daniele, if you download v1.9 there, you have a zip with the .exe .dll and .txt

 

For v1.91 is it not available the build solution?

 

Carles

by TiffBlue
on ‎09-22-2016 01:39 PM

I have the same issue as Daniele.  Can you walk me through how to install V1.91 please?

 

by Benny
‎10-11-2016 04:02 AM - edited ‎10-11-2016 04:07 AM

This control makes forms unusable on android device after mobile app was updated by k2. Can anybody help?

 

Sincerely,

 

Benny

by Umar
on ‎12-13-2016 12:36 AM
Great component. Query: Can we have this work with a language selector control instead of depending upon user's browser language?
by TiffBlue
on ‎12-13-2016 06:58 AM

Umar, yes you can.  Just add in the dropdown control, and set the language you want to display.  When the control is changed, have it transfer the value the the Set Language control.

by amendoeira
on ‎03-31-2017 07:04 AM

Greetings,

 

We are using the Multilingual control in a Smartforms application, and we have a strange issue. When we add a Content Control on the form that points to a Sharepoint Library URL, the setlanguage rule stops working for that form.

 

There are no Javascript errors present, we just don't see the translation occuring. When we remove the Content Control, or change the URL of the content control to, for instance, http://www.google.com, the translation starts working again.

 

Any ideas on how to solve this issue?

by Asad_Naeem
on ‎08-07-2017 02:27 AM

Hi,

I appreciate the efforts done for this control. It is really helping and one of the positive point for this control is that we do not need to deply the conrol or file if it required to change some text or add a new language with the exisiting key strings. Just edit the file and save it. That's it. k2 application will automatically will update the latest file at its end.

 

I am facing an issue regarding this control.

 

- I have set a language in browser which is not the part of xml then refreshing the application makes it hanged. it can be noticed in the second image. I have fixed this code with the default language like english. So it is mandatory that there should be atleast english (en)

 

 

private string GetLanguageFromTable(DataTable dt, string culture)
{
         string result = string.Empty;

         for (int i = 0; i < dt.Columns.Count; i++)
         {
               if (dt.Columns[i].ColumnName == culture)
                     {
                           for (int z = 0; z < dt.Rows.Count; z++)
                                    {
                                         result += string.Format("[\"{0}\",\"{1}\"],", dt.Rows[z][0].ToString().ToLower().Trim(), dt.Rows[z][i].ToString().Trim());
                                    }
                                    break;
                     }
         }         

       

        // This is newly added code 

        if (string.IsNullOrEmpty(result))
        {
               result = GetLanguageFromTable(dt, "en");
               this.DefaultCulture = "en";
         }

    return result;
}

 

 1 - Browser language Settings.PNG

 

2 - Application.PNG

by nguyenleely
on ‎09-20-2017 03:31 PM

That utility Adam references in his video is located here

 

"C:\K2 Installation Package 4.7\Other K2 Services Brokers Controls\Multi_language Control\Multilingual_1.91\K2Field.K2Forms.Controls.SetLanguage\SetLanguages\bin\Debug\K2 smartform Languages.exe"