Submit button language in multilingual sites
Permalink
Hi,
i'm building this multilingual site (FI, SE, UK) and i want to translate submit button to these
languages as well.
I have this code on my site.php:
define('DIR_REL', '');
$sitelang = substr($_SERVER['REQUEST_URI'],strlen(DIR_REL)+1, 2);
switch($sitelang) {
case 'en': {
define('LOCALE', 'en_US');
break;
}
case 'se': {
define('LOCALE', 'sv_SE');
break;
}
default: {
define('LOCALE', 'fi_FI');
break;
}
}
And this is structure in my languages folder:
+ fi_FI
- LC-MESSAGES
--- messages.mo
+ sv_SE
- LC-MESSAGES
--- messages.mo
And this is my URL for swedish contact page:
-->http://testi4.aada.fi/se/kontakt/...
But somehow this is not working. What i done wrong?
Sincerely,
Mika
i'm building this multilingual site (FI, SE, UK) and i want to translate submit button to these
languages as well.
I have this code on my site.php:
define('DIR_REL', '');
$sitelang = substr($_SERVER['REQUEST_URI'],strlen(DIR_REL)+1, 2);
switch($sitelang) {
case 'en': {
define('LOCALE', 'en_US');
break;
}
case 'se': {
define('LOCALE', 'sv_SE');
break;
}
default: {
define('LOCALE', 'fi_FI');
break;
}
}
And this is structure in my languages folder:
+ fi_FI
- LC-MESSAGES
--- messages.mo
+ sv_SE
- LC-MESSAGES
--- messages.mo
And this is my URL for swedish contact page:
-->http://testi4.aada.fi/se/kontakt/...
But somehow this is not working. What i done wrong?
Sincerely,
Mika