Plugin Directory

Changeset 1027326


Ignore:
Timestamp:
11/17/2014 02:56:30 PM (11 years ago)
Author:
pricemesh
Message:

translation and internationalization

Location:
pricemesh/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • pricemesh/trunk/admin/pricemesh-admin.php

    r1001204 r1027326  
    147147
    148148        $this->plugin_screen_hook_suffix = add_options_page(
    149             __('Pricemesh Einstellungen', $this->plugin_slug),
     149            __('Pricemesh Settings', $this->plugin_slug),
    150150            __('Pricemesh', $this->plugin_slug),
    151151            'manage_options',
     
    169169        //-----------------------------------------------------------------
    170170        $section = "pricemesh_section_auth";
    171         $section_name = "Token & Secret";
     171        $section_name = __("Token & Secret", $this->plugin_slug);
    172172        $section_callback = "settings_section_auth_callback";
    173173        add_settings_section(
    174             $section, __($section_name, $this->plugin_slug), array($this, $section_callback),$this->plugin_slug
     174            $section, $section_name, array($this, $section_callback),$this->plugin_slug
    175175        );
    176176
    177177        //token
    178178        $option = "pricemesh_option_token";
    179         $option_name = "Token";
     179        $option_name = __("Token", $this->plugin_slug);
    180180        $option_callback = "settings_auth_token_callback";
    181181        add_settings_field(
    182             $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section
     182            $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section
    183183        );
    184184        register_setting($group, $option);
     
    187187        //secret
    188188        $option = "pricemesh_option_secret";
    189         $option_name = "Secret Key";
     189        $option_name = __("Secret Key", $this->plugin_slug);
    190190        $option_callback = "settings_auth_secret_callback";
    191191        add_settings_field(
    192             $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section
     192            $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section
    193193        );
    194194        register_setting($group, $option);
     
    199199        //-----------------------------------------------------------------
    200200        $section = "pricemesh_section_basic";
    201         $section_name = "Grundeinstellungen";
     201        $section_name = __("Base Settings", $this->plugin_slug);
    202202        $section_callback = "settings_section_basic_callback";
    203203        add_settings_section(
    204             $section, __($section_name, $this->plugin_slug), array($this, $section_callback),$this->plugin_slug
     204            $section, $section_name, array($this, $section_callback),$this->plugin_slug
    205205        );
    206206
    207207        //country
    208208        $option = "pricemesh_option_country";
    209         $option_name = "Land";
     209        $option_name = __("Country", $this->plugin_slug);
    210210        $option_callback = "settings_basic_country_callback";
    211211        add_settings_field(
    212             $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section
     212            $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section
    213213        );
    214214        register_setting($group, $option);
     
    216216        //debug
    217217        $option = "pricemesh_option_debug";
    218         $option_name = "Hinweise und Warnungen";
     218        $option_name = __("Errors and Warnings", $this->plugin_slug);
    219219        $option_callback = "settings_basic_debug_callback";
    220220        add_settings_field(
    221             $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section
     221            $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section
    222222        );
    223223        register_setting($group, $option);
     
    227227        //-----------------------------------------------------------------
    228228        $section = "pricemesh_section_styling";
    229         $section_name = "Design";
     229        $section_name = __("Design", $this->plugin_slug);
    230230        $section_callback = "settings_section_styling_callback";
    231231        add_settings_section(
    232             $section, __($section_name, $this->plugin_slug), array($this, $section_callback),$this->plugin_slug
     232            $section, $section_name, array($this, $section_callback),$this->plugin_slug
    233233        );
    234234
    235235        //theme
    236236        $option = "pricemesh_option_theme";
    237         $option_name = "Theme (Pro)";
     237        $option_name = __("Theme (Pro)", $this->plugin_slug);
    238238        $option_callback = "settings_styling_theme_callback";
    239239        add_settings_field(
    240             $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section
     240            $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section
    241241        );
    242242        register_setting($group, $option);
     
    244244        //stylesheet
    245245        $option = "pricemesh_option_stylesheet";
    246         $option_name = "Stylesheet (Pro)";
     246        $option_name = __("Stylesheet (Pro)", $this->plugin_slug);
    247247        $option_callback = "settings_styling_stylesheet_callback";
    248248        add_settings_field(
    249             $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section
     249            $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section
    250250        );
    251251        register_setting($group, $option);
     
    255255        //-----------------------------------------------------------------
    256256        $section = "pricemesh_section_config";
    257         $section_name = "Konfiguration";
     257        $section_name = __("Configuration", $this->plugin_slug);
    258258        $section_callback = "settings_section_config_callback";
    259259        add_settings_section(
    260             $section, __($section_name, $this->plugin_slug), array($this, $section_callback),$this->plugin_slug
     260            $section, $section_name, array($this, $section_callback),$this->plugin_slug
    261261        );
    262262
    263263        //name
    264264        $option = "pricemesh_option_name";
    265         $option_name = "Titel (Pro)";
     265        $option_name = __("Title (Pro)", $this->plugin_slug);
    266266        $option_callback = "settings_config_name_callback";
    267267        add_settings_field(
    268             $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section
     268            $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section
    269269        );
    270270        register_setting($group, $option);
     
    272272        //initial_items
    273273        $option = "pricemesh_option_initial_items";
    274         $option_name = "Angezeigte Produkte";
     274        $option_name = __("Listed Products", $this->plugin_slug);
    275275        $option_callback = "settings_config_initial_items_callback";
    276276        add_settings_field(
    277             $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section
     277            $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section
    278278        );
    279279        register_setting($group, $option);
     
    281281        //disclaimer
    282282        $option = "pricemesh_option_disclaimer";
    283         $option_name = "Disclaimer";
     283        $option_name = __("Disclaimer", $this->plugin_slug);
    284284        $option_callback = "settings_config_disclaimer_callback";
    285285        add_settings_field(
    286             $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section
     286            $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section
    287287        );
    288288        register_setting($group, $option);
     
    290290        //stock
    291291        $option = "pricemesh_option_stock";
    292         $option_name = "Versandinfo";
     292        $option_name = __("Shipping", $this->plugin_slug);
    293293        $option_callback = "settings_config_stock_callback";
    294294        add_settings_field(
    295             $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section
     295            $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section
    296296        );
    297297        register_setting($group, $option);
     
    299299        //duplicates
    300300        $option = "pricemesh_option_duplicates";
    301         $option_name = "Duplikate filtern";
     301        $option_name = __("Duplicates", $this->plugin_slug);
    302302        $option_callback = "settings_config_duplicates_callback";
    303303        add_settings_field(
    304             $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section
     304            $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section
    305305        );
    306306        register_setting($group, $option);
     
    308308        //display
    309309        $option = "pricemesh_option_display";
    310         $option_name = "Anzeige";
     310        $option_name = __("Show Pricemesh", $this->plugin_slug);
    311311        $option_callback = "settings_config_display_callback";
    312312        add_settings_field(
    313             $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section
     313            $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section
    314314        );
    315315        register_setting($group, $option);
     
    317317        //title
    318318        $option = "pricemesh_option_title";
    319         $option_name = "Produktname";
     319        $option_name = __("Product Title", $this->plugin_slug);
    320320        $option_callback = "settings_config_title_callback";
    321321        add_settings_field(
    322             $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section
     322            $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section
    323323        );
    324324        register_setting($group, $option);
     
    326326        //title
    327327        $option = "pricemesh_option_link_all";
    328         $option_name = "Link auf Händler und Preis";
     328        $option_name = __("Link on Shop and Price", $this->plugin_slug);
    329329        $option_callback = "settings_config_link_all_callback";
    330330        add_settings_field(
    331             $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section
     331            $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section
    332332        );
    333333        register_setting($group, $option);
     
    339339        //-----------------------------------------------------------------
    340340        $section = "pricemesh_section_3rdparty";
    341         $section_name = "Third Party Integration";
     341        $section_name = __("Third Party Integration", $this->plugin_slug);
    342342        $section_callback = "settings_section_3rd_party_callback";
    343343        add_settings_section(
    344             $section, __($section_name, $this->plugin_slug), array($this, $section_callback),$this->plugin_slug
     344            $section, $section_name, array($this, $section_callback),$this->plugin_slug
    345345        );
    346346
     
    348348        //wp robot
    349349        $option = "pricemesh_option_wp_robot_integration";
    350         $option_name = "WP Robot";
     350        $option_name = __("WP Robot", $this->plugin_slug);
    351351        $option_callback = "settings_3rd_party_wp_robot_callback";
    352352        add_settings_field(
    353             $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section
     353            $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section
    354354        );
    355355        register_setting($group, $option);
     
    357357        //woocommerce
    358358        $option = "pricemesh_option_woocommerce_integration";
    359         $option_name = "WooCommerce";
     359        $option_name = __("WooCommerce", $this->plugin_slug);
    360360        $option_callback = "settings_3rd_party_woocommerce_callback";
    361361        add_settings_field(
    362             $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section
     362            $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section
    363363        );
    364364        register_setting($group, $option);
     
    366366        //custom post types
    367367        $option = "pricemesh_option_custom_post_types";
    368         $option_name = "Custom Post Types";
     368        $option_name = __("Custom Post Types", $this->plugin_slug);
    369369        $option_callback = "settings_3rd_party_custom_post_types_callback";
    370370        add_settings_field(
    371             $option, __($option_name, $this->plugin_slug), array($this, $option_callback), $this->plugin_slug, $section
     371            $option, $option_name, array($this, $option_callback), $this->plugin_slug, $section
    372372        );
    373373        register_setting($group, $option);
     
    380380     */
    381381    public function settings_section_auth_callback(){
    382         echo __("Erstellen Sie einen kostenlosen Account auf <a href='https://www.pricemesh.io' target='_blank'>pricemesh.io</a>".
    383              " und tragen Sie Ihr eigenes Token und den Secret Key ein, um Provisionen für Verkäufe zu erhalten und die".
    384              " Suchfunktion nutzen zu können", $this->plugin_slug);
     382        echo __("Create a account on <a href='https://www.pricemesh.io' target='_blank'>pricemesh.io</a>".
     383             " and add your own token and secret key to".
     384             " earn sales commission and to use the search function.", $this->plugin_slug);
    385385    }
    386386
     
    395395        echo "<input type='text' name='$name' id='$name' value='$setting' class='regular-text'/>";
    396396        if(strpos($setting, "demo") === 0){
    397             echo "<p class='description'>".__("Das Demo-Token ist voll funktionsfähig, es können damit jedoch keine Provisionen verdient werden.", $this->plugin_slug)."</p>";
     397            echo "<p class='description'>".__("You can't earn commission with the demo token.", $this->plugin_slug)."</p>";
    398398        }
    399399    }
     
    408408        echo "<input type='text' name='pricemesh_option_secret' value='$setting' class='regular-text'/>";
    409409        if(empty($setting)){
    410             echo "<p class='description'>".__("Um die Suchfunktion zu nutzen, tragen Sie bitte den Secret Key ein.", $this->plugin_slug)."</p>";
     410            echo "<p class='description'>".__("To use the search function, please add your secret key..", $this->plugin_slug)."</p>";
    411411        }
    412412    }
     
    427427        $opts = self::get_pricemesh_settings();
    428428        $setting = $opts["country"];
    429         $available_countries = array("de");
     429        $available_countries = array("de", "es","fr", "it", "us", "uk");
    430430
    431431        echo "<select name='pricemesh_option_country'>";
     
    446446        $opts = self::get_pricemesh_settings();
    447447        $setting = $opts["debug"];
    448         $options = array("on" => __("Anzeigen"), "off" => __("Nicht anzeigen"));
     448        $options = array("on" => __("Show", $this->plugin_slug), "off" => __("Hide", $this->plugin_slug));
    449449        foreach($options as $value => $string) {
    450450            if($setting == $value){
     
    465465        $opts = self::get_pricemesh_settings();
    466466        $setting = $opts["link_all"];
    467         $options = array("on" => __("An"), "off" => __("Aus"));
     467        $options = array("on" => __("On", $this->plugin_slug), "off" => __("Off", $this->plugin_slug));
    468468        foreach($options as $value => $string) {
    469469            if($setting == $value){
     
    513513        $opts = self::get_pricemesh_settings();
    514514        $setting = $opts["theme"];
    515         $options = array("basic" => __("Standard"), "dark" => __("Dark"));
     515        $options = array("basic" => __("Standard", $this->plugin_slug), "dark" => __("Dark", $this->plugin_slug));
    516516        //$options = array("basic" => __("Standard"));
    517517        foreach($options as $value => $string) {
     
    561561        $opts = self::get_pricemesh_settings();
    562562        $setting = $opts["disclaimer"];
    563         $options = array("off" => __("Nicht anzeigen"), "top" => __("Oberhalb des Preisvergleichs"), "bottom" => __("Unterhalb des Preisvergleichs"));
     563        $options = array("off" => __("Hide", $this->plugin_slug),
     564            "top" => __("Above", $this->plugin_slug),
     565            "bottom" => __("Below", $this->plugin_slug));
    564566        foreach($options as $value => $string) {
    565567            if($setting == $value){
     
    579581        $opts = self::get_pricemesh_settings();
    580582        $setting = $opts["stock"];
    581         $options = array("on" => __("Versandinfo anzeigen"), "off" => __("Versandinfo nicht anzeigen"));
     583        $options = array("on" => __("Show shipping", $this->plugin_slug),
     584            "off" => __("Hide shipping", $this->plugin_slug));
    582585        foreach($options as $value => $string) {
    583586            if($setting == $value){
     
    599602        $opts = self::get_pricemesh_settings();
    600603        $setting = $opts["duplicates"];
    601         $options = array("off" => _("Nicht filtern"), "all" => _("Alle Duplikate filtern (Händler darf nur einmal vorkommen)"), "same-price" => _("Bei gleichem Preis filtern (Händler darf nur einmal pro Preis vorkommen)"));
     604        $options = array("off" => __("No filter", $this->plugin_slug),
     605            "all" => __("Filter all duplicates (shop only once)", $this->plugin_slug),
     606            "same-price" => __("Filter on same price (one shop per price)", $this->plugin_slug));
    602607        foreach($options as $value => $string) {
    603608            if($setting == $value){
     
    618623        $opts = self::get_pricemesh_settings();
    619624        $setting = $opts["display"];
    620         $options = array("always" => __("Preisvergleich immer anzeigen"), "has-products" => __("Preisvergleich nur anzeigen, wenn Produkte gefunden werden"));
     625        $options = array("always" => __("Show always", $this->plugin_slug),
     626            "has-products" => __("Hide if no items are found", $this->plugin_slug));
    621627        foreach($options as $value => $string) {
    622628            if($setting == $value){
     
    636642        $opts = self::get_pricemesh_settings();
    637643        $setting = $opts["title"];
    638         $options = array("on" => __("Titel anzeigen"), "off" => __("Titel nicht anzeigen"));
     644        $options = array("on" => __("Show Title", $this->plugin_slug),
     645            "off" => __("Hide Title", $this->plugin_slug));
    639646        foreach($options as $value => $string) {
    640647            if($setting == $value){
     
    654661     */
    655662    public function settings_section_3rd_party_callback(){
    656         echo __("Pricemesh kann auf andere Plugins zugreifen und zusätzliche Funktionen freischalten.", $this->plugin_slug);
     663        echo __("Pricemesh can access other plugins to add functionality.", $this->plugin_slug);
    657664    }
    658665
     
    669676            echo "<p class='description'>".
    670677                    "<input name='pricemesh_option_wp_robot_integration' type='checkbox' value='1' $checked/>".
    671                     " ".__("Fügt automatisch importierte ASINs zu dem aktuellen Post hinzu.", $this->plugin_slug).
     678                    " ".__("Adds imported ASINs to the article.", $this->plugin_slug).
    672679                 "</p>";
    673680        }else{
    674681            //echo "<input name='pricemesh_option_wp_robot_integration' type='checkbox' value='1' disabled/>";
    675             echo "<p class='description'>".__("WPRobot ist nicht installiert", $this->plugin_slug)."</p>";
     682            echo "<p class='description'>".__("WPRobot is not installed", $this->plugin_slug)."</p>";
    676683        }
    677684    }
     
    688695            echo "<p class='description'>".
    689696                   "<input name='pricemesh_option_woocommerce_integration' type='checkbox' value='1' $checked/>".
    690                     " ".__("Schaltet die Pricemesh auf Produktseiten frei", $this->plugin_slug).
     697                    " ".__("Enables Pricemesh on Product Pages", $this->plugin_slug).
    691698                "</p>";
    692699        }else{
    693700            //echo "<input name='pricemesh_option_wp_robot_integration' type='checkbox' value='1' disabled/>";
    694             echo "<p class='description'>".__("WooCommerce ist nicht installiert", $this->plugin_slug)."</p>";
     701            echo "<p class='description'>".__("WooCommerce is not installed", $this->plugin_slug)."</p>";
    695702        }
    696703    }
     
    706713        echo "<input type='text' name='$name' id='$name' value='$setting' class='regular-text'/>";
    707714        echo "<p class='description'>".
    708              " ".__("Liste von Custom Post Types bei denen Pricemesh angezeigt werden soll. Format: type1,type2,type3", $this->plugin_slug).
     715             " ".__("List of custom post types Pricemesh should be enabled on. Format type1,type2,type3", $this->plugin_slug).
    709716             "</p>";
    710717    }
  • pricemesh/trunk/admin/views/admin.php

    r963908 r1027326  
    44
    55    <form method="POST" action="options.php">
    6         <?php echo _("Eine Übersicht über alle Einstellungen gibt es <a target='_blank' href='https://www.pricemesh.io/de/hilfe/einstellungen/'>hier</a>"); ?>
     6        <?php echo __("Get an overview of all available settings <a target='_blank' href='https://www.pricemesh.io/en/help/settings/'>here</a>", $this->plugin_slug); ?>
    77        <?php settings_fields('pricemesh-settings-group');  //pass slug name of page, also referred
    88        //to in Settings API as option group name
  • pricemesh/trunk/admin/views/metabox.php

    r866107 r1027326  
    44    <input type="text" id="pricemesh_pids" name="pricemesh_pids" value="<?php echo $opts["pids"]; ?>"
    55           style="display:none;visibility: hidden;">
    6     <input type="button" class="button tagadd" value="<?php echo __("Hinzufügen", $this->plugin_slug);?>" id="pricemesh_add_new_pid_btn">
     6    <input type="button" class="button tagadd" value="<?php echo __("Add", $this->plugin_slug);?>" id="pricemesh_add_new_pid_btn">
    77</p>
    88
     
    1414</div>
    1515<hr class="pm-hr"/>
    16 <h4 class="pm-h4"><?php echo __("Produktsuche", $this->plugin_slug);?></h4>
     16<h4 class="pm-h4"><?php echo __("Product Search", $this->plugin_slug);?></h4>
    1717<?php if(empty($opts["secret"])){
    18    ?><?php echo __("Um die Produktsuche zu nutzen, tragen Sie Ihren Secret Key ein. <a href='options-general.php?page=Pricemesh'>Zu den Einstellungen</a>", $this->plugin_slug);?><?php
     18   ?><?php echo __("To use product search, add your secret key <a href='options-general.php?page=Pricemesh'>here</a>", $this->plugin_slug);?><?php
    1919}else{?>
    2020<div class="pm-container pm-content">
     
    2424        <input class="hidden" id="pm-id_country" name="country" type="text" value="<?php echo $opts["country"]; ?>">
    2525
    26         <label for="pm-id_query">Suchbegriff</label><br/>
     26        <label for="pm-id_query"><?php echo __("Keyword", $this->plugin_slug);?></label><br/>
    2727
    2828        <input class="input-lg form-control" id="pm-id_query" name="query" type="text" value="">
    29         <input type="button" class="button tagadd" value="Suchen" id="pm-searchbutton"> <span id="pm-extended-search"><i
    30                 id="pm-extended-search-icon" class="pm-icon pm-chevron-right"></i> <?php echo __("Erweiterte Sucheinstellungen", $this->plugin_slug);?></span>
     29        <input type="button" class="button tagadd" value="<?php echo __("Search", $this->plugin_slug);?>" id="pm-searchbutton"> <span id="pm-extended-search"><i
     30                id="pm-extended-search-icon" class="pm-icon pm-chevron-right"></i> <?php echo __("Extended Setttings", $this->plugin_slug);?></span>
    3131
    3232    </div>
     
    3636                <tr>
    3737                    <td>
    38                         <label for="pm-id_not_words"><?php echo __("Ohne", $this->plugin_slug);?></label>
    39 
    40                     </td>
    41                     <td>
    42                         <label for="pm-id_price_min"><?php echo __("Preis min.", $this->plugin_slug);?></label>
    43 
    44                     </td>
    45                     <td>
    46                         <label for="pm-id_price_max"><?php echo __("Preis max.", $this->plugin_slug);?></label>
    47 
    48                     </td>
    49                     <td>
    50                         <label for="pm-id_price_max"><?php echo __("Tiefe Suche", $this->plugin_slug);?></label>
     38                        <label for="pm-id_not_words"><?php echo __("Without", $this->plugin_slug);?></label>
     39
     40                    </td>
     41                    <td>
     42                        <label for="pm-id_price_min"><?php echo __("Min. price", $this->plugin_slug);?></label>
     43
     44                    </td>
     45                    <td>
     46                        <label for="pm-id_price_max"><?php echo __("Max. price", $this->plugin_slug);?></label>
     47
     48                    </td>
     49                    <td>
     50                        <label for="pm-id_price_max"><?php echo __("Deepsearch", $this->plugin_slug);?></label>
    5151
    5252                    </td>
     
    101101            </div>
    102102            <div id="pm-search-error" class="pm-error hidden">
    103                 <?php echo __("Bei der Anfrage ist ein Fehler aufgetreten: ", $this->plugin_slug);?>
     103                <?php echo __("There was an error processing your request: ", $this->plugin_slug);?>
    104104                <strong id="pm-search-error-message"></strong>
    105105            </div>
     
    152152                        <a href="#pm-descriptions{{@index}}" data-toggle="tab">
    153153                            <span class="pm-badge pm-badge-info">{{ descriptions.length }}</span> {{ pluralize
    154                             descriptions.length '<?php echo __("Text", $this->plugin_slug);?>' '<?php echo __("Texte", $this->plugin_slug);?>'}}
     154                            descriptions.length '<?php echo __("Description", $this->plugin_slug);?>' '<?php echo __("Descriptions", $this->plugin_slug);?>'}}
    155155                        </a>
    156156                    </li>
     
    160160                        <a href="#pm-images{{@index}}" data-toggle="tab">
    161161                            <span class="pm-badge pm-badge-inverse">{{ images.length }}</span> {{ pluralize
    162                             images.length '<?php echo __("Bild", $this->plugin_slug);?>' '<?php echo __("Bilder", $this->plugin_slug);?>'}}
     162                            images.length '<?php echo __("Image", $this->plugin_slug);?>' '<?php echo __("Images", $this->plugin_slug);?>'}}
    163163                        </a>
    164164                    </li>
     
    180180                            <tr>
    181181                                <th><?php echo __("Name", $this->plugin_slug);?></th>
    182                                 <th><?php echo __("Preis", $this->plugin_slug);?></th>
     182                                <th><?php echo __("Price", $this->plugin_slug);?></th>
    183183                            </tr>
    184184                            {{#each shops}}
     
    206206                        <table class="pm-table pm-table-bordered table-striped">
    207207                            <tr>
    208                                 <th><?php echo __("Quelle", $this->plugin_slug);?></th>
    209                                 <th><?php echo __("Bild", $this->plugin_slug);?></th>
     208                                <th><?php echo __("Source", $this->plugin_slug);?></th>
     209                                <th><?php echo __("Image", $this->plugin_slug);?></th>
    210210                            </tr>
    211211                            {{#each images}}
     
    214214                            <tr>
    215215                                <td>{{ origin }} <a class="pm-btn pm-btn-xs pm-btn-warning" href="{{ image }}"
    216                                                     target="_blank"><?php echo __("Quelle", $this->plugin_slug);?></a></td>
     216                                                    target="_blank"><?php echo __("Source", $this->plugin_slug);?></a></td>
    217217                                <td><img src="{{ image }}"/></td>
    218218                            </tr>
     
    228228            <span class="pm-pull-right pm-price">
    229229                            <strong>
    230                                 <?php echo __("Preis", $this->plugin_slug);?>:
     230                                <?php echo __("Price", $this->plugin_slug);?>:
    231231                                {{#ifEqual price_min price_max }}
    232232                                {{ price_min }}
  • pricemesh/trunk/public/pricemesh-public.php

    r1001204 r1027326  
    2222     * @var     string
    2323     */
    24     const VERSION = '1.5.2';
     24    const VERSION = '1.6';
    2525
    2626    /**
     
    256256        $domain = $this->plugin_slug;
    257257        $locale = apply_filters('plugin_locale', get_locale(), $domain );
    258 
     258        echo $locale;
     259        echo trailingslashit(WP_LANG_DIR).$domain.'/'.$domain.'-'.$locale.'.mo';
     260        echo basename(plugin_dir_path(dirname(__FILE__))).'/languages/'.$locale.'.mo';
    259261        load_textdomain($domain, trailingslashit(WP_LANG_DIR).$domain.'/'.$domain.'-'.$locale.'.mo');
    260262        load_plugin_textdomain($domain, FALSE, basename(plugin_dir_path(dirname(__FILE__))).'/languages/');
  • pricemesh/trunk/readme.txt

    r1001204 r1027326  
    11=== Plugin Name ===
    22Contributors: pricemesh
    3 Tags: affiliate, commerce, e-commerce, ecommerce, sales, sell, shop, shopping, widgets, wordpress ecommerce, amazon, preisvergleich, ads, advertising
     3Tags: affiliate, commerce, e-commerce, pricemesh, price compare, price comparison, ecommerce, sales, sell, shop, shopping, widgets, wordpress ecommerce, amazon, preisvergleich, ads, advertising
    44Requires at least: 3.4
    55Tested up to: 4.0
    6 Stable tag: 1.5.2
     6Stable tag: 1.6
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    99
    10 Mit diesem Plugin ist es möglich Wordpress um einen eigenen Preisvergleich zu erweitern.
     10Extend WordPress with your own price comparison | WordPress mit einem eigenen Preisvergleich erweitern
    1111
    1212== Description ==
    1313
     14** English **
     15
     16This plugin enables you to extend WordPress with your own price comparison. After the installation a small box will appear with every post in the admin area where UPCs,
     17EANs and ASINs can be entered. You can also search for products with the integrated search function and attach them to the current post.
     18
     19The price comparison will appear directly under your article between the comments in the standard setting. To place the price comparison in your article, use the [pricemesh] short code.
     20within the text area.  There is also a widget available that can be displayed e.g. in the side bar.
     21
     22To earn your own commission you need to have an account with [pricemesh.io](https://www.pricemesh.io/ "WordPress Price Comparison"). There the supported affiliate networks and
     23affiliate programs can be connected with pricemesh. The commissions is paid out by the affiliate networks you connect with Pricemesh. The account can be tested free of charge for 14 days,
     24after that it will be 2.99 GBP / 3.99 EUR / 4.99 USD per month.
     25A demo token is already deposited in the settings, so you can try the plugin. However, you cannot earn your own commission with that.
     26
     27**Demo Pages**
     28
     29*   [Beneath headline](http://mac.pricemesh.io/de/content.html)
     30*   [As a tab](http://games.pricemesh.io/de/tabs.html)
     31*   [In content area](http://games.pricemesh.io/de/content.html)
     32*   [Sidebar](http://mac.pricemesh.io/de/sidebar.html)
     33
     34**Features**
     35
     36*   Price comparison in content area or as a widget in the sidebar
     37*   Fits in every template
     38*   No themes or custom templates required
     39*   Easy to install and configure
     40
     41**Supported Affiliate Networks and Partner Programs**
     42
     43*   Affili.net
     44*   Amazon
     45*   Belboon
     46*   Commmission Junction
     47*   Tradedoubler
     48*   eBay Commerce Network (shopping.com)
     49*   Zanox
     50
     51**Commissions**
     52
     53Plugin and Pricemesh accounts are free. All commissions for sales and clicks are paid out by the affiliate networks you connect with Pricemeh. To use Pricemesh you need a subscription starting at $3.99/month.
     54
     55** More Info **
     56
     57You can find more information on the [plugin page](https://www.pricemesh.io/plugins/wordpress/)
     58
     59** Deutsch **
     60
    1461Mit diesem Plugin ist es möglich Wordpress um einen eigenen kostenlosen Preisvergleich zu erweitern und damit Geld zu verdienen. Nach der Installation erscheint im Adminbereich bei jedem Post
    15 eine kleine Box in der ASINs, EANs und ISBNs eingetragen werden können.
     62eine kleine Box in der ASINs, EANs und ISBNs eingetragen werden können. Außerdem kann über die integrierte Suchfunktion nach Produkten gesucht werden.
    1663
    1764In der Standardeinstellung erscheint der Preisvergleich direkt unter dem Textbereich des Beitrags auf der Seite. Mit Hilfe des [pricemesh] Shortcodes ist aber auch eine Einblendung
    1865innerhalb des Textbereichs möglich. Es steht außerdem ein Widget zur Verfügung, das beispielsweise in der Sidebar eingeblendet werden kann.
    1966
    20 Um eigene Provisionen zu verdienen ist ein kostenloser Account auf [pricemesh.io](https://www.pricemesh.io/ "Wordpress Preisvergleich") erforderlich. Dort können die unterstützten Affiliate-Netzwerke und
    21 Partnerprogramme mit pricemesh verbunden werden. Die Vergütung der Provisionen erfolgt wie gewohnt über die Netzwerke.
     67Um eigene Provisionen zu verdienen ist ein Account auf [pricemesh.io](https://www.pricemesh.io/ "Wordpress Preisvergleich") erforderlich. Dort können die unterstützten Affiliate-Netzwerke und
     68Partnerprogramme mit Pricemesh verbunden werden. Die Vergütung der Provisionen erfolgt wie gewohnt über die Netzwerke. Der Account kann 14 Tage kostenlos getestet werden, danach ab 3,99 EUR/Monat.
    2269
    23 Zum ausprobieren des Plugins ist bereits ein Demo Token hinterlegt.
     70Zum ausprobieren des Plugins ist bereits ein Demo Token hinterlegt. Eigene Provisionen können damit jedoch nicht verdient werden.
    2471
    2572**Demo Seiten**
     
    4996**Provisionsmodell**
    5097
    51 Das Plugin und der Account auf pricemesh.io sind kostenlos. Alle erzielten Provisionen Sales und ggf. Klicks werden weiterhin direkt über die Affiliate Netzwerke abgerechnet und ausgezahlt. Bei maximal 15% der eingehenden Klicks werden diese zu gunsten von pricemesh.io vergütet (Klickbeteiligung).
     98Das Plugin und der Account auf Pricemesh.io sind kostenlos. Alle erzielten Provisionen Sales und ggf. Klicks werden weiterhin direkt über die Affiliate Netzwerke abgerechnet und ausgezahlt. Zum Betrieb ist eine Lizenz ab 3,99 EUR/Monat erfoderlich.
    5299
    53100Mehr:
     
    57104== Installation ==
    58105
     106**English**
     1071. Upload and unzip `pricemesh.zip` in `/wp-content/plugins/`.
     1082. Log In to your WordPress admin
     1093. Activate the Plugin in the plugins menu
     1104. In the admin area click on the left site on `Pricemesh Settings` and fill in your token and secret key
     1115. Add a UPC, ASIN, EAN, or ISBN to a article
     112
     113**Deutsch**
    591141. `pricemesh.zip` in den Ordner `/wp-content/plugins/` hochladen und dort entpacken
    601152. Im Wordpress Adminbereich anmelden
     
    631185. ASIN, EAN oder ISBN des Produktes zu einem Beitrag hinzufügen
    64119
    65 
    66120== Screenshots ==
    67121
    68 1. Meta-Box zum Hinzufügen von Produknummern
    69 2. Einstellungen
    70 3. Beispielseite mit dem Preisvergleich als Tab
    71 4. Beispielseite mit dem Preisvergleich nach der Headline
     1221. Metabox to add product numbers // Meta-Box zum Hinzufügen von Produknummern
     1232. Settings // Einstellungen
     1243. Example page with price comparison as a tab // Beispielseite mit dem Preisvergleich als Tab
     1254. Example page with price comparison beneath the headline // Beispielseite mit dem Preisvergleich nach der Headline
    72126
    73127== Changelog ==
     128
     129= 1.6 =
     130* Translation and Internationalization
    74131
    75132= 1.5.1 =
Note: See TracChangeset for help on using the changeset viewer.