Vous êtes connecté en tant que anonymous Se Deconnecter
Browse code

Application modulaire fonctionnelle !

Emmanuel ROY authored on 12/08/2019 15:10:25
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,44 +0,0 @@
1
-<?php
2
-
3
-namespace Illuminate\View\Compilers\Concerns;
4
-
5
-trait CompilesTranslations
6
-{
7
-    /**
8
-     * Compile the lang statements into valid PHP.
9
-     *
10
-     * @param  string  $expression
11
-     * @return string
12
-     */
13
-    protected function compileLang($expression)
14
-    {
15
-        if (is_null($expression)) {
16
-            return '<?php $__env->startTranslation(); ?>';
17
-        } elseif ($expression[1] === '[') {
18
-            return "<?php \$__env->startTranslation{$expression}; ?>";
19
-        }
20
-
21
-        return "<?php echo app('translator')->getFromJson{$expression}; ?>";
22
-    }
23
-
24
-    /**
25
-     * Compile the end-lang statements into valid PHP.
26
-     *
27
-     * @return string
28
-     */
29
-    protected function compileEndlang()
30
-    {
31
-        return '<?php echo $__env->renderTranslation(); ?>';
32
-    }
33
-
34
-    /**
35
-     * Compile the choice statements into valid PHP.
36
-     *
37
-     * @param  string  $expression
38
-     * @return string
39
-     */
40
-    protected function compileChoice($expression)
41
-    {
42
-        return "<?php echo app('translator')->choice{$expression}; ?>";
43
-    }
44
-}
Browse code

initial commit

Emmanuel ROY authored on 09/08/2019 08:39:02
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,44 @@
1
+<?php
2
+
3
+namespace Illuminate\View\Compilers\Concerns;
4
+
5
+trait CompilesTranslations
6
+{
7
+    /**
8
+     * Compile the lang statements into valid PHP.
9
+     *
10
+     * @param  string  $expression
11
+     * @return string
12
+     */
13
+    protected function compileLang($expression)
14
+    {
15
+        if (is_null($expression)) {
16
+            return '<?php $__env->startTranslation(); ?>';
17
+        } elseif ($expression[1] === '[') {
18
+            return "<?php \$__env->startTranslation{$expression}; ?>";
19
+        }
20
+
21
+        return "<?php echo app('translator')->getFromJson{$expression}; ?>";
22
+    }
23
+
24
+    /**
25
+     * Compile the end-lang statements into valid PHP.
26
+     *
27
+     * @return string
28
+     */
29
+    protected function compileEndlang()
30
+    {
31
+        return '<?php echo $__env->renderTranslation(); ?>';
32
+    }
33
+
34
+    /**
35
+     * Compile the choice statements into valid PHP.
36
+     *
37
+     * @param  string  $expression
38
+     * @return string
39
+     */
40
+    protected function compileChoice($expression)
41
+    {
42
+        return "<?php echo app('translator')->choice{$expression}; ?>";
43
+    }
44
+}