Plugin Directory

Changeset 1271019


Ignore:
Timestamp:
10/22/2015 11:04:19 AM (10 years ago)
Author:
hlavacm
Message:

Added constants for translation of error messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-tracy/trunk/index.php

    r1269201 r1271019  
    2323    $phpCurrentVersion = phpversion();
    2424    if (version_compare($phpMinVersion, $phpCurrentVersion, ">")) {
    25         $message = sprintf(__("Your server is running on PHP %s, but this plugin requires at least PHP %s. Please do the upgrade."), $phpCurrentVersion, $phpMinVersion);
     25        $message = sprintf(__("Your server is running on PHP %s, but this plugin requires at least PHP %s. Please do the upgrade.", "WP_TRACY"), $phpCurrentVersion, $phpMinVersion);
    2626        echo "<div id=\"message\" class=\"error\"><p>$message</p></div>";
    2727        return;
     
    3030    global $wp_version;
    3131    if (version_compare($wpMinVersion, $wp_version, ">")) {
    32         $message = sprintf(__("Your WordPress is in version %s, but this plugin requires at least version %s. Please start the upgrade."), $wp_version, $wpMinVersion);
     32        $message = sprintf(__("Your WordPress is in version %s, but this plugin requires at least version %s. Please start the upgrade.", "WP_TRACY"), $wp_version, $wpMinVersion);
    3333        echo "<div id=\"message\" class=\"error\"><p>$message</p></div>";
    3434        return;
     
    3939$vendorAutoloadPath = "$pluginPath/vendor/autoload.php";
    4040if (!file_exists($vendorAutoloadPath)) { // composer check
    41     $message = __("First, install WP Tracy using Composer, run the command:");
     41    $message = __("First, install WP Tracy using Composer, run the command:", "WP_TRACY");
    4242    $command = "composer require ktstudio/wp-tracy";
    4343    echo "<div id=\"message\" class=\"error\"><p>$message</p><p>$pluginPath><b>$command</b></></p></div>";
Note: See TracChangeset for help on using the changeset viewer.