Extends Language Translator Modul.
Changes view and adds support for other template engines like twig and smarty.
If you don't use another template engine, you can use this module equally.
Designed for use with ProcessWire 3.x http://processwire.com
- Clone the module and place
LanguageTranslatorList
in your site/modules/ directory.
git clone https://github.com/justonestep/processwire-languagetranslatorlist.git your/path/site/modules/LanguageTranslatorList
- Login to ProcessWire admin and click Modules.
- Click "Check for new modules".
- Click "install" next to the new
LanguageTranslatorList
module.
admin/setup/languages
In ProcessWire admin go to admin/setup/languages.
Choose a language and click on the button Translate File.
Now you see a dropdown list of all files you don't have translated for the choosen language yet.
Notice: If you use another template engine, you'll get your .twig
, .tpl
or .html
files listed there as well!
Choose a file, click Translate File and translate all phrases you want to.
Below that list is a language switcher, where you can easily switch your language.
admin/setup/language-translator
In ProcessWire admin go to admin/setup/language-translator.
On the top is a language switcher as well.
All translated files for the choosen language are listed.
You can edit the belonging phrases by clicking on the file.
Furthermore you can add another file to translate by clicking the Translate another File Button.
This module provides a permission called lang-edit (you see this permission listed here: Admin > Access > Permissions
).
If a specific role should be able to use the Language Translator just go to Admin > Access > Roles
, edit the specific role and check lang-edit.
The modules will display only the site translation files, the core files will be hidden.