From fcfab782477d6df69d29d843485dc9fb449dccd2 Mon Sep 17 00:00:00 2001 From: jsatoh Date: Sun, 27 May 2012 02:20:43 +0000 Subject: [PATCH] 2012-05-27 Junichi Satoh * general/pandora_help.php: Fixed i18n translation does not work in the help window. * include/help/ja/help_main_help.php: Added new general introduction help file. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6348 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 8 ++++++++ pandora_console/general/pandora_help.php | 4 ++++ pandora_console/include/help/ja/help_main_help.php | 14 ++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 pandora_console/include/help/ja/help_main_help.php diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 7f776d1ec8..419ae94302 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,11 @@ +2012-05-27 Junichi Satoh + + * general/pandora_help.php: Fixed i18n translation does not work + in the help window. + + * include/help/ja/help_main_help.php: Added new general + introduction help file. + 2012-05-24 Santiago Munin * include/functions_api.php: Added "group id" and "tag" to the current get_events filters. diff --git a/pandora_console/general/pandora_help.php b/pandora_console/general/pandora_help.php index 0d233e8552..d017ac050f 100644 --- a/pandora_console/general/pandora_help.php +++ b/pandora_console/general/pandora_help.php @@ -38,6 +38,10 @@ if (! isset($_SESSION['id_usuario'])) { } $user_language = get_user_language ($_SESSION['id_usuario']); +if (file_exists ('../include/languages/'.$user_language.'.mo')) { + $l10n = new gettext_reader (new CachedFileReader ('../include/languages/'.$user_language.'.mo')); + $l10n->load_tables(); +} /* Possible file locations */ $safe_language = safe_url_extraclean ($user_language, "en"); diff --git a/pandora_console/include/help/ja/help_main_help.php b/pandora_console/include/help/ja/help_main_help.php new file mode 100644 index 0000000000..5f9edf46fa --- /dev/null +++ b/pandora_console/include/help/ja/help_main_help.php @@ -0,0 +1,14 @@ + +

Pandora FMS - ヘルプ

+

概要

+

+これは、Pandora FMS コンソールのオンラインヘルプです。このヘルプは簡単に説明することを目的としたもので、Pandora FMS の使い方を教えることを意図しているわけではありません。Pandora FMS の公式ドキュメントは約 900ページにも及びます。全体を読む必要はありませんが、参照できるようにダウンロードしておくことをお勧めします。 + +

+公式ドキュメントのダウンロード + +