CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Error messages translation

Print topic Send  topic

Author Message
gproulx


Posts: 68
Posted: 06/15/2006, 1:18 PM

Hi,

in which file are the error messages ?
I want to translate something cause i have 2 pages, 1 in french and 1 in english, and i want to translate the error messages (ex.: The field 'lfaksjdkj' are required) in my french page. How did i do that?

Thanks
View profile  Send private message
peterr


Posts: 5971
Posted: 06/15/2006, 8:44 PM

There is only one file for each language, with all the text strings and error messages. All related information is in "Internationalization and Localization of Web Applications" section of the documentation.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
gproulx


Posts: 68
Posted: 06/16/2006, 8:35 AM

I look at these information in the documentation and didn't find what i need.

Question: For example, if i have a page with 2 record forms. 1 in french and 1 in english.
If i complete the form in french with errors, i want the error messages to be displayed in french.
Same for the english form, i want the error messages to be displayed in english.
Can i do that?
The language default of my project are french. I added english.
I try selecting the english form and in the format properties, i put lang = en. I publish and get the error message always in french.:(

Help please!;-)
View profile  Send private message
peterr


Posts: 5971
Posted: 06/16/2006, 9:04 AM

Try "locale=en", in case you have "locale" in project settings. Also make sure that the option "Use Internationalization Features" option is set in project settings.
And create one page or form that is fully internationalized, so that you can verify if only error messages are not translated, or the whole form is not translated. This way you will know if you are using the Internationalization improperly, or error messages really don't work.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
gproulx


Posts: 68
Posted: 06/16/2006, 10:39 AM

HI,

in my project settings, the internalionalization features option are clicked but in gray ( i can desactivate it )

Did i put "locale=en" in the 'lang' format properties of the form?
Cause i try it and it still don't work.
Try this link, maybe you can see something wrong in the code????
http://www.sixieme.com/mitchi/mitchiCC/Renseignement_anglais.asp?
Thanks
View profile  Send private message
peterr


Posts: 5971
Posted: 06/16/2006, 10:44 AM

It works for me.
http://www.sixieme.com/mitchi/mitchiCC/Renseignement_an...=Renseignements shows:
Le champ Name est obligatoire.
Le champ Email est obligatoire.

http://www.sixieme.com/mitchi/mitchiCC/Renseignement_an...=Renseignements shows:
The value in field Name is required.
The value in field Email is required.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
gproulx


Posts: 68
Posted: 06/16/2006, 11:36 AM

This is something that i don't understand.
Well you have locale=en or locale=fr in the adress bar, so i suppose that why that works. Did you add it by hand?

I'm really sorry, i begin with translation, language...etc. so i'm a bit confused...
View profile  Send private message
peterr


Posts: 5971
Posted: 06/16/2006, 11:45 AM

Yes, I added it by hand because that's the only way to select some language. You would also need to provide similar method for your users to select a language, or for the application to select a language. And once a language is selected then all error messages stay in the same language - I don't need to use such value in the URL again, only one time.
Keep in mind that "Internationalization" means 1 page displayed in multiple languages, not 2 different pages. So I just recommend reading that part of the manual and creating one multi-langague form to learn and analyze how this works.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
peterr


Posts: 5971
Posted: 06/16/2006, 11:55 AM

I also see:
http://www.sixieme.com/mitchi/mitchiCC/Renseignement_anglais.asp?locale=fr
*Nom :

http://www.sixieme.com/mitchi/mitchiCC/Renseignement_anglais.asp?locale=en
*Name :

So you already have one field internationalized. It all seems to work well on your page, you just need to use the 2 above URLs instead of using 2 different pages. Or you can provide a "Language" listbox that adds such value to the URL, so that your users can select one language and then see all your pages and errors in that language.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
gproulx


Posts: 68
Posted: 06/16/2006, 12:17 PM

Hi,

yes for the field name, i make a little test.
Thanks a lot, i was able to make it work. It's because my 2 asp pages are called from another application cause they are in a iframe.
So i add the code ?locale=en in the call of the page and all works just fine !

Thanks!:-)
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.