From d2da26e467aec1347ae7c314c4c8279cb4618c34 Mon Sep 17 00:00:00 2001 From: patdenice Date: Wed, 13 Apr 2011 10:36:53 +0000 Subject: Clean code git-svn-id: http://piwigo.org/svn/trunk@10348 68402e56-0260-453c-a942-63ccdbb3a9ee --- plugins/LocalFilesEditor/include/lang.inc.php | 53 +++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 plugins/LocalFilesEditor/include/lang.inc.php (limited to 'plugins/LocalFilesEditor/include/lang.inc.php') diff --git a/plugins/LocalFilesEditor/include/lang.inc.php b/plugins/LocalFilesEditor/include/lang.inc.php new file mode 100644 index 000000000..fe5a4f85c --- /dev/null +++ b/plugins/LocalFilesEditor/include/lang.inc.php @@ -0,0 +1,53 @@ +"; + } +} + +$selected = 0; +$options[] = l10n('locfiledit_choose_file'); +$options[] = '----------------------'; +foreach (get_languages() as $language_code => $language_name) +{ + $value = PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'language/'.$language_code.'.lang.php'; + if ($edited_file == $value) + { + $selected = $value; + $template->assign('show_default', array( + array( + 'URL' => LOCALEDIT_PATH.'show_default.php?file=language/'.$language_code.'/common.lang.php', + 'FILE' => 'common.lang.php' + ), + array( + 'URL' => LOCALEDIT_PATH.'show_default.php?file=language/'.$language_code.'/admin.lang.php', + 'FILE' => 'admin.lang.php' + ) + ) + ); + } + $options[$value] = $language_name; +} + +$template->assign('css_lang_tpl', array( + 'OPTIONS' => $options, + 'SELECTED' => $selected + ) + ); + +$codemirror_mode = 'application/x-httpd-php'; + +?> \ No newline at end of file -- cgit v1.2.3