Survey Forums

HomeHomeSurvey Project ...Survey Project ...GeneralGeneralMultilanguageMultilanguage
Previous
 
Next
New Post
8/9/2011 10:25 PM
 

There is a test/sample survey that prompts the user to pick what language they would like to use to take the survey.

Can someone tell me how once the language is picked where does it go from there and how would I set up that option?

I am specifically interested in Spanish (Latin Am) and I noticed that is not an option in the country drop down? Where would I get this info from?   (using  version 1.2.2.) 

Thanks in advance for any help.

Herk

 
New Post
8/10/2011 12:44 AM
 

Hi Herk,

A quick and short instruction:

1. Create survey

2. Choose Settings - Multi languages - enable multi languages - enable your language (Spanish - should be there in the dropdownl list) - choose ML mode

More details: http://www.surveyproject.info/en/Wiki/tabid/163/topic/MultiLanguages/Default.aspx

3 Next go to forms builder - add question/ answers - switch language option (Edition Language) and create translation - save question or answer -switch language and create seconde translation - save etc.

4. You can also switch language (Edition language) for the Form Builder as a whole.

Note: The Survey admin tool makes use of (xml) language files too. The language setting of your webbrowser determine the xml languagefiles used to present webpage texts.

This effect can be changed in the web.config file: culture/ uiculture. If set to "auto" Survey™ will pick up the culture/ language of your browsersettings. To explicitely pick a specific culture/ language, replace "auto" with "en-US" or "nl-NL" for example.

The xml files can easily be found and changed. Check the instructions on the Forums on how to create new language files.

More details soon on wiki.

 

 
New Post
8/10/2011 7:19 PM
 

Thanks for your reply.

I've tried what you have suggested but I get the following error so I'm not sure why this is happening? f.y.i. Spanish was not in the dropdown list as an option so I looked at the xml available for version 1.2.3. and it was there so I copied them into the 1.2.2. xml/language folder. I'm guessing that this may be the cause of my error but I was at the end of my trial and error wits.

Any ideas on how to get this to work?

Thanks

Herk

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   Votations.NSurvey.Resources.ResourceManager.LoadResources(String language) +523
   Votations.NSurvey.Resources.ResourceManager.GetString(String name, String languageCode) +383
   Votations.NSurvey.WebControls.SurveyBox.BuildNextPageButtonRow() +442
   Votations.NSurvey.WebControls.SurveyBox.BuildSurveyBox(Boolean enableQuestionDefaults) +2422
   Votations.NSurvey.WebControls.SurveyBox.BuildSurvey() +764
   Votations.NSurvey.WebControls.SurveyBox.OnLanguageSubmit(Object sender, EventArgs e) +107
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

Server Error in '/Survey' Application.

Object reference not set to an instance of an object.

 


Version Information: Microsoft .NET Framework Version:2.0.50727.3623; ASP.NET Version:2.0.50727.3618

 
New Post
8/10/2011 8:30 PM
 

I have figured out what was wrong. There were two xml files missing for Spanish.  I made copies of the US files and renamed them to spanish (just to see if it fixed the issue). 

Does anyone have the real Spanish Language xml files that I could get? I'm under a time crunch and we need to get our survey out in english and spanish.

Any help would be appreciated.

Thanks,

Herk

 

 
Previous
 
Next
HomeHomeSurvey Project ...Survey Project ...GeneralGeneralMultilanguageMultilanguage