Beispiel #1
0
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
JalangHelperContent::registerAdapter(__FILE__, 'banners', 2, JText::_('BANNERS'), JText::_('BANNERS'));
class JalangHelperContentBanners extends JalangHelperContent
{
    public function __construct($config = array())
    {
        $this->table = 'banners';
        $this->edit_context = 'com_banners.edit.banner';
        $this->associate_context = 'com_banners.item';
        $this->alias_field = 'alias';
        $this->translate_fields = array('name', 'description');
        $this->reference_fields = array('catid' => 'categories');
        $this->title_field = 'name';
        $this->fixed_fields = array();
        parent::__construct($config);
    }
    public function getEditLink($id)
    {
        if ($this->checkout($id)) {
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_virtuemart/models/category.php')) {
    //Register if K2 is installed
    JalangHelperContent::registerAdapter(__FILE__, 'virtuemart_vendors', 3, JText::_('VIRTUEMART_VENDORS'), JText::_('VIRTUEMART_VENDORS'));
    class JalangHelperContentVirtuemartVendors extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table_type = 'table';
            $this->table = 'virtuemart_vendors';
            $this->primarykey = 'virtuemart_vendor_id';
            $this->edit_context = 'virtuemart.edit.category';
            $this->associate_context = 'virtuemart.category';
            $this->translate_fields = array('vendor_store_desc', 'vendor_terms_of_service', 'vendor_legal_info', 'vendor_store_name', 'metakey', 'metadesc');
            $this->translate_filters = array();
            $this->alias_field = '';
            $this->title_field = 'vendor_store_name';
            parent::__construct($config);
        }
Beispiel #3
0
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
JalangHelperContent::registerAdapter(__FILE__, 'modules', 100, JText::_('MODULES'), JText::_('MODULES'));
class JalangHelperContentModules extends JalangHelperContent
{
    public function __construct($config = array())
    {
        $this->table = 'modules';
        $this->edit_context = 'com_modules.edit.module';
        $this->associate_context = 'com_modules.module';
        $this->translate_fields = array('title', 'content');
        $this->translate_filters = array('`client_id`=0');
        $this->reference_tables = array('menu');
        parent::__construct($config);
    }
    public function getEditLink($id)
    {
        if ($this->checkout($id)) {
            return 'index.php?option=com_modules&view=module&layout=edit&id=' . $id;
        }
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_virtuemart/models/category.php')) {
    //Register if K2 is installed
    JalangHelperContent::registerAdapter(__FILE__, 'virtuemart_manufacturercategories', 3, JText::_('VIRTUEMART_MANUFACTURER_CATEGORY'), JText::_('VIRTUEMART_MANUFACTURER_CATEGORY'));
    class JalangHelperContentVirtuemartManufacturercategories extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table_type = 'table';
            $this->table = 'virtuemart_manufacturercategories';
            $this->primarykey = 'virtuemart_manufacturercategories_id';
            $this->edit_context = 'virtuemart.edit.manufacturercategories';
            $this->associate_context = 'virtuemart.manufacturercategories';
            $this->translate_fields = array('mf_category_name', 'mf_category_desc');
            $this->translate_filters = array();
            $this->alias_field = '';
            $this->title_field = 'mf_category_name';
            parent::__construct($config);
        }
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
JalangHelperContent::registerAdapter(__FILE__, 'categories', 1, JText::_('CONTENT_CATEGORIES'), JText::_('CONTENT_CATEGORIES'));
class JalangHelperContentCategories extends JalangHelperContent
{
    public function __construct($config = array())
    {
        $this->table = 'categories';
        $this->edit_context = 'com_categories.edit.category';
        $this->associate_context = 'com_categories.item';
        $this->alias_field = 'alias';
        $this->translate_fields = array('title', 'description', 'metakey', 'metadesc');
        $this->translate_filters = array('`id` <> 1');
        $this->fixed_fields = array('asset_id' => 0, 'version' => 1);
        $this->nested_field = 'parent_id';
        $this->nested_value = 1;
        parent::__construct($config);
    }
    public function getEditLink($id)
    {
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_mijoshop/mijoshop.php')) {
    //Register if Mijoshop is installed
    JalangHelperContent::registerAdapter(__FILE__, 'mijoshop_download_description', 3, JText::_('MIJOSHOP_DOWNLOAD'), JText::_('MIJOSHOP_DOWNLOAD'));
    class JalangHelperContentMijoshopDownloadDescription extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table_type = 'table_ml';
            $this->language_field = 'language_id';
            $this->language_mode = 'id';
            $this->table = 'mijoshop_download_description';
            $this->primarykey = 'download_id';
            $this->edit_context = 'mijoshop.edit.download';
            $this->associate_context = 'mijoshop.download';
            $this->translate_fields = array('name');
            $this->translate_filters = array();
            $this->alias_field = '';
            $this->title_field = 'name';
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_virtuemart/models/category.php')) {
    //Register if K2 is installed
    JalangHelperContent::registerAdapter(__FILE__, 'virtuemart_categories', 3, JText::_('VIRTUEMART_CATEGORY'), JText::_('VIRTUEMART_CATEGORY'));
    class JalangHelperContentVirtuemartCategories extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table_type = 'table';
            $this->table = 'virtuemart_categories';
            $this->primarykey = 'virtuemart_category_id';
            $this->edit_context = 'virtuemart.edit.category';
            $this->associate_context = 'virtuemart.category';
            $this->translate_fields = array('category_name', 'category_description', 'metakey', 'metadesc');
            $this->translate_filters = array();
            $this->alias_field = '';
            $this->title_field = 'category_name';
            parent::__construct($config);
        }
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_mijoshop/mijoshop.php')) {
    //Register if Mijoshop is installed
    JalangHelperContent::registerAdapter(__FILE__, 'mijoshop_filter_description', 3, JText::_('MIJOSHOP_FILTER'), JText::_('MIJOSHOP_FILTER'));
    class JalangHelperContentMijoshopFilterDescription extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table_type = 'table_ml';
            $this->language_field = 'language_id';
            $this->language_mode = 'id';
            $this->table = 'mijoshop_filter_description';
            $this->primarykey = 'filter_id';
            $this->edit_context = 'mijoshop.edit.filter';
            $this->associate_context = 'mijoshop.filter';
            $this->translate_fields = array('name');
            $this->translate_filters = array();
            $this->alias_field = '';
            $this->title_field = 'name';
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_mijoshop/mijoshop.php')) {
    //Register if Mijoshop is installed
    JalangHelperContent::registerAdapter(__FILE__, 'mijoshop_banner_image_description', 3, JText::_('MIJOSHOP_BANNER_IMAGE'), JText::_('MIJOSHOP_BANNER_IMAGE'));
    class JalangHelperContentMijoshopBannerImageDescription extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table_type = 'table_ml';
            $this->language_field = 'language_id';
            $this->language_mode = 'id';
            $this->table = 'mijoshop_banner_image_description';
            $this->primarykey = 'banner_image_id';
            $this->edit_context = 'mijoshop.edit.banner_image';
            $this->associate_context = 'mijoshop.banner_image';
            $this->translate_fields = array('title');
            $this->translate_filters = array();
            $this->alias_field = '';
            $this->title_field = 'title';
Beispiel #10
0
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_k2/models/items.php')) {
    //Register if K2 is installed
    JalangHelperContent::registerAdapter(__FILE__, 'k2_items', 4, JText::_('K2_ITEMS'), JText::_('K2_ITEMS'));
    //require_once( JPATH_ADMINISTRATOR . '/components/com_k2/models/items.php' );
    jimport('joomla.filesystem.file');
    class JalangHelperContentK2Items extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table = 'k2_items';
            $this->edit_context = 'com_k2.edit.item';
            $this->associate_context = 'com_k2.item';
            $this->alias_field = 'alias';
            $this->translate_fields = array('title', 'introtext', 'fulltext', 'metakey', 'metadesc');
            $this->reference_fields = array('catid' => 'k2_categories');
            $this->translate_filters = array('trash <> 1');
            parent::__construct($config);
        }
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_mijoshop/mijoshop.php')) {
    //Register if Mijoshop is installed
    JalangHelperContent::registerAdapter(__FILE__, 'mijoshop_voucher_theme_description', 3, JText::_('MIJOSHOP_VOUCHER_THEME'), JText::_('MIJOSHOP_VOUCHER_THEME'));
    class JalangHelperContentMijoshopVoucherThemeDescription extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table_type = 'table_ml';
            $this->language_field = 'language_id';
            $this->language_mode = 'id';
            $this->table = 'mijoshop_voucher_theme_description';
            $this->primarykey = 'voucher_theme_id';
            $this->edit_context = 'mijoshop.edit.voucher_theme';
            $this->associate_context = 'mijoshop.voucher_theme';
            $this->translate_fields = array('name');
            $this->translate_filters = array();
            $this->alias_field = '';
            $this->title_field = 'name';
Beispiel #12
0
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
JalangHelperContent::registerAdapter(__FILE__, 'menu_types', 9, JText::_('MENU_TYPES'), JText::_('MENU_TYPES'));
class JalangHelperContentMenuTypes extends JalangHelperContent
{
    public function __construct($config = array())
    {
        $this->table_type = 'alias';
        $this->table = 'menu_types';
        $this->alias_field = 'menutype';
        $this->edit_context = 'com_menus.edit.menu';
        $this->associate_context = 'menu_types.item';
        $this->translate_filters = array("`menutype` <> 'default-all'");
        $this->translate_fields = array('title', 'description');
        parent::__construct($config);
    }
    public function getEditLink($id)
    {
        return 'index.php?option=com_menus&view=menu&layout=edit&id=' . $id;
    }
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_mijoshop/mijoshop.php')) {
    //Register if Mijoshop is installed
    JalangHelperContent::registerAdapter(__FILE__, 'mijoshop_weight_class_description', 3, JText::_('MIJOSHOP_WEIGHT_CLASS'), JText::_('MIJOSHOP_WEIGHT_CLASS'));
    class JalangHelperContentMijoshopWeightClassDescription extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table_type = 'table_ml';
            $this->language_field = 'language_id';
            $this->language_mode = 'id';
            $this->table = 'mijoshop_weight_class_description';
            $this->primarykey = 'weight_class_id';
            $this->edit_context = 'mijoshop.edit.weight_class';
            $this->associate_context = 'mijoshop.weight_class';
            $this->translate_fields = array('title', 'unit');
            $this->translate_filters = array();
            $this->alias_field = '';
            $this->title_field = 'title';
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_virtuemart/models/category.php')) {
    //Register if K2 is installed
    JalangHelperContent::registerAdapter(__FILE__, 'virtuemart_products', 5, JText::_('VIRTUEMART_PRODUCTS'), JText::_('VIRTUEMART_PRODUCTS'));
    class JalangHelperContentVirtuemartProducts extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table_type = 'table';
            $this->table = 'virtuemart_products';
            $this->primarykey = 'virtuemart_product_id';
            $this->edit_context = 'virtuemart.edit.products';
            $this->associate_context = 'virtuemart.products';
            $this->translate_fields = array('product_s_desc', 'product_desc', 'product_name', 'metakey', 'metadesc');
            $this->translate_filters = array();
            $this->alias_field = '';
            $this->title_field = 'product_name';
            parent::__construct($config);
        }
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_k2/models/categories.php')) {
    //Register if K2 is installed
    JalangHelperContent::registerAdapter(__FILE__, 'k2_categories', 3, JText::_('K2_CATEGORIES'), JText::_('K2_CATEGORIES'));
    //require_once( JPATH_ADMINISTRATOR . '/components/com_k2/models/categories.php' );
    class JalangHelperContentK2Categories extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table = 'k2_categories';
            $this->edit_context = 'com_k2.edit.category';
            $this->associate_context = 'com_k2.category';
            $this->translate_fields = array('name', 'description');
            $this->translate_filters = array('trash <> 1');
            $this->alias_field = 'alias';
            $this->nested_field = 'parent';
            $this->nested_value = 0;
            $this->title_field = 'name';
            parent::__construct($config);
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_mijoshop/mijoshop.php')) {
    //Register if Mijoshop is installed
    JalangHelperContent::registerAdapter(__FILE__, 'mijoshop_customer_group_description', 3, JText::_('MIJOSHOP_CUSTOMER_GROUP'), JText::_('MIJOSHOP_CUSTOMER_GROUP'));
    class JalangHelperContentMijoshopCustomerGroupDescription extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table_type = 'table_ml';
            $this->language_field = 'language_id';
            $this->language_mode = 'id';
            $this->table = 'mijoshop_customer_group_description';
            $this->primarykey = 'customer_group_id';
            $this->edit_context = 'mijoshop.edit.customer_group';
            $this->associate_context = 'mijoshop.customer_group';
            $this->translate_fields = array('name', 'description');
            $this->translate_filters = array();
            $this->alias_field = '';
            $this->title_field = 'name';
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
JalangHelperContent::registerAdapter(__FILE__, 'contact_details', 2, JText::_('CONTACTS'), JText::_('CONTACTS'));
class JalangHelperContentContactDetails extends JalangHelperContent
{
    public function __construct($config = array())
    {
        $this->table = 'contact_details';
        $this->edit_context = 'com_contact.edit.contact';
        $this->associate_context = 'com_contact.item';
        $this->alias_field = 'alias';
        $this->translate_fields = array('name', 'con_position', 'address', 'suburb', 'state', 'country', 'misc', 'metakey', 'metadesc');
        $this->reference_fields = array('catid' => 'categories');
        $this->title_field = 'name';
        $this->fixed_fields = array();
        parent::__construct($config);
    }
    public function getEditLink($id)
    {
        if ($this->checkout($id)) {
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_mijoshop/mijoshop.php')) {
    //Register if Mijoshop is installed
    JalangHelperContent::registerAdapter(__FILE__, 'mijoshop_category_description', 3, JText::_('MIJOSHOP_CATEGORY'), JText::_('MIJOSHOP_CATEGORY'));
    class JalangHelperContentMijoshopCategoryDescription extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table_type = 'table_ml';
            $this->language_field = 'language_id';
            $this->language_mode = 'id';
            $this->table = 'mijoshop_category_description';
            $this->primarykey = 'category_id';
            $this->edit_context = 'mijoshop.edit.category';
            $this->associate_context = 'mijoshop.category';
            $this->translate_fields = array('name', 'description', 'meta_description', 'meta_keyword');
            $this->translate_filters = array();
            $this->alias_field = '';
            $this->title_field = 'name';
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_easyblog/models/blogs.php')) {
    //Register if K2 is installed
    JalangHelperContent::registerAdapter(__FILE__, 'easyblog_post', 4, JText::_('EASYBLOG_ENTRIES'), JText::_('EASYBLOG_ENTRIES'));
    //require_once( JPATH_ADMINISTRATOR . '/components/com_easyblog/models/blogs.php' );
    jimport('joomla.filesystem.file');
    class JalangHelperContentEasyblogPost extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table = 'easyblog_post';
            $this->edit_context = 'com_easyblog.edit.item';
            $this->associate_context = 'com_easyblog.item';
            $this->alias_field = 'permalink';
            $this->translate_fields = array('title', 'content', 'intro', 'excerpt');
            /**
             * @TODO anable reference field to category when translate easyblog category task is enabled
             */
            //$this->reference_fields = array('category_id'=>'easyblog_category');
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_virtuemart/models/category.php')) {
    //Register if K2 is installed
    JalangHelperContent::registerAdapter(__FILE__, 'virtuemart_shipmentmethods', 4, JText::_('VIRTUEMART_SHIPMENT_METHODS'), JText::_('VIRTUEMART_SHIPMENT_METHODS'));
    class JalangHelperContentVirtuemartShipmentmethods extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table_type = 'table';
            $this->table = 'virtuemart_shipmentmethods';
            $this->primarykey = 'virtuemart_shipmentmethod_id';
            $this->edit_context = 'virtuemart.edit.category';
            $this->associate_context = 'virtuemart.category';
            $this->translate_fields = array('shipment_name', 'shipment_desc');
            $this->translate_filters = array();
            $this->alias_field = '';
            $this->title_field = 'shipment_name';
            parent::__construct($config);
        }
Beispiel #21
0
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
$version = new JVersion();
if (version_compare($version->getShortVersion(), '3.4.0', 'lt')) {
    JalangHelperContent::registerAdapter(__FILE__, 'weblinks', 2, JText::_('WEB_LINKS'), JText::_('WEB_LINKS'));
}
class JalangHelperContentWeblinks extends JalangHelperContent
{
    public function __construct($config = array())
    {
        $this->table = 'weblinks';
        $this->edit_context = 'com_weblinks.edit.weblink';
        $this->associate_context = 'com_weblinks.item';
        $this->alias_field = 'alias';
        $this->translate_fields = array('title', 'description', 'metakey', 'metadesc');
        $this->reference_fields = array('catid' => 'categories');
        $this->title_field = 'title';
        $this->fixed_fields = array();
        parent::__construct($config);
    }
Beispiel #22
0
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
JalangHelperContent::registerAdapter(__FILE__, 'menu', 10, JText::_('MENUS'), JText::_('MENUS'));
class JalangHelperContentMenu extends JalangHelperContent
{
    public function __construct($config = array())
    {
        $this->table = 'menu';
        $this->edit_context = 'com_menus.edit.item';
        $this->associate_context = 'com_menus.item';
        $this->alias_field = 'alias';
        $this->translate_filters = array('`id`<>1', '`client_id`=0', "`menutype` <> 'default-all'");
        $this->translate_fields = array('title');
        //$this->reference_fields = array('menutype'=>'menu_types');
        $this->reference_tables = array('menu_types');
        $this->nested_field = 'parent_id';
        $this->nested_value = 1;
        parent::__construct($config);
    }
    public function getEditLink($id)
Beispiel #23
0
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
JalangHelperContent::registerAdapter(__FILE__, 'newsfeeds', 2, JText::_('NEWS_FEEDS'), JText::_('NEWS_FEEDS'));
class JalangHelperContentNewsfeeds extends JalangHelperContent
{
    public function __construct($config = array())
    {
        $this->table = 'newsfeeds';
        $this->edit_context = 'com_newsfeeds.edit.newsfeed';
        $this->associate_context = 'com_newsfeeds.item';
        $this->alias_field = 'alias';
        $this->translate_fields = array('name', 'metakey', 'metadesc');
        $this->reference_fields = array('catid' => 'categories');
        $this->title_field = 'name';
        $this->fixed_fields = array();
        parent::__construct($config);
    }
    public function getEditLink($id)
    {
        if ($this->checkout($id)) {
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_mijoshop/mijoshop.php')) {
    //Register if Mijoshop is installed
    JalangHelperContent::registerAdapter(__FILE__, 'mijoshop_information_description', 3, JText::_('MIJOSHOP_INFORMATION'), JText::_('MIJOSHOP_INFORMATION'));
    class JalangHelperContentMijoshopInformationDescription extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table_type = 'table_ml';
            $this->language_field = 'language_id';
            $this->language_mode = 'id';
            $this->table = 'mijoshop_information_description';
            $this->primarykey = 'information_id';
            $this->edit_context = 'mijoshop.edit.information';
            $this->associate_context = 'mijoshop.information';
            $this->translate_fields = array('title', 'description');
            $this->translate_filters = array();
            $this->alias_field = '';
            $this->title_field = 'title';
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_mijoshop/mijoshop.php')) {
    //Register if Mijoshop is installed
    JalangHelperContent::registerAdapter(__FILE__, 'mijoshop_length_class_description', 3, JText::_('MIJOSHOP_LENGTH_CLASS'), JText::_('MIJOSHOP_LENGTH_CLASS'));
    class JalangHelperContentMijoshopLengthClassDescription extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table_type = 'table_ml';
            $this->language_field = 'language_id';
            $this->language_mode = 'id';
            $this->table = 'mijoshop_length_class_description';
            $this->primarykey = 'length_class_id';
            $this->edit_context = 'mijoshop.edit.length_class';
            $this->associate_context = 'mijoshop.length_class';
            $this->translate_fields = array('title', 'unit');
            $this->translate_filters = array();
            $this->alias_field = '';
            $this->title_field = 'title';
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_mijoshop/mijoshop.php')) {
    //Register if Mijoshop is installed
    JalangHelperContent::registerAdapter(__FILE__, 'mijoshop_attribute_group_description', 3, JText::_('MIJOSHOP_ATTRIBUTE_GROUP'), JText::_('MIJOSHOP_ATTRIBUTE_GROUP'));
    class JalangHelperContentMijoshopAttributeGroupDescription extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table_type = 'table_ml';
            $this->language_field = 'language_id';
            $this->language_mode = 'id';
            $this->table = 'mijoshop_attribute_group_description';
            $this->primarykey = 'attribute_group_id';
            $this->edit_context = 'mijoshop.edit.attribute_group';
            $this->associate_context = 'mijoshop.attribute_group';
            $this->translate_fields = array('name');
            $this->translate_filters = array();
            $this->alias_field = '';
            $this->title_field = 'name';
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_mijoshop/mijoshop.php')) {
    //Register if Mijoshop is installed
    JalangHelperContent::registerAdapter(__FILE__, 'mijoshop_product_description', 5, JText::_('MIJOSHOP_PRODUCT'), JText::_('MIJOSHOP_PRODUCT'));
    class JalangHelperContentMijoshopProductDescription extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table_type = 'table_ml';
            $this->language_field = 'language_id';
            $this->language_mode = 'id';
            $this->table = 'mijoshop_product_description';
            $this->primarykey = 'product_id';
            $this->edit_context = 'mijoshop.edit.product';
            $this->associate_context = 'mijoshop.product';
            $this->translate_fields = array('name', 'description', 'meta_description', 'meta_keyword', 'tag');
            $this->translate_filters = array();
            $this->alias_field = '';
            $this->title_field = 'name';
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_mijoshop/mijoshop.php')) {
    //Register if Mijoshop is installed
    JalangHelperContent::registerAdapter(__FILE__, 'mijoshop_option_description', 3, JText::_('MIJOSHOP_OPTION'), JText::_('MIJOSHOP_OPTION'));
    class JalangHelperContentMijoshopOptionDescription extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table_type = 'table_ml';
            $this->language_field = 'language_id';
            $this->language_mode = 'id';
            $this->table = 'mijoshop_option_description';
            $this->primarykey = 'option_id';
            $this->edit_context = 'mijoshop.edit.option';
            $this->associate_context = 'mijoshop.option';
            $this->translate_fields = array('name');
            $this->translate_filters = array();
            $this->alias_field = '';
            $this->title_field = 'name';
<?php

/**
 * ------------------------------------------------------------------------
 * JA Multilingual Component for Joomla 2.5 & 3.4
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */
defined('_JEXEC') or die;
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_virtuemart/models/category.php')) {
    //Register if K2 is installed
    JalangHelperContent::registerAdapter(__FILE__, 'virtuemart_manufacturers', 4, JText::_('VIRTUEMART_MANUFACTURERS'), JText::_('VIRTUEMART_MANUFACTURERS'));
    class JalangHelperContentVirtuemartManufacturers extends JalangHelperContent
    {
        public function __construct($config = array())
        {
            $this->table_type = 'table';
            $this->table = 'virtuemart_manufacturers';
            $this->primarykey = 'virtuemart_manufacturer_id';
            $this->edit_context = 'virtuemart.edit.manufacturers';
            $this->associate_context = 'virtuemart.manufacturers';
            $this->translate_fields = array('mf_name', 'mf_desc');
            $this->translate_filters = array();
            $this->alias_field = '';
            $this->title_field = 'mf_name';
            parent::__construct($config);
        }