Title: Translations for PressBooks
Author: Antonio D.
Published: <strong>November 29, 2019</strong>
Last modified: November 29, 2019

---

Search plugins

![](https://ps.w.org/translations-for-pressbooks/assets/banner-772x250.png?rev=2203075)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/translations-for-pressbooks/assets/icon-256x256.png?rev=2203075)

# Translations for PressBooks

 By [Antonio D.](https://profiles.wordpress.org/colomet/)

[Download](https://downloads.wordpress.org/plugin/translations-for-pressbooks.1.2.7.zip)

 * [Details](https://wordpress.org/plugins/translations-for-pressbooks/#description)
 * [Reviews](https://wordpress.org/plugins/translations-for-pressbooks/#reviews)
 *  [Installation](https://wordpress.org/plugins/translations-for-pressbooks/#installation)
 * [Development](https://wordpress.org/plugins/translations-for-pressbooks/#developers)

 [Support](https://wordpress.org/support/plugin/translations-for-pressbooks/)

## Description

With use of this plugin you will be able to select the target language of the book(
besides the focus language) and to create relationships between the pages and the
available translated languages.

**Only works with [multisite](https://wordpress.org/support/article/create-a-network/)
installation!**
 **Only works with [PressBooks](https://github.com/pressbooks/pressbooks)
installation!**

### 1.2.7

 * **ADDITIONS**
    - Functions prefixing, data validation and code format enhancements
    - Changing to dynamic pathways for plugin directory

### 1.2.6

 * **ADDITIONS**
    - Functionality for control of displaying translations options in the front-
      end (book and post level). More info in user-manual.
    - Functionality which removes all the plugin data from DB on plugin uninstall(
      with option to keep the data if we want to). More info in user-manual.
 * **ENHANCEMENTS**
    - Updated user-manual to provide up to date setup information.
    - Some Internationalization
 * **BUGFIXES**
    - Post translations were not freshly set to enable after “Display translations”
      enabled while “Save previous post values” disabled
    - add_action hook changed
    - Network setting option for saving plugin data after plugin uninstall now set
      to ‘enabled’ by default
    - Updated querry now accepts both “book-information” and “book-info” post names
    - Check if ‘tfp_post_translation_enable’ related to current post exists (table-
      of-contents)
    - Increase number of sites in uninstall functionality to 500
 * **List of Files revised**
    - translations-for-pressbooks.php
    - translations-for-pressbooks-change-htmlang.php renamed to tfp-change-htmlang.
      php
    - translations-for-pressbooks-print-hreflang.php renamed to tfp-print-hreflang.
      php
    - added tfp-network-settings.php
    - added tfp-translation-enabler.php
    - added uninstall.php
    - user-manual.php

### 1.2.5

 * **ADDITIONS**
    - Functionality for printing hreflang tags of the available translations.
    - Functionality for modifying default WP html lang tag
 * **ENHANCEMENTS**
    - Remove condition which changes “cs” country code to “cz” and rename flags 
      back accordingly.
 * **List of Files revised**
    - added translations-for-pressbooks-change-htmlang.php
    - added translations-for-pressbooks-print-hreflang.php
    - added translations-for-pressbooks.php

### 1.2.4

 * **ADDITIONS**
    - New functions: getOriginalBookLanguage() , getCurrentBookFlag() and getCurrentBookLanguageCode().
 * **ENHANCEMENTS**
    - Modifies existing pbc_print_trans_links() function for needs of updated books4languages-
      book-child-theme-for-pressbooks **v1.3** theme.
    - Changes flag name from “cs.png” to cz.png
 * **List of Files revised**
    - translations-for-pressbooks.php

### 1.2.3

 * **REMOVED**
    - Auto update from github

### 1.2.2

 * **ENHANCEMENTS**
    - Hide not use languages
 * **List of Files revised**
    - translations-for-pressbooks.php

### 1.2.1

 * **ENHANCEMENTS**
    - Create folder assets and add folder flag-icon
 * **REMOVED**
    - Original mark, now it’s in extensions-for-pressbooks
 * **List of Files revised**
    - translations-for-pressbooks.php

### 1.2

 * **ADDITIONS**
    - Languages names alphabetical organization #8
 * **BUGFIXES**
    - Translations bug #8
    - Concentration of code #10
 * **List of Files revised**
    - translations-for-pressbooks.php
    - original-mark.php

### 1.1

 * Edition extension removed

### Disclaimers

The Translations for PressBooks is supplied “as is” and all use is at your own risk.

## Installation

#### This plugin requires:

 * WordPress Multisite installation
 * PressBooks installation

#### Installation instructions:

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

 1. Clone (or copy) this repository folder `stranslations-for-pressbooks
     to the /wp-
    content/plugins/
     directory, or install the plugin through the WordPress plugins
    screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. To configure the translations, choose book language and book target language in
    Book Info in your dashboard.

## FAQ

  I have a feature request, I’ve found a bug, a plugin is incompatible…

Please visit [the support forums](https://wordpress.org/support/plugin/xxxxxxxx)

  I am a developer; how can I help?

Any input is much appreciated, and everything will be considered.
 Please visit 
the [GitHub project page](https://github.com/my-language-skills/translations-for-pressbooks)
to submit issues or even pull requests.

  Is possible to extend with new languages?

No, the plugin only use main languages of the official countries, new languages 
require the creation of flags. If you would like to use with one specifically language,
send us the icon of the flag, the language name (in english) and te iso code (3)
of the language and we will update the plugin.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Translations for PressBooks” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ Antonio D. ](https://profiles.wordpress.org/colomet/)
 *   [ Daniil Zhitnitskii ](https://profiles.wordpress.org/danzhik/)
 *   [ davideC00 ](https://profiles.wordpress.org/dcazzorla/)
 *   [ lukastonhajzer ](https://profiles.wordpress.org/lukastonhajzer/)

[Translate “Translations for PressBooks” into your language.](https://translate.wordpress.org/projects/wp-plugins/translations-for-pressbooks)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/translations-for-pressbooks/),
check out the [SVN repository](https://plugins.svn.wordpress.org/translations-for-pressbooks/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/translations-for-pressbooks/)
by [RSS](https://plugins.trac.wordpress.org/log/translations-for-pressbooks/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **1.2.7**
 *  Last updated **7 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 3.0.1 or higher **
 *  Tested up to **5.3.21**
 *  PHP version ** 5.6 or higher **
 * Tags
 * [multisite](https://wordpress.org/plugins/tags/multisite/)[pressbooks](https://wordpress.org/plugins/tags/pressbooks/)
   [translations](https://wordpress.org/plugins/tags/translations/)[wordpress plugin](https://wordpress.org/plugins/tags/wordpress-plugin/)
 *  [Advanced View](https://wordpress.org/plugins/translations-for-pressbooks/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/translations-for-pressbooks/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/translations-for-pressbooks/reviews/)

## Contributors

 *   [ Antonio D. ](https://profiles.wordpress.org/colomet/)
 *   [ Daniil Zhitnitskii ](https://profiles.wordpress.org/danzhik/)
 *   [ davideC00 ](https://profiles.wordpress.org/dcazzorla/)
 *   [ lukastonhajzer ](https://profiles.wordpress.org/lukastonhajzer/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/translations-for-pressbooks/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://opencollective.com/mylanguageskills)