Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Apr 29, 2017
1 parent 8a5d36c commit ae87327
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
15 changes: 14 additions & 1 deletion config/langmanGUI.php
@@ -1,8 +1,21 @@
<?php

return [
/**
* The main language of the application, the lines of this language will be
* filled by the exact key values by default.
*/
'base_language' => 'en',
'functions' => ['__'],

/**
* PHP function we'll be looking for in your project files to collect
* un-translated keys.
*/
'localization_methods' => ['__'],

/**
* Configurations for the route group that serves the Langman Controller.
*/
'route_group_config' => [
'middleware' => ['web'],
'namespace' => 'Themsaid\LangmanGUI'
Expand Down
4 changes: 2 additions & 2 deletions src/Manager.php
Expand Up @@ -60,7 +60,7 @@ public function __construct(Filesystem $disk, string $languageFilesPath, array $
*/
public function getTranslations($reload = false)
{
if ($this->translations && !$reload) {
if ($this->translations && ! $reload) {
return $this->translations;
}

Expand Down Expand Up @@ -130,7 +130,7 @@ private function getTranslationsFromFiles()
*
* https://github.com/barryvdh/laravel-translation-manager/blob/master/src/Manager.php
*/
$functions = config('langmanGUI.functions', ['__']);
$functions = config('langmanGUI.localization_methods', ['__']);

$pattern =
// See https://regex101.com/r/jS5fX0/3
Expand Down

0 comments on commit ae87327

Please sign in to comment.