Additional Languages

Last updated on Tuesday, March 27th, 2012

These instructions are intended for those who are proficient in creating & installing custom plugins. The relevant tutorials for creating & installing plugins can be found on wordpress.org. If this is beyond you, we do offer a competitively-priced plugin creation & installation service starting at £50 per plugin. Please contact us for further details.

Non English languages

It has always been a pain to upgrade eShop if you aren’t using English, as we don’t include translations in the main plugin. But you can store your translation files elsewhere.

  1. Prepare your translation file(s) using a suitable gettext catalog editor such as PoEdit
    OR download your chosen translation file. If you are using PoEdit, please also see translating plural forms.
  2. Ensure that the final .mo file is named eshop-xx_XX and that xx_XX matches the WPLANG definition in wp-config.php.
  3. Create the following plugin and call it eshop-languages.
  4. Place the plugin in it’s own folder – also called eshop-languages.
  5. Add the .mo file to the eshop-languages folder.
  6. Upload the new plugin folder to /wp-content/plugins.
  7. Activate the new plugin.

The Plugin

<?php
/*
Plugin Name: eShop Languages plugin
Plugin URI: http://quirm.net
Description: eShop custom plugin for storing language files.
Version: 0.0.1
Author: Rich Pedley
Author URI: http://quirm.net/
Copyright 2010 R PEDLEY  (email : rich@quirm.net)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the     GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

add_filter('eshop_language_dir','eshop_language');

function eshop_language(){
	return 'eshop-languages';
}
?>

WordPress Support Services

Top