Additional Languages

Last updated on Friday, April 4th, 2014

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. Download the eShop .pot file and 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.3
Author: Rich Pedley 
Author URI: http://quirm.net/
Copyright 2013 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.
*/

add_filter('eshop_language_dir','eshop_language');

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

WordPress Support Services

Top