Translate Words

説明

Translate words used in plugins and themes with the text of your choice.

This plugin allows you to translate the original plugin/ theme text AND the translations that have been created. For example if you’re using the German translation of a theme, you can then change the translated text to something that fits your website better.

You can also change the core WordPress text to something else. For example you might wants to change ‘More Posts’ to ‘More Articles’ or ‘More Stories’.

Your translated text can replace strings with text containing HTML. This works well when you want to add links, or make part of the text bold/ italic.

It will NOT translate dynamic strings that use %s or %d, so “%s has been added to your cart.” is not translatable.

Inspired by these plugins

I made Translated Words because I wanted a very simple plugin that worked the way I wanted, to do this I forked WP Override Translations. I later found out that WP Override Translations is a fork of Gettext override translations.

Usage

  1. Install and activate the plugin
  2. Go to Settings > Translate Words
  3. Enter text found in your theme/ plugins in the ‘Current’ box.
  4. Enter the text you want to use in the ‘New’ box.
  5. Hit save.

Note: This does not work with post content, it is only for text passsed through the gettext functions.

スクリーンショット

  • An example translating an English word to a different phrase.

評価

2024年2月20日
Other plugins (loco-wpml) where not able to translate several strings from my blog. This plugin does exact what I'm asking, simply The Best!
2024年1月29日 1 reply
loco and 3 other plugins was not able to translate several strings - plugins , maybe of the structure-ERROR of template, this plugin save my time, i spent many many hours to fix the translation errors, wth this plugin in 1 minute done !!! THANK YOU !!!!!
2023年9月11日
I needed to change some words in two plugins to match my client's business model and this is the perfect, lightweight solution. COuldn't have been easier.
2023年3月5日
Very simple. No more fiddling with .po files. The author is accommodating. Support is fast. Everything you could want.
2022年11月23日
Sometimes you may wish to get several words translated with some ideas in your language with some lightweight plugins instead of an implementation of the one that may cause your resource of the server. I was hoping this plugin worked as its name. However, it just is NOT compatible with WooCommerce or Mailchimp for WooCommerce, which I need to modify. Since Translate Words isn't the right one for these two, I have to leave my comment in case there's someone else installing it for the same purpose as me. Note: I haven't tested it with other plugins as I am in focus on the plugins mentioned being translated.
2022年11月13日
Working out of the box (with WordPress 6.1) and easy tu use... Thanks
15件のレビューをすべて表示

貢献者と開発者

Translate Words はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Translate Words” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.2.6 – 6th February 2024

  • Improve the previous fix. It didn’t pick up on translations where words/ phrases contained punctuation.

1.2.5 – 30th January 2024

  • Tweak replacements to only replace whole words and not the middle of words.

1.2.4 – 4th March 2023

  • Fix PHP 8.2 error.

1.2.3 – 1st January 2023

  • Fix undefined array key error in admin.

1.2.2 – 12th July 2022

  • Do case sensitive replacements first, then case insensitive ones.

1.2.1 – 22nd May 2022

  • Fix issue with new translations not saving properly.
  • Reduce duplication further (and remove the liklihood of this bug from re-appearing).

1.2.0 – 24th January 2022

  • Fix bug with the remove button not working. Thanks @capbussat for the suggested fix and others for the reports!

1.1.1 – 23rd November 2021

  • Escape js output.

1.1 – 23rd November 2021

  • Add support for translating Gutenberg editor strings that use the new(ish) JavaScript localisation.

1.0.2 – 3rd May 2021

  • Update register_setting to use updated properties.
  • Fix translation string replacement.

1.0.1 – 30th April 2021

  • Simplify code for string replacement. Now uses pure PHP functions rather than loops and multiple str_replace. Shorter code and hopefully a little faster.

1.0.0 – 30th April 2021

  • First release