Title: Style Genre
Author: janiko
Published: <strong>اکتوبر 1, 2021</strong>
Last modified: اکتوبر 16, 2026

---

Search plugins

![](https://ps.w.org/style-genre/assets/icon-256x256.jpeg?rev=3171909)

# Style Genre

 By [janiko](https://profiles.wordpress.org/janiko/)

[Download](https://downloads.wordpress.org/plugin/style-genre.2.0.0.zip)

 * [Details](https://bcc.wordpress.org/plugins/style-genre/#description)
 * [Reviews](https://bcc.wordpress.org/plugins/style-genre/#reviews)
 *  [Installation](https://bcc.wordpress.org/plugins/style-genre/#installation)
 * [Development](https://bcc.wordpress.org/plugins/style-genre/#developers)

 [Support](https://wordpress.org/support/plugin/style-genre/)

## Description

Style Genre lets you adjust translation wording, for example `autrice|auteure, Autrice
|Auteure`.

Version 2.0 applies substitutions when translated strings are returned by PHP gettext
functions or JavaScript `wp.i18n` functions. No translation files are rewritten 
and no recurring substitution job is necessary.

Existing substitution rules stored by Style Genre 1.x are preserved.

The replacements are literal, case-sensitive, and occur inside translated strings.
They are applied in the order listed. This plugin does not intercept arbitrary text,
third-party JavaScript localization systems, or already-rendered HTML.

## Screenshots

[[

## Installation

Install or update Style Genre, activate it and open Settings > Style Genre. Enter
comma-separated rules in the form `original|replacement` and save. No manual operation
is needed after translation updates.

## FAQ

### Are my previous rules preserved?

Yes, the option `style_genre_substitution_rules` and its format remain unchanged.

### Are translation files modified?

No. Version 2.0 only filters translations at runtime. Files modified by 1.x are 
not restored by this release.

### Does it affect JavaScript?

Yes, scripts using the WordPress `wp.i18n` package, provided their translations 
run after the filter is installed. Other JavaScript translation methods are not 
covered.

### Can I use commas or vertical bars in a rule?

The legacy rule format reserves commas as separators and the first vertical bar 
as the delimiter. These characters cannot currently be used freely in search strings.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Style Genre” is open source software. The following people have contributed to 
this plugin.

Contributors

 *   [ janiko ](https://profiles.wordpress.org/janiko/)

[Translate “Style Genre” into your language.](https://translate.wordpress.org/projects/wp-plugins/style-genre)

### Interested in development?

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

## Changelog

#### 2.0.0

 * Replace file rewriting with PHP and JavaScript translation filters.
 * Retain the existing rules and option name.
 * Remove manual file editing and translation-update hooks.
 * Move the administration screen under Settings.

#### 1.3.3

 * Fix minor issue.

## Meta

 *  Version **2.0.0**
 *  Last updated **3 weeks ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **7.1.4**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/style-genre/)
 * Tags
 * [gettext](https://bcc.wordpress.org/plugins/tags/gettext/)[i18n](https://bcc.wordpress.org/plugins/tags/i18n/)
   [localization](https://bcc.wordpress.org/plugins/tags/localization/)[translation](https://bcc.wordpress.org/plugins/tags/translation/)
 *  [Advanced View](https://bcc.wordpress.org/plugins/style-genre/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/style-genre/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/style-genre/reviews/)

## Contributors

 *   [ janiko ](https://profiles.wordpress.org/janiko/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/style-genre/)