Title: WP Base Translate
Author: Gero Nikolov
Published: <strong>24. februára 2017</strong>
Last modified: 22. mája 2020

---

Vyhľadať plugin

![](https://ps.w.org/wp-base-translate/assets/banner-772x250.png?rev=1605426)

Tento plugin **nebol testovaný s najnovšími 3 hlavnými vydaniami WordPress**. Už
nemusí byť udržiavaný alebo podporovaný a môže mať problémy s kompatibilitou pri
použití s novšími verziami WordPress.

![](https://ps.w.org/wp-base-translate/assets/icon-256x256.png?rev=1605426)

# WP Base Translate

 Od [Gero Nikolov](https://profiles.wordpress.org/geronikolov/)

[Stiahnuť](https://downloads.wordpress.org/plugin/wp-base-translate.3.1.zip)

 * [Podrobnosti](https://sk.wordpress.org/plugins/wp-base-translate/#description)
 * [Recenzie](https://sk.wordpress.org/plugins/wp-base-translate/#reviews)
 *  [Inštalácia](https://sk.wordpress.org/plugins/wp-base-translate/#installation)
 * [Vývoj](https://sk.wordpress.org/plugins/wp-base-translate/#developers)

 [Podpora](https://wordpress.org/support/plugin/wp-base-translate/)

## Popis

Most of the translation plugins are built in very complicated and messy way…
 That’s
why with WP_BASE_TRANSLATE you can **create**, **edit** or **remove** new languages
in just a few clicks!

When the plugin is installed it performs the following things:

 * Registers the **Language Custom Post Type (CPT)**
 * Creates the **_WP_PREFIX_page_language_relations** table in your installation
   Database
 * Adds page language metabox to Post / Page (it works with all CPTs as well)
 * Adds avalilable languages metabox on which your page can be translated

How to add a new language?

The languages are registered in your database as Posts from **Language CPT**.
 So
to create a new language just go to _**Languages** > **Add new** > **Enter name (
as title of the post)** > **Choose the icon of the language (optional as featured
image)**_.

That’s it!

How to translate?

As we mentioned above you can translate **every** post from a CPT in your WordPress
installation.

To achieve that the plugin is registering a meta box called _**Available Languages**_,
which represents the list of all available languages (as active buttons) on which
you can translate the specific page.
 Before you can start translating, you have
to choose the current language of the page from the _**Page Language**_ dropdown
box. That will tell the plugin which is the parent language and connect the translated
versions with it. Once you do that, you just have to select the language on which
you want to see your page and start translate the content in it.

That’s all!

How it works on the front?

WP_BASE_TRANSLATE is meant to be easy, so if you currently have a language menu 
option connected on your website it’ll work with it.
 The only requirement for the
plugin to work properly is to add _**lang**_ parameter in your page URL.

**Example:** http://geronikolov.com/blog —> http://geronikolov.com/blog?lang=bg (
that will call the Blog page translated in Bulgarian)

What happens if I don’t have that language implementation in my site?

WP_BASE_TRANSLATE gives you a simple language dropdown menu, which can be placed
everywhere you want it!
 Do add to your Posts, Pages or Code, just use this shortcode–**[
language_menu]**

How to build the Language listing menu?

Since the plugin doesn’t provide a hardcoded menu, it provides a very flexible back-
end method for implementing it with your website.
 The core of the plugin gives 
you a function called **get_registered_languages()** which returns an **Array** 
of **Objects** which represent the registered **Language objects**.

Every language object has:

 * Language ID: That’s the ID of the Post in the database
 * Language Name: That’s the Title of the Post
 * Language Code: That’s the small version of your language title, for example if
   you have **EN** as title, the code will be **en**. In the navigation menu you
   should use it as value of the **lang** parameter.
 * Language Full Name: That’s the full name of the language. Example: EN = English;
   ES = Espanol;
 * Language Slug: That’s the post slug you’ve choosed from the WordPress Dashboard.
   By default it’s smaller version of the title equal to the **Language Code**
 * Language Link: That’s the permalink of the **Language Post Object**.
 * Language Author: That’s the ID of the Administrator who created the language 
   in your WordPress installation.
 * Language Icon: That’s the link to the language icon, which was selected from 
   the WP Dashboard. Usually it’s the flag of the **Parent Country of the language**.

The **wpbt_get_registered_languages()** function can be found in the **functions.
php** file positioned in the root folder of the plugin.

Functions list: functions.php
 wpbt_get_registered_languages() wpbt_get_translation_id()

How to contribute?

You just have to clone the repository and build!

If you want to extend the **WP_BASE_TRANSLATE Core** make sure to add small comment
block above each of your functions.

**The code block should look like:**

    ```
    /*
    *   Function name: example_function
    *   Function arguments: $post_id [ INT ]
    *   Function purpose: This function is just for an example.
    */
    function example_function( $post_id ) { return "John Snow is alive!"; }
    ```

[Join the contributions!](https://github.com/Gero0Nikolov/wp-base-translate)

## Obrázky

[⌊Language registering⌉⌊Language registering⌉[

Language registering

[⌊Page setup⌉⌊Page setup⌉[

Page setup

[⌊Translated Page setup⌉⌊Translated Page setup⌉[

Translated Page setup

## Inštalácia

This section describes how to install the plugin and get it working.

e.g.

 1. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or 
    install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‚Plugins‘ screen in WordPress
 3. Use the Settings->Plugin Name screen to configure the plugin
 4. (Make your instructions match the desired user flow for activating and installing
    your plugin. Include any steps that might be needed for explanatory purposes)

## Recenzie

Pre tento plugin nie sú žiadne recenzie.

## Prispievatelia a vývojári

“WP Base Translate” je softvér s otvoreným zdrojovým kódom. Do tohto pluginu prispeli
nasledujúci ľudia.

Prispievatelia

 *   [ Gero Nikolov ](https://profiles.wordpress.org/geronikolov/)

[Preložiť „WP Base Translate“ do vašho jazyka.](https://translate.wordpress.org/projects/wp-plugins/wp-base-translate)

### Máte záujem o vývoj?

[ Prehľadávajte zdrojový kód](https://plugins.trac.wordpress.org/browser/wp-base-translate/),
preskúmajte [SVN repozitár](https://plugins.svn.wordpress.org/wp-base-translate/),
alebo sa prihláste na odber [vývojárskeho logu](https://plugins.trac.wordpress.org/log/wp-base-translate/)
cez [RSS](https://plugins.trac.wordpress.org/log/wp-base-translate/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Verzia **3.1**
 *  Posledná aktualizácia **Pred 6 rokov**
 *  Aktívne inštalácie **10+**
 *  Verzia WordPress ** 3.1 alebo novšia **
 *  Testované do verzie **5.4.19**
 *  Jazyk
 * [English (US)](https://wordpress.org/plugins/wp-base-translate/)
 * Značky
 * [modern](https://sk.wordpress.org/plugins/tags/modern/)[simple](https://sk.wordpress.org/plugins/tags/simple/)
   [translate](https://sk.wordpress.org/plugins/tags/translate/)[translating](https://sk.wordpress.org/plugins/tags/translating/)
   [translation](https://sk.wordpress.org/plugins/tags/translation/)
 *  [Rozšírené zobrazenie](https://sk.wordpress.org/plugins/wp-base-translate/advanced/)

## Hodnotenia

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/wp-base-translate/reviews/)

## Prispievatelia

 *   [ Gero Nikolov ](https://profiles.wordpress.org/geronikolov/)

## Podpora

Máte čo povedať? Potrebujete pomoc?

 [Zobraziť fórum podpory](https://wordpress.org/support/plugin/wp-base-translate/)

## Podporiť

Chceli by ste podporiť pokrok tohto pluginu?

 [ Prispieť na plugin ](http://geronikolov.com)