1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +02:00

Tagwords - better multi-language handling

This commit is contained in:
secretr
2009-10-09 15:07:44 +00:00
parent 1050c3b94e
commit a8e3505b21
4 changed files with 7 additions and 5 deletions

View File

@@ -63,4 +63,6 @@ define("LAN_TAG_OPT_26", "display");
define("LAN_TAG_MENU_1", "view complete tagwords cloud"); define("LAN_TAG_MENU_1", "view complete tagwords cloud");
define("LAN_TAG_MENU_2", "Tagwords"); define("LAN_TAG_MENU_2", "Tagwords");
define("LAN_TAG_CORE_NEWS_1", "News");
define("LAN_TAG_CORE_CPAGES_1", "Pages");
?> ?>

View File

@@ -13,7 +13,7 @@ class e_tagwords_news
$this->settings['plugin'] = ""; $this->settings['plugin'] = "";
$this->settings['table'] = "news"; $this->settings['table'] = "news";
$this->settings['db_id'] = "news_id"; $this->settings['db_id'] = "news_id";
$this->settings['caption'] = "news"; $this->settings['caption'] = "LAN_TAG_CORE_NEWS_1";
} }
function getLink($id) function getLink($id)

View File

@@ -13,7 +13,7 @@ class e_tagwords_page
$this->settings['plugin'] = ""; $this->settings['plugin'] = "";
$this->settings['table'] = "page"; $this->settings['table'] = "page";
$this->settings['db_id'] = "page_id"; $this->settings['db_id'] = "page_id";
$this->settings['caption'] = "page"; $this->settings['caption'] = "LAN_TAG_CORE_CPAGES_1";
} }
function getLink($id) function getLink($id)

View File

@@ -9,8 +9,8 @@
* Tagwords Shortcodes * Tagwords Shortcodes
* *
* $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/tagwords_shortcodes.php,v $ * $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/tagwords_shortcodes.php,v $
* $Revision: 1.7 $ * $Revision: 1.8 $
* $Date: 2009-09-25 20:13:12 $ * $Date: 2009-10-09 15:07:44 $
* $Author: secretr $ * $Author: secretr $
* *
*/ */
@@ -99,7 +99,7 @@ class tagwords_shortcodes
function sc_tag_area_heading() function sc_tag_area_heading()
{ {
global $tag; global $tag;
return varsettrue($tag->area->settings['caption']); return (varsettrue($tag->area->settings['caption']) ? defset($tag->area->settings['caption'], $tag->area->settings['caption']) : '');
} }
function sc_tag_link($parm, $sc_mode) function sc_tag_link($parm, $sc_mode)