=== WPML Shortcodes === Contributors: mirkolofio , SED Web Enhancement Donate link: http://mircobabini.com/donate/ Tags: wpml, language, translate, translation, translator, shortcode, lang, theme, plugin Requires at least: 2.8 Tested up to: 3.9.1 Stable tag: 1.2.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Easily add strings to translate to your (child) theme or everywhere in your WordPress website. == Description == Adds the wpml__ and wpml_e functions to your theme and the wpml__ shortcode to your WordPress website. Make your WordPress full WPML ready
<?php wpml__( $text, $context ); ?>
<?php wpml_e( $text, $context ); ?>
Similarly to the behaviour of the __, _e functions, you must provide a string to make translateable and a context. That’s it; just provide translations from the WPML > String Translations admin panel. Check how to use the shotcode below. = Usage (via code) =
<h1><?php echo wpml__( ‘Title’, ‘wpmlshortcodes’ ); ?></h1>
<h2><?php wpml_e( ‘Subtitle’, ‘wpmlshortcodes’ ); ?></h2>
= Usage (via shortcode) =
<h1>[wpml__ context=wpmlshortcodes]Title[/wpml__]</h1>
<h2>[wpml__ context=wpmlshortcodes]Subtitle[/wpml__]</h2>
= Contribute = If you wanna contribute, pull requests on [github.com](https://github.com/mircobabini/wpml-shortcodes). Author: [Mirco Babini](http://www.mircobabini.com/), **Web Developer and Mobile App Developer; Wordpress Consultant**. == Installation == Simply search for ‘WPML Shortcodes’ in the Plugins Admin page, then install and activate it. That's it! == Frequently asked questions == == Screenshots == == Changelog == = 1.2.0 = * Ready for the marketplace