Title: WPML Translate Shortcode
Author: Mirco Babini
Published: <strong>26 februari 2014</strong>
Last modified: 4 mars 2016

---

Sök tillägg

![](https://ps.w.org/wpml-translate-shortcode/assets/banner-772x250.png?rev=908895)

Det här tillägget **har inte testats med någon av de 3 senaste huvudversionerna 
av WordPress**. Det kanske inte längre underhålls och kan ha kompatibilitetsproblem
när det används tillsammans med nyare versioner av WordPress.

![](https://s.w.org/plugins/geopattern-icon/wpml-translate-shortcode.svg)

# WPML Translate Shortcode

 Av [Mirco Babini](https://profiles.wordpress.org/mirkolofio/)

[Ladda ner](https://downloads.wordpress.org/plugin/wpml-translate-shortcode.1.0.1.zip)

 * [Detaljer](https://sv.wordpress.org/plugins/wpml-translate-shortcode/#description)
 * [Recensioner](https://sv.wordpress.org/plugins/wpml-translate-shortcode/#reviews)
 *  [Installation](https://sv.wordpress.org/plugins/wpml-translate-shortcode/#installation)
 * [Utveckling](https://sv.wordpress.org/plugins/wpml-translate-shortcode/#developers)

 [Support](https://wordpress.org/support/plugin/wpml-translate-shortcode/)

## Beskrivning

Adds the wpml_translate shortcode to your shortcode suite. You can also use the 
wpml_text_if_language( $lang, $content ) in your php code.

#### Usage (via code)

echo wpml_text_if_language( ’en’, ’Text’ ); echo wpml_text_if_language( ’it’, ’Testo’);

#### Usage (via shortcode)

[wpml_translate lang=’en’]Text[/wpml_translate][wpml_translate lang=’it’]Testo[/
wpml_translate]

#### Alias

 * wpml_language is an alias for wpml_translate shortcode
 * code and language are alias for lang attribute

#### Contribute

If you wanna contribute, pull requests on [github.com](https://github.com/mirkolofio/wpml-translate-shortcode).

Developed by [Mirco Babini](http://www.mircobabini.com/), **WordPress Consultant,
Web Developer and Data Lover**.

## Installation

 1. Upload `wpml-translate-shortcode/` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ’Plugins’ menu in WordPress

## Recensioner

Detta tillägg har inga recensioner.

## Bidragsgivare och utvecklare

”WPML Translate Shortcode” är programvara med öppen källkod. Följande personer har
bidragit till detta tillägg.

Bidragande personer

 *   [ Mirco Babini ](https://profiles.wordpress.org/mirkolofio/)

[Översätt ”WPML Translate Shortcode” till ditt språk.](https://translate.wordpress.org/projects/wp-plugins/wpml-translate-shortcode)

### Intresserad av programutveckling?

[Läs programkoden](https://plugins.trac.wordpress.org/browser/wpml-translate-shortcode/),
kika på [SVN-filförvaret](https://plugins.svn.wordpress.org/wpml-translate-shortcode/)
eller prenumerera på [utvecklarloggen](https://plugins.trac.wordpress.org/log/wpml-translate-shortcode/)
via [RSS](https://plugins.trac.wordpress.org/log/wpml-translate-shortcode/?limit=100&mode=stop_on_copy&format=rss).

## Ändringslogg

#### 1.0.1

 * DEPRECATED. Use WPML Shortcodes. It’s way better.

#### 1.0.0

 * First release, it just works.

## Meta

 *  Version **1.0.1**
 *  Senast uppdaterat **11 år sedan**
 *  Aktiva installationer **100+**
 *  WordPress-version ** 2.8 eller senare **
 *  Testat upp till **3.7.41**
 *  Språk
 * [English (US)](https://wordpress.org/plugins/wpml-translate-shortcode/)
 * Etiketter
 * [language](https://sv.wordpress.org/plugins/tags/language/)[translate](https://sv.wordpress.org/plugins/tags/translate/)
   [translation](https://sv.wordpress.org/plugins/tags/translation/)[translator](https://sv.wordpress.org/plugins/tags/translator/)
   [wpml](https://sv.wordpress.org/plugins/tags/wpml/)
 *  [Avancerad vy](https://sv.wordpress.org/plugins/wpml-translate-shortcode/advanced/)

## Betyg

 5 av 5 stjärnor.

 *  [  6 5-stjärniga recensioner     ](https://wordpress.org/support/plugin/wpml-translate-shortcode/reviews/?filter=5)
 *  [  0 4-stjärniga recensioner     ](https://wordpress.org/support/plugin/wpml-translate-shortcode/reviews/?filter=4)
 *  [  0 3-stjärniga recensioner     ](https://wordpress.org/support/plugin/wpml-translate-shortcode/reviews/?filter=3)
 *  [  0 2-stjärniga recensioner     ](https://wordpress.org/support/plugin/wpml-translate-shortcode/reviews/?filter=2)
 *  [  0 1-stjärniga recensioner     ](https://wordpress.org/support/plugin/wpml-translate-shortcode/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wpml-translate-shortcode/reviews/#new-post)

[Visa alla recensioner](https://wordpress.org/support/plugin/wpml-translate-shortcode/reviews/)

## Bidragande personer

 *   [ Mirco Babini ](https://profiles.wordpress.org/mirkolofio/)

## Support

Har du något att säga? Behöver du hjälp?

 [Visa supportforum](https://wordpress.org/support/plugin/wpml-translate-shortcode/)

## Donera

Skulle du vilja bidra till utvecklingen av detta tillägg?

 [ Donera till det här tillägget ](http://mircobabini.com/donate/)