Netix
Posts: 18
|
| Posted: 08/07/2007, 10:48 PM |
|
How can I enter parameter to translation in HTML code?
I think how can I put parameter to:
{res:translation_string}
_________________
http://www.netix.sk |
 |
 |
Wkempees
|
| Posted: 08/08/2007, 6:47 AM |
|
PhP:
In the event code
global $CCSLocales;
$Yourtranslation = $CCSLocales->GetText('translation_string'));
|
|
|
 |
Netix
Posts: 18
|
| Posted: 08/08/2007, 12:08 PM |
|
But without php code. Only in the html code. How I can put parameter to the translation?
_________________
http://www.netix.sk |
 |
 |
wkempees
|
| Posted: 08/08/2007, 2:40 PM |
|
??
Explain.
Walter
"Netix" <Netix@forum.codecharge> schreef in bericht
news:246ba14a78d78b@news.codecharge.com...
> But without php code. Only in html code?
> _________________
> http://www.netix.sk
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
Netix
Posts: 18
|
| Posted: 08/08/2007, 3:33 PM |
|
In my CMS Tangram I am using jquery and for form validation:
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
Problem is in html code:
messages: {
username: {
required: "Please enter a username",
minLength: "Your username must consist of at least 2 characters"
},
How this piece of html code rewrite to CCS? But I do not want do it in php code. It is very bored for me.
_________________
http://www.netix.sk |
 |
 |
wkempees
|
| Posted: 08/09/2007, 2:38 AM |
|
Then you are on your own.
The translations are in .txt files on your project directory.
Have a look at Project Explorer->Resources in the File View.
I think you will want to build your own translation class using these files.
Walter
"Netix" <Netix@forum.codecharge> schreef in bericht
news:246ba449d024c2@news.codecharge.com...
> In my pages I am using jquery and for form validation:
>
> http://bassistance.de/jquery-plugins/jquery-plugin-validation/
>
> Problem is in html code:
>
> messages: {
> username: {
> required: "Please enter a username",
> minLength: "Your username must consist of at least 2 characters"
> },
>
> How this piece of html code rewrite to CCS? But I do not want do it in php
> code. It is very bored for me.
>
>
>
> _________________
> http://www.netix.sk
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |