anselmdk / langbuilder

terminal lang builder for silverstripe3 that creates en.yml files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LangBuilder

Language Builder Script for the SilverStripe3.

kudos to the original Author: Roman Schmid, aka Banal

modified to work with silverstripe3 by: Francisco Arenas, aka dospuntocero

what it does??

This script searches all .php and .ss files in a given directory for calls to the translate function _t. All found instances will be saved as a yml language file

Usage: LangBuilder.php

dir The directory to search for files. Usually this should be your module directory.

How to use:

LangBuilder.php mymodule

Will search the "mymodule" folder that's in the same directory as the LangBuilder.php file.

This will extract all translatable entities and store them in mymodule/lang/en.yml

About

terminal lang builder for silverstripe3 that creates en.yml files


Languages

Language:PHP 100.0%