Coder Social home page Coder Social logo

processtranslatepage's Introduction

ProcessTranslatePage – A Processwire module to translate all page fields via Fluency

ProcessTranslatePage is an extension for the Processwire module Fluency by SkyLundy so it can translate all text fields on a page at once.

As translations might take some time to proceed, PHP timeouts might occur on pages with a lot of fields and/or text. To bypass that, see the section Command line usage

Installation

  1. Download and install Fluency-Translation
  2. Configure the DeepL-API credentials and language settings
  3. Download and install ProcessTranslatePage
  4. Configure the module settings if needed
  5. Add the permission ›fluency-translate‹ to your user role
  6. Open a page, click on the arrow next to the save-button, choose ›Save + Translate‹

Settings

  • Source Language
  • Exclude Templates
  • Exclude Fields
  • Exclude Target Languages
  • Show Single Target Language Buttons
  • Write Mode
    • Translate only if target field is empty
    • Translate only changed fields
    • Overwrite all target fields

Caution: the »Changed fields«-option support is currently only one level deep. If you change any value inside a Repeater(-Matrix) or FieldsetPage field, the complete field will be translated.

Field support

  • PageTitleLanguage
  • TextLanguage
  • TextareaLanguage
  • File (and image) descriptions
  • Combo (ProField)
  • All the mentioned fields inside Repeater, RepeaterMatrix, FieldsetPage, Functional and Table fields (ProFields)

Command line usage

If you want to translate more than one page at time, you can execute the included script translate-pagetree.php in the command line to prevent timeouts. Before executing, change the variables $username, $home and $includeHidden in the script according to your needs.

Please note, this is a beta release. Please use in production after thorough testing for your own project and create Github issues for bugs found if possible.

processtranslatepage's People

Contributors

robertweiss avatar skylundy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.