Giter VIP home page Giter VIP logo

flang_detection_gtlds's Introduction

FLang detection gTLDs

Adds frontend language detection through .htaccess file.

Credits to @klaftertief for .htaccess manipulation.

1. About

This extension adds language detection to .htaccess file.

2 Installation

  1. Upload the flang_detection_gtlds folder found in this archive to your Symphony extensions folder.
  2. Enable it by selecting FLang detection gTLDs under System -> Extensions, choose Enable/Install from the with-selected menu, then click Apply.
  3. Everything is done behind the scenes.

3 Usage

An URL must follow this convention:

www.site.com/$LANGUAGE_CODE$/...

$LANGUAGE_CODE$ = $LANGUAGE$-$REGION$
$LANGUAGE$ = mandatory
$REGION$ = optional

Valid URLs:

www.site.com/en/
www.site.com/en-us/

flang_detection_gtlds's People

Contributors

nitriques avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flang_detection_gtlds's Issues

Can't install extension

When activating the extension I get taken to a blank white page, my PHP error log shows the following:

PHP Fatal error: main() [function.require]: Failed opening required '/Users/Nathan/httpdocs/_/extensions/frontend_localisation/lib/class.FLang.php' (include_path='.:/Applications/MAMP/bin/php/php5.3.6/lib/php') in /Users/Nathan/httpdocs/_/extensions/flang_detection_gtlds/extension.driver.php on line 7

EDIT: Was being dumb, hadn't installed everything in advance. Symphony could really do with proper error reporting for this stuff.

Event Redirection

Hi @vlad-ghita

It's been a long time since we discuss!

I have been working with Symphony 2.3 for a couple of weeks now and trying to have the same feature I use to have in 2.2.

Do you remember the Language Redirect Extension that would offer a redirection to the 'translated' url automaticaly ?

I was looking to implement this, but did not know where to start. Should it be a separate extension ? Should it be included in this one ?

Thanks for you input! And BTW, REALLY nice work for the multilingual issue. I work and live in Montreal, Qc, Canada, and I am dealing with translation 96% of the time! I really appreciate it and contributing to this would really mean a lot to me.

SEO issue

Dear,

The extension works perfect on the latest Symphony 2.5.2. But in the Bing webmaster tools and some other seo tools i get for the www.mysite.com/fr/

Status: Redirection limit reached.
HTTP/1.1 301 Moved Permanently
Connection: Keep-Alive
Date: Sun, 21 Dec 2014 20:21:22 GMT
Keep-Alive: timeout=5, max=100
Content-Length: 194

Problem installing extension: Class 'FLang' not found

I'm not sure if I'm doing something wrong but when I follow the instructions for installing this extension I get this error:

PHP Fatal error:  Class 'FLang' not found in …/extensions/flang_detection_gtlds/extension.driver.php on line 16

I've tried installing on a fresh 2.3 installation and I have the same problem.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.