More Language Updates

ProcessWire now comes with a multi-language site profile

This morning I finished packaging up a multi-language version of the Default Site Profile for ProcessWire 2.5. This was one of the final tasks to do before putting out the first release candidate of 2.5. This multi-language site profile includes a site in 3 languages: English, German and Finnish. it demonstrates most of the multi-language features available for front-end output in ProcessWire.

On the admin side, I included the German language pack along with all of Manfred62's great updates to it. I didn't include the Finnish language pack because it's not yet updated for PW 2.5, and it might be too much to bundle two language packs in the core. (Language packs are small in file size, but do consist numerous files). By that token, maybe we shouldn't include the German language pack either, but I figured we'd give the idea a test drive and see. It certainly is a better demonstration if you can see PW's admin fully translated.

For the front-end site profile, I copied and pasted translations from Google Translate, so chances are the translations aren't great. If any of you in Germany or Finland want to make a better translation, it would be great. See instructions at the end of this post.

Language translation files now split by site and core

Something that has come up several times is that people don't like getting their static site translation files mixed in with language pack files. With language packs now having more than a hundred files, it's understandably a bit clumsy to manage these in the same field as your site translation files. We've fixed this so that now you have 2 separate file fields for each language: one for your site files (/site/), and the other for language packs (/wire/). Though you can choose to use them however you wish, as ProcessWire doesn't enforce only /site/ or /wire/ in either one of them… rather it's just a suggestion. But hopefully this will greatly simplify management of static translation files and language packs in ProcessWire.

How to make a new translation of the multi-language profile

  1. Grab the latest dev of ProcessWire (currently 2.4.17) and install it with the Multi-Language profile (it asks you which profile at install time).
  2. Edit and translate any of the pages as you see fit (all of the text fields are multi-language).
  3. We also have just a couple static translations in two template files: _main.php and search.php. These can be modified in Setup > Languages.
  4. Install this latest version of the profile exporter (download ZIP) and go to Setup > Export Site Profile.
  5. Export to a ZIP file and PM to ryan in the forums. Thanks!
 

NextProcessWire 2.5.1 updates

1

With 2.5 released last week, we focused this week on tweaking some details with admin navigation. Included are details on what's been added, as well as documentation for how to expose navigation to admin themes with your Process modules. More 

Latest news

  • ProcessWire Weekly #554
    In the 554th issue of ProcessWire Weekly we'll check out the latest core updates, introduce a couple of new third party modules, and more. Read on!
    Weekly.pw / 21 December 2024
  • Custom Fields Module
    This week we look at a new ProFields module named Custom Fields. This module provides a way to rapidly build out ProcessWire fields that contain any number of subfields/properties within them.
    Blog / 30 August 2024
  • Subscribe to weekly ProcessWire news

“We were really happy to build our new portfolio website on ProcessWire! We wanted something that gave us plenty of control on the back-end, without any bloat on the front end - just a nice, easy to access API for all our content that left us free to design and build however we liked.” —Castus, web design agency in Sheffield, UK