Download the PHP package forxer/generic-term-translations-for-laravel without Composer
On this page you can find all versions of the php package forxer/generic-term-translations-for-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download forxer/generic-term-translations-for-laravel
More information about forxer/generic-term-translations-for-laravel
Files in forxer/generic-term-translations-for-laravel
Package generic-term-translations-for-laravel
Short Description A plugin for Laravel Lang that provides generic term translations for Laravel.
License MIT
Homepage https://github.com/forxer/generic-term-translations-for-laravel
Informations about the package generic-term-translations-for-laravel
Generic term translations for Laravel
A plugin for Laravel Lang that provides generic term translations for Laravel project.
Consult the glossary to see all the terms available for translation.
Installation
Require the project using Composer:
Then use the locales publisher of Laravel Lang to add/update/reset or remove translations of this package:
- If you have never used Laravel Lang: add locales.
- If you are already using Laravel Lang: just update the locales.
Usage
This package provides translations for terms regularly used in projects.
You will find all the terms provided by this package in the glossary.
Terms are categorized into different sections by source files. For example there is an action.php
source file that defines the add_something
key, you can use it like this:
Be careful to escape the data that you do not control:
Feminine and masculine gender
Some languages distinguish between feminine and masculine genders, for the same term the feminine key will then be suffixed by _fem
. For example:
In English we use "all", while in French we use "toutes" in the feminine and "tous" in the masculine (see it on Google Translate).
Development steps
- From the package directory, run
php composer update
- Update the sources as needed in
src/source
files - Run the console command
php vendor/bin/lang sync
- Translate modifications in
src/locales/{locale}/php.json
- Run
php generate-glossary
- Commit changes