From 1d923cb59fc114a5f32c70d5954bd50cc8c74073 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 28 Jul 2021 16:38:47 +0200 Subject: [PATCH] wip #4623 0.25 --- .idea/$CACHE_FILE$ | 178 +++++++++++++ .idea/FluidbookToolbox.iml | 13 + .idea/codeStyles/Project.xml | 22 ++ .idea/codeStyles/codeStyleConfig.xml | 5 + .idea/composerJson.xml | 13 + .idea/deployment.xml | 347 ++++++++++++++++++++++++++ .idea/laravel-plugin.xml | 6 + .idea/misc.xml | 13 + .idea/modules.xml | 8 + .idea/php-inspections-ea-ultimate.xml | 20 ++ .idea/php.xml | 195 +++++++++++++++ .idea/runConfigurations.xml | 10 + .idea/vcs.xml | 6 + .idea/watcherTasks.xml | 31 +++ app/Fields/NSISLocale.php | 21 ++ app/Models/FluidbookTranslate.php | 9 +- 16 files changed, 896 insertions(+), 1 deletion(-) create mode 100644 .idea/$CACHE_FILE$ create mode 100644 .idea/FluidbookToolbox.iml create mode 100644 .idea/codeStyles/Project.xml create mode 100644 .idea/codeStyles/codeStyleConfig.xml create mode 100644 .idea/composerJson.xml create mode 100644 .idea/deployment.xml create mode 100644 .idea/laravel-plugin.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/php-inspections-ea-ultimate.xml create mode 100644 .idea/php.xml create mode 100644 .idea/runConfigurations.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/watcherTasks.xml create mode 100644 app/Fields/NSISLocale.php diff --git a/.idea/$CACHE_FILE$ b/.idea/$CACHE_FILE$ new file mode 100644 index 000000000..bc060dcb7 --- /dev/null +++ b/.idea/$CACHE_FILE$ @@ -0,0 +1,178 @@ + + + + + + + + + + + + + + Abstraction issuesJava + + + Android Lint + + + Class metricsJava + + + Code StylePHP + + + Code maturity issuesJava + + + Code style issuesJava + + + CoffeeScript + + + Concurrency annotation issuesJava + + + Control flow issuesJava + + + Cucumber + + + DOM issuesJavaScript + + + Declaration redundancyJava + + + DeclarationGroovy + + + Django + + + General + + + GeneralCoffeeScript + + + GeneralJavaScript + + + Google Web Toolkit issues + + + Groovy + + + Initialization issuesJava + + + Internationalization issues + + + Internationalization issuesJava + + + J2ME issuesJava + + + JPA issues + + + Java + + + Java language level issuesJava + + + Java language level migration aidsJava + + + JavaScript + + + Javadoc issuesJava + + + Memory issuesJava + + + Method metricsJava + + + PHP + + + Packaging issuesJava + + + Performance issuesJava + + + Plugin DevKit + + + Portability issuesJava + + + Probable bugsCoffeeScript + + + Probable bugsGroovy + + + Probable bugsJava + + + Probable bugsJavaScript + + + RELAX NG + + + SQL + + + Security issuesJava + + + Serialization issuesJava + + + Spring + + + Spring CoreSpring + + + Struts + + + Struts 2Struts + + + Threading issuesGroovy + + + Threading issuesJava + + + Visibility issuesJava + + + XMLSpring CoreSpring + + + + + Android + + + + + + \ No newline at end of file diff --git a/.idea/FluidbookToolbox.iml b/.idea/FluidbookToolbox.iml new file mode 100644 index 000000000..b264dfe25 --- /dev/null +++ b/.idea/FluidbookToolbox.iml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 000000000..645f4a069 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,22 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 000000000..a55e7a179 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/composerJson.xml b/.idea/composerJson.xml new file mode 100644 index 000000000..77d3a87d5 --- /dev/null +++ b/.idea/composerJson.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/deployment.xml b/.idea/deployment.xml new file mode 100644 index 000000000..870eb12e0 --- /dev/null +++ b/.idea/deployment.xml @@ -0,0 +1,347 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/laravel-plugin.xml b/.idea/laravel-plugin.xml new file mode 100644 index 000000000..5aae25dda --- /dev/null +++ b/.idea/laravel-plugin.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 000000000..063320c94 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,13 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 000000000..f744752e1 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/php-inspections-ea-ultimate.xml b/.idea/php-inspections-ea-ultimate.xml new file mode 100644 index 000000000..26c2a682b --- /dev/null +++ b/.idea/php-inspections-ea-ultimate.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 000000000..ed9fe27b5 --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml new file mode 100644 index 000000000..797acea53 --- /dev/null +++ b/.idea/runConfigurations.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 000000000..35eb1ddfb --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/watcherTasks.xml b/.idea/watcherTasks.xml new file mode 100644 index 000000000..2c91a1999 --- /dev/null +++ b/.idea/watcherTasks.xml @@ -0,0 +1,31 @@ + + + + + + + + \ No newline at end of file diff --git a/app/Fields/NSISLocale.php b/app/Fields/NSISLocale.php new file mode 100644 index 000000000..162b698e6 --- /dev/null +++ b/app/Fields/NSISLocale.php @@ -0,0 +1,21 @@ +getFilename()); + $res[$e[0]] = $e[0]; + } + asort($res); + return $res; + } +} diff --git a/app/Models/FluidbookTranslate.php b/app/Models/FluidbookTranslate.php index e3d8d3675..3e423fc99 100644 --- a/app/Models/FluidbookTranslate.php +++ b/app/Models/FluidbookTranslate.php @@ -3,6 +3,7 @@ namespace App\Models; +use App\Fields\NSISLocale; use Cubist\Backpack\Facades\App; use Cubist\Backpack\Magic\Models\Translate; @@ -22,9 +23,15 @@ class FluidbookTranslate extends Translate parent::__construct($attributes); } + public function setFields() + { + $this->addField(['name' => 'nsis', 'type' => NSISLocale::class, 'label' => __('Langue de l\'installeur'), 'translatable' => true]); + parent::setFields(); + } + public function getPaths() { - return ['resources/player']; + return [__('Player') => 'resources/player/branches', __('En cours de développement') => 'resources/player/local', __('Compilateur') => 'resources/compiler', __('Application') => 'resources/html5app']; } public function getExtensions() -- 2.39.5