From 51e3d211c85f413fbce8d78cbe172bf1e7f1829f Mon Sep 17 00:00:00 2001 From: vdigital Date: Sun, 18 Nov 2007 19:59:33 +0000 Subject: New: Language Switch plugin support git-svn-id: http://piwigo.org/svn/trunk@2161 68402e56-0260-453c-a942-63ccdbb3a9ee --- plugins/language_switch/icons/de_DE.gif | Bin 0 -> 899 bytes plugins/language_switch/icons/en_UK.gif | Bin 0 -> 1161 bytes plugins/language_switch/icons/es_AR.gif | Bin 0 -> 1166 bytes plugins/language_switch/icons/es_ES.gif | Bin 0 -> 1025 bytes plugins/language_switch/icons/fr_FR.gif | Bin 0 -> 236 bytes plugins/language_switch/icons/hu_HU.gif | Bin 0 -> 1033 bytes plugins/language_switch/icons/it_IT.gif | Bin 0 -> 959 bytes plugins/language_switch/icons/nl_NL.gif | Bin 0 -> 103 bytes plugins/language_switch/icons/pl_PL.gif | Bin 0 -> 156 bytes plugins/language_switch/index.htm | 0 plugins/language_switch/language_switch.inc.php | 106 ++++++++++++++++++++++++ plugins/language_switch/main.inc.php | 36 ++++++++ 12 files changed, 142 insertions(+) create mode 100644 plugins/language_switch/icons/de_DE.gif create mode 100644 plugins/language_switch/icons/en_UK.gif create mode 100644 plugins/language_switch/icons/es_AR.gif create mode 100644 plugins/language_switch/icons/es_ES.gif create mode 100644 plugins/language_switch/icons/fr_FR.gif create mode 100644 plugins/language_switch/icons/hu_HU.gif create mode 100644 plugins/language_switch/icons/it_IT.gif create mode 100644 plugins/language_switch/icons/nl_NL.gif create mode 100644 plugins/language_switch/icons/pl_PL.gif create mode 100644 plugins/language_switch/index.htm create mode 100644 plugins/language_switch/language_switch.inc.php create mode 100644 plugins/language_switch/main.inc.php (limited to 'plugins/language_switch') diff --git a/plugins/language_switch/icons/de_DE.gif b/plugins/language_switch/icons/de_DE.gif new file mode 100644 index 000000000..9b3009565 Binary files /dev/null and b/plugins/language_switch/icons/de_DE.gif differ diff --git a/plugins/language_switch/icons/en_UK.gif b/plugins/language_switch/icons/en_UK.gif new file mode 100644 index 000000000..51b20e3c1 Binary files /dev/null and b/plugins/language_switch/icons/en_UK.gif differ diff --git a/plugins/language_switch/icons/es_AR.gif b/plugins/language_switch/icons/es_AR.gif new file mode 100644 index 000000000..677979bc5 Binary files /dev/null and b/plugins/language_switch/icons/es_AR.gif differ diff --git a/plugins/language_switch/icons/es_ES.gif b/plugins/language_switch/icons/es_ES.gif new file mode 100644 index 000000000..d0d5adbbb Binary files /dev/null and b/plugins/language_switch/icons/es_ES.gif differ diff --git a/plugins/language_switch/icons/fr_FR.gif b/plugins/language_switch/icons/fr_FR.gif new file mode 100644 index 000000000..9080a66bf Binary files /dev/null and b/plugins/language_switch/icons/fr_FR.gif differ diff --git a/plugins/language_switch/icons/hu_HU.gif b/plugins/language_switch/icons/hu_HU.gif new file mode 100644 index 000000000..4eb513589 Binary files /dev/null and b/plugins/language_switch/icons/hu_HU.gif differ diff --git a/plugins/language_switch/icons/it_IT.gif b/plugins/language_switch/icons/it_IT.gif new file mode 100644 index 000000000..0ee512d4c Binary files /dev/null and b/plugins/language_switch/icons/it_IT.gif differ diff --git a/plugins/language_switch/icons/nl_NL.gif b/plugins/language_switch/icons/nl_NL.gif new file mode 100644 index 000000000..520e994b7 Binary files /dev/null and b/plugins/language_switch/icons/nl_NL.gif differ diff --git a/plugins/language_switch/icons/pl_PL.gif b/plugins/language_switch/icons/pl_PL.gif new file mode 100644 index 000000000..66f140606 Binary files /dev/null and b/plugins/language_switch/icons/pl_PL.gif differ diff --git a/plugins/language_switch/index.htm b/plugins/language_switch/index.htm new file mode 100644 index 000000000..e69de29bb diff --git a/plugins/language_switch/language_switch.inc.php b/plugins/language_switch/language_switch.inc.php new file mode 100644 index 000000000..5ae57956f --- /dev/null +++ b/plugins/language_switch/language_switch.inc.php @@ -0,0 +1,106 @@ + $displayname ) +{ + $qlc_url = add_url_params( make_index_url(), array( 'lang' => $code ) ); + $qlc_alt = ucwords( $displayname ); + $qlc_title = $qlc_alt; + $qlc_img = PHPWG_PLUGINS_PATH.'language_switch/icons/' + . $code . '.gif'; + // echo $code . ' '. $qlc_url .' //
'; + // echo $user['language'] . ' '. $qlc_img .' ///
'; + + if ( $code !== $user['language'] and file_exists($qlc_img) ) + { + $template -> concat_var( 'PLUGIN_INDEX_ACTIONS', + '
  • '
+      . $qlc_alt . '
  • '); + } +} +} +?> \ No newline at end of file diff --git a/plugins/language_switch/main.inc.php b/plugins/language_switch/main.inc.php new file mode 100644 index 000000000..8be206563 --- /dev/null +++ b/plugins/language_switch/main.inc.php @@ -0,0 +1,36 @@ + \ No newline at end of file -- cgit v1.2.3