Plugin Directory

Changeset 2635105


Ignore:
Timestamp:
11/25/2021 12:00:50 AM (4 years ago)
Author:
haitham22
Message:

add Arabic language

Location:
raccoon-platform/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • raccoon-platform/trunk/Raccoon-platform.php

    r2633868 r2635105  
    88 * Plugin URI: https://raccoonplatform.com
    99 * Description: More informed customers reflect more sales. Here are the features you get from using Raccoon.
    10 <<<<<<< .mine
    11  * Version: 4.3.0
    12 ||||||| .r2633843
    13  * Version: 3.3.1
    14 =======
    15  * Version: 4.2.0
    16 >>>>>>> .r2633867
     10 * Version: 4.4.0
    1711 * License: GPLv2 or Later
    1812 * Text Domain: Raccoon-Platform
     
    9387/* End Remove Output WooCommerce Related Items */
    9488
    95 /* Start view Related items */
    96 
    97 //add_action('init', 'remove_woo_relate_products', 10);
    98 //    add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_product', 20);
    99 //    function woocommerce_output_related_product()
    100 //    {
    101 //        require_once plugin_dir_path (__FILE__) .'template_1/template_related.php';
    102 //    }
    103 
    104 /* End view Related items */
    105 
    106 
    10789/* Start shortcode Popular view items */
    10890add_shortcode('popularView', 'popularItemsView');
    109 function popularItemsView() {
     91function popularItemsView()
     92{
    11093    global $item_number;
    11194    $myobj = new RaccoonPopularItems();
    11295    $productsView = $myobj->viewPopularView();
    113     if($productsView){
    114         $atts =  "[products ids='".implode(',',$productsView)."' limit='$item_number'  columns='4']";
    115         $title = '<h3 style="color: #999999">Most viewed Items </h3>';
    116         return do_shortcode( $title.$atts);
     96    if ($productsView) {
     97        $atts = "[products ids='" . implode(',', $productsView) . "' limit='$item_number'  columns='4']";
     98        if (get_locale() == 'ar') {
     99            $title = '<h3 style="color: #999999">المنتجات الاكثر مشاهدة</h3>';
     100        } else {
     101            $title = '<h3 style="color: #999999">Most viewed Products </h3>';
     102        }
     103        return do_shortcode($title . $atts);
    117104    }
    118105}
     
    123110function popularItemsAtc() {
    124111    global $item_number;
     112
    125113    $myobj = new RaccoonPopularItems();
    126114    $productsAtc = $myobj->viewPopularAtc();
    127     if($productsAtc){
    128         $atts =  "[products ids='".implode(',',$productsAtc)."' limit='$item_number'  columns='4']";
    129         $title = '<h3 style="color: #999999">Most Purchased Items </h3>';
    130         return do_shortcode( $title.$atts);
     115    if($productsAtc) {
     116        $atts = "[products ids='" . implode(',', $productsAtc) . "' limit='$item_number'  columns='4']";
     117        if (get_locale() == 'ar') {
     118            $title = '<h3 style="color: #999999">معظم المنتجات التى تم شرائها</h3>';
     119        } else {
     120            $title = '<h3 style="color: #999999">Most Purchased Products </h3>';
     121        }
     122        return do_shortcode($title . $atts);
    131123    }
    132124}
     
    139131{
    140132    global $item_number;
     133    global $locale, $wp_local_package;
    141134    $myobj = new RaccoonSessionBased;
    142135    $product_recommended = $myobj->viewSession();
    143     if ($product_recommended){
     136    if ($product_recommended) {
    144137        $atts = "[products ids='" . implode(',', $product_recommended) . "' limit='$item_number' columns='4']";
    145         $title = '<h3 style="color: #999999">You Might Also Like </h3>';
     138        if (get_locale() == 'ar') {
     139            $title = '<h3 style="color: #999999">قد يعجبك ايضا </h3>';
     140        }else{
     141            $title = '<h3 style="color: #999999">You Might Also Like </h3>';
     142        }
    146143        return do_shortcode($title . $atts);
     144
    147145    }
    148146}
  • raccoon-platform/trunk/Readme.txt

    r2633868 r2635105  
    66Tested up to: 5.7.2
    77<<<<<<< .mine
    8 Stable tag: 4.3.0
    9 ||||||| .r2633843
    10 Stable tag: 3.3.1
    11 =======
    12 Stable tag: 4.2.0
    13 >>>>>>> .r2633867
     8Stable tag: 4.4.0
    149Requires PHP: 7.0
    1510License: GPLv3 or later
Note: See TracChangeset for help on using the changeset viewer.