2017 © Pedro Peláez
 

module module-translate

image

netcore/module-translate

  • Monday, June 18, 2018
  • by netcorelv
  • Repository
  • 4 Watchers
  • 0 Stars
  • 1,625 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 4 Open issues
  • 20 Versions
  • 57 % Grown

The README.md

This module is a wrapper for netcore/translations

Module allows you to manage available languages in page and manage translations for them., (*1)

Pre-installation

This package is part of Netcore CMS ecosystem and is only functional in a project that has following packages installed:, (*2)

https://github.com/netcore/netcore, (*3)

https://github.com/netcore/module-admin, (*4)

Installation

Require this package with composer: ```$xslt composer require netcore/module-translate, (*5)

 Publish config, assets, migrations. Migrate and seed:

 ```$xslt
 php artisan module:publish-config Translate
 php artisan module:publish Translate
 php artisan module:publish-migration Translate
 php artisan migrate
 php artisan module:seed Translate

Usage

  • To show your translated strings in page you should use "lg" function like this ```$xslt lg('group.key', 'Lorem ipsum')
- or if you want to use replaceable attributes in translated string
```$xslt
lg('group.key', ['attribute' => 'value'], null, 'Lorem ipsum :attribute')
  • and if you want to use this function in blade files, just add @, for example: $xslt @lg('group.key', 'Lorem ipsum')

Finding translations

  • This command will find all translations in project which uses "lg" function and create Excel sheet with keys and values(in available languages) in resources/seed_translations folder with the name specified in config (default: translations)

```$xslt php artisan translations:find, (*6)


## Importing translations - This command will import translations located in Excel sheet to database ```$xslt php artisan translations:import

#

More info about core package can be found in (https://github.com/netcore/translations), (*7)

The Versions

18/06 2018

dev-master

9999999-dev

  Sources   Download

The Requires

 

by Daniels Grietiņš

18/06 2018

v1.0.15

1.0.15.0

  Sources   Download

The Requires

 

by Daniels Grietiņš

18/06 2018

1.0.x-dev

1.0.9999999.9999999-dev

  Sources   Download

The Requires

 

by Daniels Grietiņš

13/06 2018

v1.0.14

1.0.14.0

  Sources   Download

The Requires

 

by Daniels Grietiņš

28/05 2018

v1.0.13

1.0.13.0

  Sources   Download

The Requires

 

by Daniels Grietiņš

19/05 2018

v1.0.12

1.0.12.0

  Sources   Download

The Requires

 

by Daniels Grietiņš

16/05 2018

v1.0.11

1.0.11.0

  Sources   Download

The Requires

 

by Daniels Grietiņš

10/05 2018

v1.0.10

1.0.10.0

  Sources   Download

The Requires

 

by Daniels Grietiņš

09/03 2018

v1.0.9

1.0.9.0

  Sources   Download

The Requires

 

by Daniels Grietiņš

05/03 2018

v1.0.8

1.0.8.0

  Sources   Download

The Requires

 

by Daniels Grietiņš

26/02 2018

v1.0.7

1.0.7.0

  Sources   Download

The Requires

 

by Daniels Grietiņš

17/02 2018

v1.0.6

1.0.6.0

  Sources   Download

The Requires

 

by Daniels Grietiņš

13/02 2018

v1.0.5

1.0.5.0

  Sources   Download

The Requires

 

by Daniels Grietiņš

08/01 2018

v1.0.3

1.0.3.0

  Sources   Download

The Requires

 

by Daniels Grietiņš

08/01 2018

v1.0.2

1.0.2.0

  Sources   Download

The Requires

 

by Daniels Grietiņš

02/01 2018

v1.0.1

1.0.1.0

  Sources   Download

The Requires

 

by Daniels Grietiņš

02/01 2018

v1.0.0

1.0.0.0

  Sources   Download

The Requires

 

by Daniels Grietiņš

17/11 2017

0.1.x-dev

0.1.9999999.9999999-dev

  Sources   Download

The Requires

 

by Daniels Grietiņš

17/11 2017

v0.0.1

0.0.1.0

  Sources   Download

The Requires

 

by Daniels Grietiņš

08/11 2017

dev-add-license-1

dev-add-license-1

  Sources   Download

The Requires

 

by Daniels Grietiņš