Skip to content

Instantly share code, notes, and snippets.

@d3v2a
Created July 21, 2015 15:20
Show Gist options
  • Save d3v2a/9acce8e7714a5a014951 to your computer and use it in GitHub Desktop.
Save d3v2a/9acce8e7714a5a014951 to your computer and use it in GitHub Desktop.
get diff in hesk language file
<?php
//put this file in the root of language folder
define('IN_SCRIPT',1);
include 'en/text.php';
$en_langs = $hesklang;
$hesklang = null;
include 'fr/text.php';
print 'non trouv&eacute; dans en';
$infr = array_diff_key($hesklang, $en_langs);
print '<pre>';
foreach ($infr as $key => $value) {
print '\\\\'.htmlentities($value).'<br>';
print '$hesklang[\''.$key.'\']=\'\';<br>';
}
print '</pre>';
print 'non trouv&eacute; dans fr';
$inen = array_diff_key($en_langs, $hesklang);
print '<pre>';
foreach ($inen as $key => $value) {
print '\\\\'.htmlentities($value).'<br>';
print '$hesklang[\''.$key.'\']=\'\';<br>';
}
print '</pre>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment