Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Meta language not working?  (Read 3918 times)

0 Members and 1 Guest are viewing this topic.

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 380
    • Skolai Images - Nature, Travel and Adventure stock photos
Meta language not working?
« on: December 31, 2013, 06:33:44 am »

hey Folks

I see on my site this code

Code: [Select]
<html dir="ltr">
instead of the "en-US" or whatever. This is called dynamically, I'm guessing, and something in my site isn't calling it correctly. I'm using a hacked up version of water_drop theme. My site is www.skolaiimages.com and the CPG stuff is in the directory /stock/
Example

/stock/thumbnails-122-Polar-Bear-Photos.html

I guess I can change it in template, but I thought it is supposed to be called dynamically, no? The template.html file says
Code: [Select]
<html dir="{LANG_DIR}">
Thanks

Cheers

Carl
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Meta language not working?
« Reply #1 on: December 31, 2013, 01:14:02 pm »

What exactly isn't working as expected? Information regarding the dir attribute: http://www.w3schools.com/tags/att_global_dir.asp
Logged

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 380
    • Skolai Images - Nature, Travel and Adventure stock photos
Re: Meta language not working?
« Reply #2 on: December 31, 2013, 01:28:44 pm »

hey André

Oh . you're right .. I'm seeing an error on Bing's webmaster's tools that indicates somewhere the page should say something like

Code: [Select]
lang="en-US"
And that is not appearing in my cpg pages. I might be looking in the wrong place above, but that's the part that seems to be missing. I've no idea how critical it is, but Bing seems to mark it as moderately important.

Is that not right?

I can put that in manually, I suppose, but I thought cpg would probably call it dynamically depending on the user IP, no?
Logged

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 380
    • Skolai Images - Nature, Travel and Adventure stock photos
Re: Meta language not working?
« Reply #3 on: January 01, 2014, 06:33:36 am »

PS: if it helps better to explain what I'm talking about, this is the message I get from Bing's tools


The page is missing meta language information.

Recommended Action:
Use
Code: [Select]
<meta http-equiv="content-language" content="ll-cc"> tag in the
Code: [Select]
<head> section of your page, where "ll-cc" stands for the culture code of the language and country/region the content applies to. Alternatively use the lang="ll-cc" attribute on either the <html> or the <title> tag.

SEO Explanation:
The Meta Language information is used as a hint to help us understand the intended language and country/region the page content applies to. This can help if your site is not hosted in the country/region. Use the “content-language” meta tag to embed the culture code in the <head> section of your page. For example,
Code: [Select]
<meta http-equiv="content-language" content="en-gb"> indicates that the page is in English and intended for the the United Kingdom. Alternatively, you can use
Code: [Select]
<html lang="en-gb"> or
Code: [Select]
<title lang="en-gb">Thanks

Carl
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Meta language not working?
« Reply #4 on: January 02, 2014, 11:45:28 am »

If you need that meta tag for SEO reasons, you'd need to add it yourself. Either hard-coded in your theme or dynamically. The country code ("cc" part) is available via $lang_translation_info['lang_country_code'], the language part may be available in the database (have a look at the fields "flag" and "abbr", unfortunately it seems to be incomplete).
Logged

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 380
    • Skolai Images - Nature, Travel and Adventure stock photos
Re: Meta language not working?
« Reply #5 on: January 03, 2014, 04:29:10 am »

Hey André

Ahh, thanks. I just coded it manually then,so it'll show <lang="en-US">. I'm not too sure it's a huge deal at all, just seeing what Bing points out on my site.

Thanks again.

Cheers

Carl
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.