Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MST-Textpattern/textpacks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

114 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Textpattern CMS language files

This repository contains Textpacks for Textpattern CMS. Textpacks are the translation file format Textpattern will eventually use in a future version.

Contributing

To make corrections to existing translations, or to add new ones, fork the repository. Once you are done, send in a pull request. To boost workflow the repository contains synchronisation scripts and automated tests.

Adding and removing strings

Adding and removing strings happens through the main translation file, en-gb.textpack. Open up the file and add or remove strings as needed (remember to place new strings where they belong). Once you are done, run the sync tool:

$ ./textpack

The Textpack tool will sync your alterations to all other Textpack files. It creates new empty strings and removes anything that is no longer present in the root translation.

Creating new translation

When creating entirely new translations, always use the en-gb.textpack as your template and reference point – this file is always up to date.

Creating new empty template

Start by creating a new empty Textpack file:

$ touch textpacks/xx-xx.textpack

Then run the Textpack sync tool:

$ ./textpack

This will populate your empty xx-xx.textpack file with an empty Textpack template.

Testing

The project uses PHPunit for running its unit tests. Before running the tests, make sure you have installed dev-requirements using Composer:

$ composer install --dev

To run a test:

$ ./vendor/bin/phpunit

About

Textpattern CMS language files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published