Esempio n. 1
0
 function get_name()
 {
     return translation($this->Translation, 'name');
 }
Esempio n. 2
0
 function get_excerpt()
 {
     return translation($this->Translation, 'excerpt');
 }
Esempio n. 3
0
File: menu.php Progetto: flub78/GVV3
			<?php 
echo bootstrap_menu($menubar);
?>

			<ul id="main-menu" class="nav navbar-nav navbar-right">
            <?php 
if ($this->ion_auth->logged_in()) {
    $user = $this->ion_auth->user()->row();
    echo $user->email;
    $username = $user->first_name . ' ' . $user->last_name;
    echo "<li class=\"nav-welcome\"><h5>" . translation('login_welcome') . " " . $username . "</h5></li>";
    echo "<li>&nbsp;</li>";
    echo "<li><a id=\"logout\" href=\"" . controller_url("welcome/logout") . "\">" . translation('button_logout') . "</a></li>";
} else {
    echo "<li><a href=\"login\">" . translation('button_login') . "</a></li>";
    if ($this->config->item('autoregister')) {
        echo "<li><a href=\"register\">" . translation('button_register') . "</a></li>";
    }
}
?>

            </ul>
		</div>
		<!--container-fluid -->

	</div>
	<!-- container-fluid -->
</nav>

    }
    if ($aclf->checkAccessToFunction("B_RELAUNCH_TREE")) {
        $clustereditbar->addAction($lang->get("sp_rltree", "Refresh Tree"));
    }
    if ($aclf->checkAccessToFunction("B_EXPIRE_TREE")) {
        $clustereditbar->addAction($lang->get('exp_tree', 'Expire Tree'));
    }
    if ($aclf->checkAccessToFunction("B_DESTROY_TREE") && $isDeletable) {
        $clustereditbar->addAction('separator');
        $clustereditbar->addAction($lang->get('del_tree', 'Delete Tree'));
    }
}
if (!$c["disableTranslationHelp"] && $editState && countRows("variations", "VARIATION_ID", "1") > 1) {
    $toolbar = new Buttonbar("Toolbar");
    $toolbar->selectBoxDescr = true;
    $toolbar->setTranslationSelector(createNameValueArrayEx("variations", "NAME", "VARIATION_ID", "VARIATION_ID <>" . variation()), translation());
    if (!$isArticle) {
        $toolbar->setVariationSelector(populateVariations($clnid, variation()), variation());
    }
    $clusterPanel->add($toolbar);
}
// PANELS
// Edit-Content Panel.
// include needed sources
includePGNISources();
//Plugin Sources.
$clid = getClusterFromNode($clnid, $variation);
if ($view == $pos_clusterPanel) {
    syncCluster($clid);
}
$clusterPanel->add(new Hidden("view", $view));
Esempio n. 5
0
script('core', ['multiselect', 'singleselect']);
style('settings', 'settings');
$userlistParams = array();
$allGroups = array();
foreach ($_["groups"] as $group) {
    $allGroups[] = $group['name'];
}
foreach ($_["adminGroup"] as $group) {
    $allGroups[] = $group['name'];
}
$userlistParams['subadmingroups'] = $allGroups;
$userlistParams['allGroups'] = json_encode($allGroups);
$items = array_flip($userlistParams['subadmingroups']);
unset($items['admin']);
$userlistParams['subadmingroups'] = array_flip($items);
translation('settings');
?>

<div id="app-navigation">
	<?php 
print_unescaped($this->inc('users/part.grouplist'));
?>
	<div id="app-settings">
		<div id="app-settings-header">
			<button class="settings-button" tabindex="0" data-apps-slide-toggle="#app-settings-content"></button>
		</div>
		<div id="app-settings-content">
			<?php 
print_unescaped($this->inc('users/part.setquota'));
?>
Esempio n. 6
0
<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
include_once '../modele/functionSeeker.php';
include_once '../modele/layout.php';
include_once '../controleur/translator.php';
include_once '../controleur/interpreter.php';
if (isset($_POST['editor'])) {
    $langage = $_POST['langage'];
    $structure = getTranslationLayout(1, $langage);
    $structure = interpreting($structure);
    $codeComplet = '';
    if (isset($_POST['userFonction'])) {
        $listeFonction = $_POST['userFonction'];
        foreach ($listeFonction as $l) {
            $c = functionSeeker($l);
            $codeComplet = $codeComplet . $c[0]['contenu'];
        }
    }
    $currentCode = translation($codeComplet, $structure);
    $currentCode = convertType($currentCode, $langage);
    echo nl2br($currentCode);
}
Esempio n. 7
0
File: Dev.php Progetto: flub78/GVV3
 public function check_lang($lang = "french", $identical = 0, $type = "application")
 {
     $lang_ref = "english";
     $data = array();
     echo "Reference language=" . $lang_ref . br();
     echo "Checked language=" . $lang . br();
     $data['lang_ref'] = $lang_ref;
     $data['checked_lang'] = $lang;
     $missing_files = 0;
     $missing_keys = 0;
     $not_translated = 0;
     $pwd = getcwd();
     $ref_files = array();
     $lang_files = array();
     $ref_dir = $pwd . "/{$type}/language/" . $lang_ref;
     if (!is_dir($ref_dir)) {
         echo "Reference language {$ref_dir} not found" . br();
         exit;
     }
     $lang_dir = $pwd . "/{$type}/language/" . $lang;
     if (!is_dir($lang_dir)) {
         echo "Language directory {$lang_dir} not found" . br();
         exit;
     }
     echo br();
     # Check that all files are found in the checked language
     if ($dh = opendir($ref_dir)) {
         while (($file = readdir($dh)) !== false) {
             if (preg_match('/.*\\.php$/', $file, $matches)) {
                 # echo "fichier : $file : type : " . filetype($ref_dir . $file) . br();
                 $ref_files[] = $file;
                 $lang_file = $lang_dir . '/' . $file;
                 if (!file_exists($lang_file)) {
                     echo "{$lang_file} not found" . br();
                     $missing_files++;
                 }
             }
         }
         closedir($dh);
     }
     echo br();
     # Check that all entries are found in the checked language
     if ($dh = opendir($ref_dir)) {
         while (($file = readdir($dh)) !== false) {
             if (preg_match('/.*\\.php$/', $file, $matches)) {
                 $ref_file = $ref_dir . '/' . $file;
                 $lang_file = $lang_dir . '/' . $file;
                 if (file_exists($lang_file)) {
                     echo "Checking {$file}" . br();
                     $missing_keys += $this->check_entries($ref_file, $lang_file, $identical);
                 }
             }
         }
         closedir($dh);
     }
     echo br();
     echo "Missing files = {$missing_files}, missing entries = {$missing_keys}" . br();
     $this->load->view(translation('language') . '/dev/check_lang');
 }
Esempio n. 8
0
         }
     }
     // メールアドレスのチェック
     if ($mailCheck_flag) {
         if ($key == 'mail' && !empty($val)) {
             if (!mailCheck($val)) {
                 array_push($err_list, '[メールアドレス]の形式が正しくありません。');
             }
         }
     }
     // チェックボックスの場合、$valを分割
     if (is_array($val)) {
         $val = implode(",", $val);
     }
     if ($translation_flag) {
         array_push($content_of_inquiry, translation($key, $translation_list) . "\n" . $val);
     } else {
         array_push($content_of_inquiry, $key . "\n" . $val);
     }
 }
 if (!empty($err_list)) {
     //エラーメッセージの表示
     for ($i = 0; $i < count($err_list); $i++) {
         $err_message .= "<p>" . $err_list[$i] . "</p>\n";
     }
     error_view($err_message);
 } else {
     // エラーがなければお問い合わせ内容をセットし、メール送信処理を実行
     for ($i = 0; $i < count($content_of_inquiry); $i++) {
         $confirm_message .= "<p>" . nl2br(htmlspecialchars($content_of_inquiry[$i])) . "</p>\n";
         $adminMail_message .= htmlspecialchars($content_of_inquiry[$i]) . "\n";
Esempio n. 9
0
        echo '<li class="proceed alert alert-success">' . translation('Directory: <b> :dir </b> is writable', 'system', array(':dir' => $dir)) . '</li>';
    } else {
        echo '<li class="error alert alert-danger">' . translation('Directory: <b> :dir </b> not writable', 'system', array(':dir' => $dir)) . '</li>';
        $proceed = false;
    }
}
foreach ($file_array as $file) {
    $complete_file = HOME_DIR . DS . $file;
    if (is_writable($complete_file)) {
        echo '<li class="proceed alert alert-success">' . translation('File: <b> :file </b> is writable', 'system', array(':file' => $file)) . '</li>';
    } else {
        echo '<li class="error alert alert-danger">' . $complete_file . translation('File: <b> : file </b> not writable', 'system', array(':file' => $file)) . '</li>';
        $proceed = false;
    }
}
if (is_writable('.htaccess')) {
    echo '<li class="proceed alert alert-success">' . translation('Main .htaccess file writable', 'system') . '</li>';
} else {
    echo '<li class="error alert alert-danger">' . translation('Main .htaccess file not writable', 'system') . '</li>';
    $proceed = false;
}
?>
</ul>
<?php 
if ($proceed) {
    echo "<a href='install.php?action=dbsettings' class='button btn-primary continue'>Continue</a>";
} else {
    echo "<a href='' class='button btn-primary error'>Fix above error to proceed further</a>";
}
?>
     
Esempio n. 10
0
function _e($text, $domain = 'featherbb')
{
    echo translation($text);
}
Esempio n. 11
0
    echo '<li class="proceed alert alert-success">' . translation('Module Mod Rewrite is installed', 'system') . '</li>';
}
foreach ($dir_array as $dir) {
    if (is_writable($dir . '/')) {
        echo '<li class="proceed alert alert-success">' . translation('Directory: <b> :dir </b> is writable', 'system', array(':dir' => $dir)) . '</li>';
    } else {
        echo '<li class="error alert alert-danger">' . translation('Directory: <b> :dir </b> not writable', 'system', array(':dir' => $dir)) . '</li>';
        $proceed = false;
    }
}
foreach ($file_array as $file) {
    $complete_file = HOME_DIR . DS . $file;
    if (is_writable($complete_file)) {
        echo '<li class="proceed alert alert-success">' . translation('File: <b> :file </b> is writable', 'system', array(':file' => $file)) . '</li>';
    } else {
        echo '<li class="error alert alert-danger">' . $complete_file . translation('File: <b> : file </b> not writable', 'system', array(':file' => $file)) . '</li>';
        $proceed = false;
    }
}
//  if (is_writable('.htaccess')) {
//   echo '<li class="proceed alert alert-success">' . translation('Main .htaccess file writable', 'system') . '</li>';
//  } else {
//   echo '<li class="error alert alert-danger">' . translation('Main .htaccess file not writable', 'system') . '</li>';
//   $proceed = false;
//  }
?>
</ul>
<?php 
if ($proceed) {
    echo "<a href='install.php?action=dbsettings' class='button btn-primary continue'>Continue</a>";
} else {
Esempio n. 12
0
		</div>
		<!-- end: form -->

		<!-- start: email preview -->
		<div class="email-preview">
			<div class="close"></div>
			<div class="where-to"></div>
			<div class="content"></div>
			<div><?php 
echo translation($language, 'email_preview_your_name_here');
?>
</div>
			<div class="photo">
				<img src="/images/person-icon.png" alt="">
				<span><?php 
echo translation($language, 'email_preview_about_this_photo');
?>
</span>
			</div>
		</div>
		<!-- end: email preview -->

		<!-- start: who we are -->
		<div class="who-we-are">
			<div class="close"></div>
			<div class="content">
			</div>
		</div>
		<!-- end: who are we -->

	</div>