Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lang fix #73

Open
wants to merge 5 commits into
base: 2.7
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "anomaly/files-module",
"name": "visiosoft/files-module",
"type": "streams-addon",
"description": "Powerful asset management made easy.",
"keywords": [
Expand Down
11 changes: 11 additions & 0 deletions resources/lang/ar/section.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

return [
"files" => ['title' => "Files"],
"disks" => ['title' => "Disk"],
"fields" => ['title' => "Fields"],
"folders" => ['title' => "Folders"],
"adapters" => ['title' => "Adapters"],
"assignments" => ['title' => "Assignments"],

];
11 changes: 11 additions & 0 deletions resources/lang/de/section.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

return [
"files" => ['title' => "Files"],
"disks" => ['title' => "Disk"],
"fields" => ['title' => "Fields"],
"folders" => ['title' => "Folders"],
"adapters" => ['title' => "Adapters"],
"assignments" => ['title' => "Assignments"],

];
11 changes: 11 additions & 0 deletions resources/lang/en/section.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

return [
"files" => ['title' => "Files"],
"disks" => ['title' => "Disk"],
"fields" => ['title' => "Fields"],
"folders" => ['title' => "Folders"],
"adapters" => ['title' => "Adapters"],
"assignments" => ['title' => "Assignments"],

];
11 changes: 11 additions & 0 deletions resources/lang/fr/section.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

return [
"files" => ['title' => "Files"],
"disks" => ['title' => "Disk"],
"fields" => ['title' => "Fields"],
"folders" => ['title' => "Folders"],
"adapters" => ['title' => "Adapters"],
"assignments" => ['title' => "Assignments"],

];
11 changes: 11 additions & 0 deletions resources/lang/hu/section.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

return [
"files" => ['title' => "Files"],
"disks" => ['title' => "Disk"],
"fields" => ['title' => "Fields"],
"folders" => ['title' => "Folders"],
"adapters" => ['title' => "Adapters"],
"assignments" => ['title' => "Assignments"],

];
11 changes: 11 additions & 0 deletions resources/lang/it/section.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

return [
"files" => ['title' => "Files"],
"disks" => ['title' => "Disk"],
"fields" => ['title' => "Fields"],
"folders" => ['title' => "Folders"],
"adapters" => ['title' => "Adapters"],
"assignments" => ['title' => "Assignments"],

];
11 changes: 11 additions & 0 deletions resources/lang/lt/section.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

return [
"files" => ['title' => "Files"],
"disks" => ['title' => "Disk"],
"fields" => ['title' => "Fields"],
"folders" => ['title' => "Folders"],
"adapters" => ['title' => "Adapters"],
"assignments" => ['title' => "Assignments"],

];
11 changes: 11 additions & 0 deletions resources/lang/nl/section.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

return [
"files" => ['title' => "Files"],
"disks" => ['title' => "Disk"],
"fields" => ['title' => "Fields"],
"folders" => ['title' => "Folders"],
"adapters" => ['title' => "Adapters"],
"assignments" => ['title' => "Assignments"],

];
11 changes: 11 additions & 0 deletions resources/lang/sv/section.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

return [
"files" => ['title' => "Files"],
"disks" => ['title' => "Disk"],
"fields" => ['title' => "Fields"],
"folders" => ['title' => "Folders"],
"adapters" => ['title' => "Adapters"],
"assignments" => ['title' => "Assignments"],

];
11 changes: 11 additions & 0 deletions resources/lang/tr/section.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

return [
"files" => ['title' => "Dosyalar"],
"disks" => ['title' => "Diskler"],
"fields" => ['title' => "Alanlar"],
"folders" => ['title' => "Klasörler"],
"adapters" => ['title' => "Adaptörleri"],
"assignments" => ['title' => "Ödevler"],

];
11 changes: 11 additions & 0 deletions resources/lang/zh-cn/section.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

return [
"files" => ['title' => "Files"],
"disks" => ['title' => "Disk"],
"fields" => ['title' => "Fields"],
"folders" => ['title' => "Folders"],
"adapters" => ['title' => "Adapters"],
"assignments" => ['title' => "Assignments"],

];
11 changes: 11 additions & 0 deletions resources/lang/zh-tw/section.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

return [
"files" => ['title' => "Files"],
"disks" => ['title' => "Disk"],
"fields" => ['title' => "Fields"],
"folders" => ['title' => "Folders"],
"adapters" => ['title' => "Adapters"],
"assignments" => ['title' => "Assignments"],

];
7 changes: 4 additions & 3 deletions src/FilesModulePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Anomaly\FilesModule\Folder\Command\GetFolder;
use Anomaly\Streams\Platform\Addon\Plugin\Plugin;
use Anomaly\Streams\Platform\Support\Decorator;
use Twig\TwigFunction;

/**
* Class FilesModulePlugin
Expand All @@ -24,19 +25,19 @@ class FilesModulePlugin extends Plugin
public function getFunctions()
{
return [
new \Twig_SimpleFunction(
new TwigFunction(
'max_upload_size',
function () {
return dispatch_sync(new GetMaxUploadSize());
}
),
new \Twig_SimpleFunction(
new TwigFunction(
'file',
function ($identifier) {
return (new Decorator())->decorate(dispatch_sync(new GetFile($identifier)));
}
),
new \Twig_SimpleFunction(
new TwigFunction(
'folder',
function ($identifier) {
return (new Decorator())->decorate(dispatch_sync(new GetFolder($identifier)));
Expand Down