EE 1
EE 2
AJ Language

Developer

Andrew Jones

3rd Party (Commercial)
Current Version: 1.10
Release Date: Dec 23, 2011

License Agreement

Buy Now!

$20.00
Qty:

Compatibility

  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Better Workflow
  • Matrix

Requirements

Categories

Module

Tags

Language module with one click installs for languages, dynamically load variables based on currently selected language (supports text files), and output language switcher.

Video of the module in action

Set-up


Copy module files into your system/expressionengine/third party
folder, and the themes folder into your themes/third_party folder.

The module will attempt to create folders at root level, therefore you
have two options on how to proceed:

1) Give write access to root. This lets the module write files and
  create all the folders needed to work.
  Be very careful when doing this, you can also remove write
  permissions when you have created the languages you need

2) If you aren’t comfortable with the first option, you can also
  create the language folders yourself (safest option!). Create
  folders with 777 permissions based on the country code.
 
  e.g. The english folder will be named en.
 
  With the folders created and writeable, the module will create
  the files when setting up languages in the CMS
 

Installation

Visit the add-ons > modules page, and click install for AJ Language.

Create Languages


Enter the language and a short country code for your language. Your
naming here is important as both fields will affect different things:

Language -> This will set the language to this value. EE will then look for language folders based on this value.

      e.g. A value of ‘Spanish’ means you will need language folders of ‘spanish’
 
Country Code -> Above else this is the directory and the path that
users will navigate to. Using the example above, a country code of
‘es’ means to get the spanish language of your site, they will
navigate to http://www.yoursite.com/es/

Translations

Translations view shows all currently installed languages and any
translations that exist. You can modify any values by editing the text
box and clicking submit at the bottom.

Languages are stored in root/countrycode/language.php as an array. You
may add more languages by editing this file, and copying and pasting
each key=>value pair. (the ability to add through the CMS is in the
works!). 

Template Tags

1) Language switcher
 
  Outputs all currently installed (minus currently selected)
  languages. This now works as a tag pair and has three tags
  available, the url, language and country code.
 

{exp:aj_lang:lang_switcher}
  
     <a href="{aj_url}">{aj_language}, {aj_countrycode} </a> 
{/exp:aj_lang:lang_switcher}

 
 
2) Language variable

  Use this to display translations. It accepts one parameter which
  is “word”, enter the key of the variable you wish to show in here
 

{exp:aj_lang:get_text word="hello"} 

This entry was created December 12, 2011, 10:21 am.
This entry was last updated December 26, 2011, 11:09 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!