Title: Simple Punctual Translation
Author: Amaury Balmer
Published: <strong>15 vasario, 2011</strong>
Last modified: 15 vasario, 2011

---

Ieškoti įskiepiuose

Šis įskiepis **nebuvo išbandytas su 3 vėliausiomis WordPress versijomis**. Jis tikriausiai
nėra prižiūrimas ir palaikomas, todėl gali neveikti su naujausiomis WordPress versijomis.

![](https://s.w.org/plugins/geopattern-icon/simple-punctual-translation.svg)

# Simple Punctual Translation

 Autorius [Amaury Balmer](https://profiles.wordpress.org/momo360modena/)

[Parsisiųsti](https://downloads.wordpress.org/plugin/simple-punctual-translation.1.0.2.zip)

 * [Informacija](https://lt.wordpress.org/plugins/simple-punctual-translation/#description)
 * [Atsiliepimai](https://lt.wordpress.org/plugins/simple-punctual-translation/#reviews)
 *  [Diegimas](https://lt.wordpress.org/plugins/simple-punctual-translation/#installation)
 * [Kūrimas](https://lt.wordpress.org/plugins/simple-punctual-translation/#developers)

 [Pagalba](https://wordpress.org/support/plugin/simple-punctual-translation/)

## Aprašymas

A plugin for WordPress that allow to translate any post type in another languages.

The user features can be summarized in the ability to switch between multiple languages
and on the single view of content. Thus, a page can be translated in X languages.

The architecture chosen for development is fully consistent with WordPress 3.0, 
we created a content type translation, and we created a taxonomy for the site languages.

We customized the WordPress admin console to provide the translation functionality,
a bit of AJAX to make the convenient interface. Finally, we created a widget that
displays the languages available for the currently loaded content.

A translator role is automatically created with the plugin, it allows a user to 
this role only to create and manage translations.

The plugin offers settings:

 * Automatic insertion of languages available to the end of the article
 * Language detection URL : via a „lang” parameter in the address or via a prefix
   beginning of the address:
    - http://www.herewithme.fr/contenu/?lang=de
    - or http://www.herewithme.fr/de/contenu
 * Enabling translations on their choice of post types
 * 2 modes for the translation mechanism, which I will explain in FAQ.

## Ekrano nuotraukos

[⌊Translations post type admin⌉⌊Translations post type admin⌉[

Translations post type admin

[⌊Menu translations⌉⌊Menu translations⌉[

Menu translations

[⌊Meta box for original content⌉⌊Meta box for original content⌉[

Meta box for original content

[⌊Meta boxes for translation. Allow to choose the original content.⌉⌊Meta boxes 
for translation. Allow to choose the original content.⌉[

Meta boxes for translation. Allow to choose the original content.

[⌊Widget settings⌉⌊Widget settings⌉[

Widget settings

[[

## Diegimas

**Required PHP5.**

The Simple Punctual Translation can be installed in 3 easy steps:

 1. Unzip „Simple Punctual Translations” archive and put all files into your „plugins”
    folder (/wp-content/plugins/) or to create a sub directory into the plugins folder(
    recommanded), like /wp-content/plugins/simple-punctual-translation/
 2. Activate the plugin
 3. Inside the WordPress admin, go to Options > Translations, adjust the parameters
    according to your needs, and save them.

## DUK

  What differences between the 2 translation engines ?

For this plugin, we did not impose an architecture defined for the translation engine,
so we proposed an automatic or manual mode.

  Automatic mode

The automatic mode is rather aimed at the general public, because no change is necessary
in the source code. The idea is that, when sailing on the German version of a page,
WordPress retrieves data from the original page, and our plugin is automatically
injected the contents of German 3 fields, title, content and extract .
 This means
that the German version in automatic mode will keep, if your theme display it, publication
date, comments, author, tags and categories of the original post. This mode is quite
sufficient to use the basic translation plugin on content types native, it is compatible
to 99% on the existing WordPress installations.

  Manual mode

This second mode is much more powerful than the first. The manual mode does not 
modify any data from the initial query of WordPress, so no modification is made 
on the theme, your content will not even be translated! To switch language, we were
inspired by functions of WordPress Mu allowing switch between blogs, either `switch_to_blog()`
and `restore_current_blog()`.
 And we have created 2 functions `switch_to_language()`
and `restore_original_language()`.

The first function `switch_to_language()` toggles the content in the translated 
version, while the second function `restore_original_language()` allow to restore
the original language of the content.

Example :

    ```
    <?php
    the_title(); // Title in English

    switch_to_language();
     the_title(); // Title in French
    restore_original_language();

    the_title(); // Title in English
    ?>
    ```

This pair of functions allows developers to be extremely precise about which fields
to translate. This mode in my opinion, should be widely preferred because it is 
clean, it does not interact with the original application of WordPress. Nevertheless,
there are some flaws such as:

 * The title page’s HTML is not translated
 * Plugins breadcrumb does not take into account the translation

These are mainly defects on the SEO aspect, and indeed on this first version of 
the plugin that we have worked the functional aspect. We rely on community feedback
to improve the plugin …

## Atsiliepimai

Įskiepis neturi atsiliepimų.

## Programuotojai ir komandos nariai

“Simple Punctual Translation” yra atviro kodo programa. Prie jos sukūrimo prisidėję
žmonės surašyti toliau.

Autoriai

 *   [ Amaury Balmer ](https://profiles.wordpress.org/momo360modena/)

[Išverskite “Simple Punctual Translation” į savo kalbą.](https://translate.wordpress.org/projects/wp-plugins/simple-punctual-translation)

### Domina programavimas?

[Peržiūrėkite kodą](https://plugins.trac.wordpress.org/browser/simple-punctual-translation/),
naršykite [SVN repozitorijoje](https://plugins.svn.wordpress.org/simple-punctual-translation/),
arba užsiprenumeruokite [kodo pakeitimų žurnalą](https://plugins.trac.wordpress.org/log/simple-punctual-translation/)
per [RSS](https://plugins.trac.wordpress.org/log/simple-punctual-translation/?limit=100&mode=stop_on_copy&format=rss).

## Pakeitimų istorija

 * Version 1.0.2 :
    - Add french translation
    - Add readme.txt
    - Add screenshots
    - Fix a bug with protection of post_parent with quick edit
 * Version 1.0.1 :
    - Fix some PHP typos
 * Version 1.0
    - Initial version

## Metainformacija

 *  Version **1.0.2**
 *  Atnaujinta **prieš 16 metų**
 *  Aktyvių instaliacijų **10+**
 *  WordPress versija ** 3.0 ar naujesnė **
 *  Ištestuota iki **3.1.4**
 *  Kalba
 * [English (US)](https://wordpress.org/plugins/simple-punctual-translation/)
 * Žymos
 * [administration](https://lt.wordpress.org/plugins/tags/administration/)[dropdown](https://lt.wordpress.org/plugins/tags/dropdown/)
   [languages](https://lt.wordpress.org/plugins/tags/languages/)[traduction](https://lt.wordpress.org/plugins/tags/traduction/)
   [translation](https://lt.wordpress.org/plugins/tags/translation/)
 *  [Daugiau](https://lt.wordpress.org/plugins/simple-punctual-translation/advanced/)

## Įvertinimai

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/simple-punctual-translation/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/simple-punctual-translation/reviews/)

## Autoriai

 *   [ Amaury Balmer ](https://profiles.wordpress.org/momo360modena/)

## Pagalba

Turite pastabų? Reikia pagalbos?

 [Peržiūrėti pagalbos forumą](https://wordpress.org/support/plugin/simple-punctual-translation/)

## Paremkite

Galbūt norite padėti plėtoti šį įskiepį?

 [ Paremti įskiepio kūrimą ](http://beapi.fr/donate/)