Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 04:26:46 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Problems with languages  (Read 935 times)
[.::MDT::.]

Offline Offline

Posts: 17


« on: April 01, 2008, 04:18:09 PM »

Hi, I have some problems with the configuration of the language: I translated the file EN.php in italian, but the name still is EN.php, and everything worked ok.


Now I found a problem:
if you go here http://www.trentoasa.it/pages/news.php?lang=EN you can see from the link that the language is EN and works ok.
But if you go here http://www.trentoasa.it/pages/progetti.php?lang=IT you can see from the link that the language is IT. I copied, pasted and renaimed EN.php in IT.php so now this works too, but the newsletter on the right side is displayed in German?!?  huh

I would like to understand why sometimes the link loads a language (...?lang=EN for example, as just explained), sometimes it loads a different language and why sometimes loads no language (for example if you click on MEMBRI the link is http://www.trentoasa.it/pages/chi-siamo.php not http://www.trentoasa.it/pages/chi-siamo.php?lang=EN !).

Thank you very much.
Logged
doc
Guest
« Reply #1 on: April 01, 2008, 05:07:26 PM »

Hello,

the ?lang=XX is added, if the language of the page (check WB backend -> Pages -> YourPage -> Settings) differs from the default language set in the WB backend. If you set the language of all pages to the default language, the ?lang=XX will disappear.

If you have created your own language file, name it IT.php. Also change the string $language_code to IT in the IT.php file.  Maybe you should read the documentation for websitebaker, which explains how to install a custom backend language in the Beginners Section  smiley

Regards Christian
Logged
[.::MDT::.]

Offline Offline

Posts: 17


« Reply #2 on: April 01, 2008, 05:59:57 PM »

Thank you for your answer.
I replaced the original EN.php file, installed again IT.txt and set the default language in backend to ITALIAN; the $language_code is correct. All new pages comes now with the Italian language.

Anyway the problem is not solved, the newsletter on the right still appears in German: maybe the problem is the newsletter?
Really don't understand how can this happen...  huh
Logged
doc
Guest
« Reply #3 on: April 01, 2008, 06:24:22 PM »

Hello,

this happens when replacing language files instead of installing them via the WB backend. This can skrew up the entire system. Right way to update languages is to download them from the WB Addons repository and install them via the WB backend -> Add-ons -> Languages -> Install Languages. Apart from the pages languages check the user language and the default language. By the way, the EN.php file should never be overwritten, as this is used if something is missing.

Regards Christian
Logged
BerndJM

Offline Offline

Posts: 1764



« Reply #4 on: April 01, 2008, 07:17:13 PM »

You mean the "subscribe to newsletter" text, that apperas in german.
I think it is hardcodet there. Where you copiy& paste this part from?

Regards Bernd
Logged

In theory, there is no difference between theory and practice. But, in practice, there is.
[.::MDT::.]

Offline Offline

Posts: 17


« Reply #5 on: April 01, 2008, 10:50:49 PM »

You mean the "subscribe to newsletter" text, that apperas in german.
I think it is hardcodet there. Where you copiy& paste this part from?

Regards Bernd

I added a file called IT.php to the languages directory of the newsletter and now seems to work.

Thanks again.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!