File: tests/data/utils/create_cases.php

Recommend this page to a friend!
  Classes of Francesco Danti  >  ATK4 i18next PHP  >  tests/data/utils/create_cases.php  >  Download  
File: tests/data/utils/create_cases.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: ATK4 i18next PHP
Translate application texts like il8next-PHP
Author: By
Last change:
Date: 0 years ago
Size: 273 bytes
 

Contents

Class file image Download
<?php

include __DIR__.'/cases.php';

foreach (
$path_def as $path => $array) {
   
$path = __DIR__.'/../locales/'.$path;

    echo
'created : '.$path.PHP_EOL;

    @
mkdir(dirname($path), 0777, true);

   
file_put_contents($path, json_encode($array, JSON_PRETTY_PRINT));
}


For more information send a message to info at phpclasses dot org.