Merged in marcoAntonioNina/processmaker (pull request #393)
Improvement Translation mafe
This commit is contained in:
@@ -220,14 +220,12 @@ class Translation extends BaseTranslation
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
if (! is_dir( dirname( $mafeFolder ) )) {
|
G::verifyPath($mafeFolder, true);
|
||||||
G::mk_dir( dirname( $mafeFolder, 0777 ) );
|
|
||||||
}
|
|
||||||
if (! is_dir( dirname( $cacheFileMafe ) )) {
|
if (! is_dir( dirname( $cacheFileMafe ) )) {
|
||||||
G::mk_dir( dirname( $cacheFileMafe, 0777 ) );
|
G::mk_dir( dirname( $cacheFileMafe ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
$f = fopen( $cacheFileMafe, 'w+' );
|
$f = fopen( $cacheFileMafe, 'w' );
|
||||||
if ($f == false) {
|
if ($f == false) {
|
||||||
error_log("Error: Cannot write into cacheFileMafe: $cacheFileMafe\n");
|
error_log("Error: Cannot write into cacheFileMafe: $cacheFileMafe\n");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -72,6 +72,13 @@ class Designer extends Controller
|
|||||||
$this->setVar('buildhash', $buildhash);
|
$this->setVar('buildhash', $buildhash);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$translationMafe = "/translations/translationsMafe.js";
|
||||||
|
$this->setVar('translationMafe', $translationMafe);
|
||||||
|
if (!file_exists(PATH_HTML . "translations" . PATH_SEP. 'translationsMafe' . ".js")) {
|
||||||
|
$translation = new Translation();
|
||||||
|
$translation->generateFileTranslationMafe();
|
||||||
|
}
|
||||||
|
|
||||||
$this->setView('designer/index');
|
$this->setView('designer/index');
|
||||||
$this->render();
|
$this->render();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
|
|
||||||
{/if}
|
{/if}
|
||||||
<!-- translations -->
|
<!-- translations -->
|
||||||
<script type="text/javascript" src="/translations/translationsMafe.js"></script>
|
<script type="text/javascript" src="{$translationMafe}"></script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body onresize="resizingFrame();">
|
<body onresize="resizingFrame();">
|
||||||
|
|||||||
Reference in New Issue
Block a user