Download the PHP package wazum/rte-ckeditor-no-translate without Composer

On this page you can find all versions of the php package wazum/rte-ckeditor-no-translate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package rte-ckeditor-no-translate

TYPO3 CKEditor no translate

A button for the rich text editor that marks text as not translatable.


Tests TYPO3

The saved HTML gets translate="no", so Chrome, Edge, Firefox, DeepL and Azure Translator skip that text.

Needs TYPO3 13.4, or 14.3 and newer.

Install

Set it up

Add our file to the imports of your own RTE preset:

Import it last. TYPO3 appends list values, so the button lands at the end of your toolbar. Write your own toolbar.items list to place noTranslate somewhere else.

For a first look without touching your preset, the extension registers one that holds the TYPO3 default plus the button:

For editors

Marked text gets a yellow background and a dashed underline, plus the tooltip "Not translated" on hover. The button looks active while the cursor sits in marked text.

Click the button again to remove the mark. With the cursor inside, the whole mark goes, like unlink does. With a part selected, only that part loses the mark.

"Remove Format" keeps the mark, because "do not translate" carries meaning and is no formatting. Links work the same way.

Options

noTranslate.mode sets what the editor writes. It goes into the same preset file, below the imports:

mode output
attribute (default) <span translate="no">
class <span class="notranslate">
both <span translate="no" class="notranslate">

Every mode reads back all three forms. Pick class or both for the old Google website translation widget, which looks for the class.

Known limits

class and both mode need notranslate in allowedClasses. A site that sets processing.allowedClasses and leaves out notranslate loses the class on every save. TYPO3 does not drop it, it writes the first allowed class instead (HtmlParser::HTMLcleaner()), so the text picks up a style nobody asked for. Add notranslate to your list. The default attribute mode writes no class and stays clear of this.

Old class="notranslate" markup turns into translate="no". In the default mode, existing markers change form as soon as an editor saves the record, even without touching that text. Leaving them alone is not an option: CKEditor drops every class that no plugin claims, so the marker would vanish completely. Pick both to keep the class for the Google website widget.

Styling

The editor styles marked text with Resources/Public/Css/no-translate.css. Point editor.config.contentsCss to your own file to change the look. TYPO3 prefixes these styles with .ck-content, so they stay inside the editor.

The frontend needs no CSS. translate="no" works without styling.

Credits

The toolbar icon builds on the ai-translate icon from CKEditor 5, without the AI sparkle and with a slash on top. CKEditor 5 is licensed under GPL-2.0-or-later, the same license as this extension.

License

GPL-2.0-or-later


All versions of rte-ckeditor-no-translate with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
typo3/cms-core Version ^13.4 || ^14.3
typo3/cms-rte-ckeditor Version ^13.4 || ^14.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wazum/rte-ckeditor-no-translate contains the following files

Loading the files please wait ...