forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: andyleery on June 15, 2007, 07:04:37 pm

Title: Activated German but Google lists English Titles
Post by: andyleery on June 15, 2007, 07:04:37 pm
Hi have got a problem with the language setup. In the config I disabled German for the main language and deactivated alle the others. But in google the title is listed in English, how can I fix that?
Title: Re: Activated German but Google lists English Titles
Post by: Tranz on June 16, 2007, 05:30:06 am
Could you please post a link to the gallery and the link to the search results showing the listing?
Title: Re: Activated German but Google lists English Titles
Post by: Joachim Müller on June 25, 2007, 06:58:45 pm
If you want your gallery to be in German only, delete all files from the lang folder but german.php
Title: Re: Activated German but Google lists English Titles
Post by: andyleery on June 25, 2007, 07:21:30 pm
Really delete every language? But I adjusted "no english when german text is somewhere missing" in the config, is that not ok?
Title: Re: Activated German but Google lists English Titles
Post by: Tranz on June 25, 2007, 08:55:42 pm
Do you have links to the other languages? This happened to me when I was using the flag feature to point to different languages. I switched to the drop down method and now things are fine.
Title: Re: Activated German but Google lists English Titles
Post by: andyleery on June 25, 2007, 09:12:16 pm
Because of my problem, I switched all other languages off.
For example look here: http://209.85.135.104/search?q=cache:rSi9ByCtzCIJ:www.bollybilder.de/+bollywood+bilder&hl=de&ct=clnk&cd=32&gl=de&lr=lang_de

Menue is in English, why?
Title: Re: Activated German but Google lists English Titles
Post by: Tranz on June 25, 2007, 10:01:49 pm
When I view the live version, it shows english to me, too. Make sure that you're setting the language in the admin panel, and not just on the gallery, which only changes it for you.
Title: Re: Activated German but Google lists English Titles
Post by: andyleery on June 25, 2007, 10:34:08 pm
Didnt even know there is ja setting for gallery language. I adjusted it in the admin panel but how can you see English in the live version? Do you mean the link www.bollybilder.de? Is it really English? If yes, can you send me please a screen?

So should I just delete all the languages?! If I do that, sure there will be text displayed (German)?
Title: Re: Activated German but Google lists English Titles
Post by: Tranz on June 25, 2007, 10:58:01 pm
Even after you changed the setting, I still see English. I deleted the domain cookies to make sure. It might also be because I have an English browser... CPG might be auto-detecting.
Title: Re: Activated German but Google lists English Titles
Post by: andyleery on June 25, 2007, 11:26:03 pm
Yes this was also my thought. I deleted English files, can you please once again?! ^^
Title: Re: Activated German but Google lists English Titles
Post by: Tranz on June 25, 2007, 11:40:08 pm
Now I get a blank white page. :(
Title: Re: Activated German but Google lists English Titles
Post by: andyleery on June 25, 2007, 11:44:21 pm
OK thats not good ^^ Correct again?
Title: Re: Activated German but Google lists English Titles
Post by: Tranz on June 26, 2007, 01:09:37 am
It's back up, and still in English.
Title: Re: Activated German but Google lists English Titles
Post by: Joachim Müller on June 26, 2007, 06:28:09 pm
Yes, the google bot might "speak" English, so he'll "see" your menu items in English. You better read up how languages work in Coppermine: http://documentation.coppermine-gallery.net/languages.htm#how and http://coppermine-gallery.net/demo/cpg14x/custom_language.php
Don't look at pages from the google cache - look at live-pages instead (http://www.google.com/search?q=site%3Abollybilder.de, see attached screenshot, taken from a PC with German OS and German browser preferences).

I'm serious: delete all language files from the lang folder except german.php. In your case, this seems to be the ideal solution.

Title: Re: Activated German but Google lists English Titles
Post by: andyleery on June 26, 2007, 07:03:05 pm
But we already have tested it yesterday. I deleted all files except german and then the user saw blank page!
Title: Re: Activated German but Google lists English Titles
Post by: Stramm on June 26, 2007, 07:59:57 pm
Custom language settings get saved in a cookie. If you now delete certain languages and a user has set one of these as a custom language (with the lang selector), cpg still tries (cause of the cookie) to load it and fails.
Clear your cookies or change the cookie name in config (all your users get assigned a new cookie without custom lang settings)
Title: Re: Activated German but Google lists English Titles
Post by: andyleery on June 26, 2007, 08:16:02 pm
My project is new and we just talk about the searchengines!
Title: Re: Activated German but Google lists English Titles
Post by: Joachim Müller on June 27, 2007, 09:02:35 am
Stramm's suggestion applies anyway: you'll have to delete your local cookie if you have issues with blank pages. Search engine spiders are not impacted by cookies - they don't take them into account. However, all changes you make will of course not have an immediate impact on the database of search engines, but will change only after the search engine spiders have re-visited your site.

Your reply
My project is new and we just talk about the searchengines!
just is irrelevant and confrontational. Just two postings above you complained about the user seeing a blank page, so it was you who started discussing user issues instead of search engine issues. If you don't want our advice, just stop posting here.
Title: Re: Activated German but Google lists English Titles
Post by: andyleery on June 27, 2007, 01:47:31 pm
Stay cool GauGaum, with "user" was ment a user here in the forum, which helped me testing! So we just talk about the search engines! Please read corretly and dont shout always  ;D

I will try your option, if there will be problems, I just will restore the files, thx for your help guys!
Title: Re: Activated German but Google lists English Titles
Post by: andyleery on June 28, 2007, 04:49:52 pm
One last question. No that I deleted the English file, I get blank emails from the System because of the missing English text. How can I change the language for the email notification?
Title: Re: Activated German but Google lists English Titles
Post by: Tranz on June 28, 2007, 06:51:05 pm
I deleted my cookies for the domain and it shows up as blank. Did you happen to edit either your english.php or german.php file(s)?
Title: Re: Activated German but Google lists English Titles
Post by: andyleery on June 28, 2007, 06:56:16 pm
I asked about the email which is blank, not the website. It seems that "not german users" have blank pages, cant do anything about it. I just renamed the coockiename, maybe it works no?
Title: Re: Activated German but Google lists English Titles
Post by: Sami on June 29, 2007, 08:50:23 am
1- set your default language to german
config=>Language & Charset settings=>Language=> german

2-set the Fallback to English to No
config=>Language & Charset settings=>Fallback to English if translated phrase not found?=> No

3- set Display language list to no
config=>Language & Charset settings=>Display language list=> No

4- set Display language flags to no
config=>Language & Charset settings=>Display language flags=> No

5- Delete all language file except german.php
6- rename your cookie name or tell everyone to clear their browsers cookie
Title: Re: Activated German but Google lists English Titles
Post by: andyleery on June 29, 2007, 12:32:07 pm
THX but all that things I already did.
Title: Re: Activated German but Google lists English Titles
Post by: Joachim Müller on June 29, 2007, 03:08:24 pm
With what result for the (human) client? I changed my browser's default language to english and tried accessing your site, which worked fine. What's your actual issue? As suggested, it will take some time untill the search engine spiders react and your pages will be crwaled in German only.
Title: Re: Activated German but Google lists English Titles
Post by: andyleery on June 29, 2007, 03:16:07 pm
Yes I have to wait for the spider. The only thing now is, that some people here tell me that they get a blank page?!
Title: Re: Activated German but Google lists English Titles
Post by: Sami on June 29, 2007, 03:53:32 pm
Count me in , I got blank page too !
with german language it's ok but when I clear my cookie it will display blank page !!!
I think there was a problem with his files (file corruption)
Title: Re: Activated German but Google lists English Titles
Post by: Joachim Müller on June 29, 2007, 04:04:13 pm
Can't replicate either. http://www.bollybilder.de/?lang=english works fine - I get the page in german. Even with a PC with English Windows and user preferences set to English I get to see the page just fine.

@Sami: does this still happen for you, or do you now see the page OK even with your cookies deleted?
Title: Re: Activated German but Google lists English Titles
Post by: andyleery on June 29, 2007, 05:44:09 pm
I also changed the coockiename, it must go!
Title: Re: Activated German but Google lists English Titles
Post by: Sami on June 30, 2007, 12:29:53 am
No I still get blank page !!!
tried it with:
- IE with ?lang=english and without
- FF with ?lang=english and without
both are blank !
Title: Re: Activated German but Google lists English Titles
Post by: Joachim Müller on June 30, 2007, 12:06:30 pm
OK, let's do it the brute-force way then: andy, edit include/init.inc.php, find
Code: [Select]
// We load the chosen language file
require "lang/{$CONFIG['lang']}.php";
and replace with
Code: [Select]
// We load the German language file no matter what
require "lang/german.php";
This should force German no matter what.
Title: Re: Activated German but Google lists English Titles
Post by: andyleery on June 30, 2007, 12:15:49 pm
Ok I have edited it, is it now ok or still blank?
Title: Re: Activated German but Google lists English Titles
Post by: Stramm on June 30, 2007, 01:02:35 pm
[Little bit OT]
There's also the possibility to disable the auto detection... that's the somehow softer method and it would be possible to keep all lang files on the server (users can still use the lang selector -> if admin enables that option)
http://forum.coppermine-gallery.net/index.php?topic=30686.msg142274#msg142274
[/Little bit OT]
Title: Re: Activated German but Google lists English Titles
Post by: andyleery on June 30, 2007, 03:06:36 pm
Thx for that option but I dont need any other language, only German.
Title: Re: Activated German but Google lists English Titles
Post by: Sami on July 01, 2007, 06:53:55 am
Ok now it's working fine :)
Title: Re: Activated German but Google lists English Titles
Post by: Tranz on July 01, 2007, 11:14:46 am
Same here. :)
Title: Re: Activated German but Google lists English Titles
Post by: andyleery on July 01, 2007, 01:11:31 pm
Great, finally it works^^, now I just wait for the engines. THX to you all for helping me.