Jump to content

RockLanguage - A new way to ship ProcessWire modules with translation files 🥳


Recommended Posts

img

Quickstart:

  1. Install the module
  2. Optional: Set custom language mappings
  3. Enjoy two-way language file syncing

From PW Weekly:

This week we're happy to introduce a brand new module from Bernhard Baumrock, called RockLanguage. As the name suggests, RockLanguage is a tool for dealing with translations, and more specifically with translations related to ProcessWire modules.

While ProcessWire natively ships with extensive language support, including the ability to ship module translations with the module itself, this does still require some manual work. That is exactly what RockLanguage aims to solve.

Here's what the module translation process looks like with RockLanguage:

  • Install RockLanguage on your site and (optionally) configure custom language code mapping via the module configuration screen.
  • Add a directory for the language you'd like to include translations for within your own module's directory, e.g. /site/modules/MyModule/RockLanguage/FI/ for the Finnish language.
  • Translate your module for said language via ProcessWire's translations manager. RockLanguage will automatically notice the update and duplicate the translation file from its original source to the directory you've just created.
  • Now if you install this module to another site with the language folder included, and the site has RockLanguage installed and Finnish as one of its languages, the translation files for your module will be automatically synced with ProcessWire.

What's nice about this workflow is that it takes some manual steps out of the equation, thus streamlining translation management. It's too early to say how widely this module will be adopted among public third party modules, but if you like the concept, you can easily start using it for your own modules right away.

Download + Docs:

https://github.com/baumrock/rocklanguage

https://processwire.com/modules/rock-language/

Feedback:

What do you think of this concept? Will you use the module? Should the concept be part of the core instead? Could there be any problems I didn't think of...?

Donations:

img

😎🤗👍

  • Like 7
  • Thanks 3
Link to comment
Share on other sites

  • bernhard changed the title to RockLanguage - A new way to ship ProcessWire modules with translation files 🥳

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...