Plugin Directory

Changeset 3479459


Ignore:
Timestamp:
03/10/2026 06:36:21 PM (3 weeks ago)
Author:
esaia
Message:

tagging 1.1.0

Location:
esolleso-daily-bible-reading-plan
Files:
2 added
8 edited

Legend:

Unmodified
Added
Removed
  • esolleso-daily-bible-reading-plan/tags/1.1.0/bible-reading-plan.php

    r3479283 r3479459  
    2727add_action('init', function () {
    2828    load_plugin_textdomain(
    29         'bible-reading-plan',
     29        'esolleso-daily-bible-reading-plan',
    3030        false,
    3131        dirname(plugin_basename(BIBLDARE_PLUGIN_PATH)) . '/languages'
  • esolleso-daily-bible-reading-plan/tags/1.1.0/includes/adminpanel.php

    r3479283 r3479459  
    1111{
    1212    add_management_page(
    13         __('Bible Reading Plan', 'bible-reading-plan'),
    14         __('Bible Reading Plan', 'bible-reading-plan'),
     13        __('Bible Reading Plan', 'esolleso-daily-bible-reading-plan'),
     14        __('Bible Reading Plan', 'esolleso-daily-bible-reading-plan'),
    1515        'manage_options',
    1616        'bible-daily-reading-plan',
     
    5151        return [
    5252            'success' => false,
    53             'message' => __('No data provided.', 'bible-reading-plan'),
     53            'message' => __('No data provided.', 'esolleso-daily-bible-reading-plan'),
    5454        ];
    5555    }
     
    6666            'success' => false,
    6767            'message' => sprintf(
    68                 __('Invalid JSON: %s', 'bible-reading-plan'),
     68                __('Invalid JSON: %s', 'esolleso-daily-bible-reading-plan'),
    6969                json_last_error_msg()
    7070            ),
     
    8989        return [
    9090            'success' => true,
    91             'message' => __('Schedule saved successfully.', 'bible-reading-plan'),
     91            'message' => __('Schedule saved successfully.', 'esolleso-daily-bible-reading-plan'),
    9292        ];
    9393    }
     
    9595    return [
    9696        'success' => false,
    97         'message' => __('Failed to save schedule data.', 'bible-reading-plan'),
     97        'message' => __('Failed to save schedule data.', 'esolleso-daily-bible-reading-plan'),
    9898    ];
    9999}
     
    109109
    110110        if (!file_exists($backup_file)) {
    111             add_settings_error('bible_schedule_messages', 'error', __('Backup file not found at:', 'bible-reading-plan') . ' ' . $backup_file, 'error');
     111            add_settings_error('bible_schedule_messages', 'error', __('Backup file not found at:', 'esolleso-daily-bible-reading-plan') . ' ' . $backup_file, 'error');
    112112            return;
    113113        }
     
    116116
    117117        if (!is_array($default_data)) {
    118             add_settings_error('bible_schedule_messages', 'error', __('Backup file format is invalid (must return an array).', 'bible-reading-plan'), 'error');
     118            add_settings_error('bible_schedule_messages', 'error', __('Backup file format is invalid (must return an array).', 'esolleso-daily-bible-reading-plan'), 'error');
    119119            return;
    120120        }
     
    126126                'bible_schedule_messages',
    127127                'success',
    128                 __('Successfully reset database to default data!', 'bible-reading-plan'),
     128                __('Successfully reset database to default data!', 'esolleso-daily-bible-reading-plan'),
    129129                'success'
    130130            );
     
    132132            return true;
    133133        } else {
    134             add_settings_error('bible_schedule_messages', 'error', __('Failed to update database with default data.', 'bible-reading-plan'), 'error');
     134            add_settings_error('bible_schedule_messages', 'error', __('Failed to update database with default data.', 'esolleso-daily-bible-reading-plan'), 'error');
    135135            return false;
    136136        }
     
    250250
    251251    <div class="wrap">
    252         <h1><?php echo esc_html(__('Bible Schedule Tools', 'bible-reading-plan')); ?></h1>
     252        <h1><?php echo esc_html(__('Bible Schedule Tools', 'esolleso-daily-bible-reading-plan')); ?></h1>
    253253
    254254        <?php settings_errors('bible_schedule_messages'); ?>
     
    256256        <?php if (isset($_GET['cache_cleared'])): ?>
    257257            <div class="notice notice-success is-dismissible">
    258                 <p><strong><?php echo esc_html(__('Cache cleared successfully!', 'bible-reading-plan')); ?></strong> <?php echo esc_html(__('All cached Bible data has been removed.', 'bible-reading-plan')); ?></p>
     258                <p><strong><?php echo esc_html(__('Cache cleared successfully!', 'esolleso-daily-bible-reading-plan')); ?></strong> <?php echo esc_html(__('All cached Bible data has been removed.', 'esolleso-daily-bible-reading-plan')); ?></p>
    259259            </div>
    260260        <?php endif; ?>
     
    267267            <?php else: ?>
    268268                <div class="notice notice-error is-dismissible">
    269                     <p><strong><?php echo esc_html(__('Error:', 'bible-reading-plan')); ?></strong> <?php echo esc_html($save_result['message']); ?></p>
     269                    <p><strong><?php echo esc_html(__('Error:', 'esolleso-daily-bible-reading-plan')); ?></strong> <?php echo esc_html($save_result['message']); ?></p>
    270270                </div>
    271271            <?php endif; ?>
     
    275275
    276276            <div class="card" style="width: 100%; margin: 0; padding: 20px; background: #fff; border: 1px solid #c3c4c7;">
    277                 <h2 class="title" style="margin-top: 0;"><?php echo esc_html(__('Cache Management', 'bible-reading-plan')); ?></h2>
     277                <h2 class="title" style="margin-top: 0;"><?php echo esc_html(__('Cache Management', 'esolleso-daily-bible-reading-plan')); ?></h2>
    278278
    279279                <div style="margin-bottom: 24px;">
    280                     <p class="description" style="margin-bottom: 15px;"><?php echo esc_html(__('Force the plugin to fetch fresh Bible data on the next page load.', 'bible-reading-plan')); ?></p>
     280                    <p class="description" style="margin-bottom: 15px;"><?php echo esc_html(__('Force the plugin to fetch fresh Bible data on the next page load.', 'esolleso-daily-bible-reading-plan')); ?></p>
    281281                    <form method="post" action="<?php echo esc_url(admin_url('admin-post.php')); ?>">
    282282                        <input type="hidden" name="action" value="clear_bible_cache">
    283283                        <?php wp_nonce_field('clear_bible_cache_nonce'); ?>
    284                         <button type="submit" class="button button-secondary"><?php echo esc_html(__('Clear All Cache', 'bible-reading-plan')); ?></button>
     284                        <button type="submit" class="button button-secondary"><?php echo esc_html(__('Clear All Cache', 'esolleso-daily-bible-reading-plan')); ?></button>
    285285                    </form>
    286286                </div>
     
    295295                            <label style="display: flex; align-items: center; gap: 8px;">
    296296                                <input type="checkbox" name="cache_enabled" <?php checked($cache_enabled, 1); ?> value="1">
    297                                 <span><?php echo esc_html(__('Enable Cache', 'bible-reading-plan')); ?></span>
     297                                <span><?php echo esc_html(__('Enable Cache', 'esolleso-daily-bible-reading-plan')); ?></span>
    298298                            </label>
    299299                        </p>
    300                         <button type="submit" class="button button-primary"><?php echo esc_html(__('Save Settings', 'bible-reading-plan')); ?></button>
     300                        <button type="submit" class="button button-primary"><?php echo esc_html(__('Save Settings', 'esolleso-daily-bible-reading-plan')); ?></button>
    301301                    </form>
    302302                </div>
     
    305305            <div
    306306                style="width: 100%; position: relative; padding: 0.7em 2em 1em; padding-top: 20px; border: 1px solid #c3c4c7; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); background: #fff; box-sizing: border-box;">
    307                 <h2 class="title" style="margin-top: 0; margin-bottom: 24px;"><?php echo esc_html(__('Language and Version Settings', 'bible-reading-plan')); ?></h2>
     307                <h2 class="title" style="margin-top: 0; margin-bottom: 24px;"><?php echo esc_html(__('Language and Version Settings', 'esolleso-daily-bible-reading-plan')); ?></h2>
    308308                <form method="post" id="bibldare-language-form">
    309309                    <?php wp_nonce_field('save_bible_settings_nonce'); ?>
     
    312312                    <div style="display: flex; flex-direction: column; gap: 24px;">
    313313                        <div>
    314                             <h3 style="margin: 0 0 8px 0; font-size: 14px; font-weight: 600;"><?php echo esc_html(__('Language', 'bible-reading-plan')); ?></h3>
     314                            <h3 style="margin: 0 0 8px 0; font-size: 14px; font-weight: 600;"><?php echo esc_html(__('Language', 'esolleso-daily-bible-reading-plan')); ?></h3>
    315315                            <select name="language" id="bibldare_language_select"
    316316                                style="width: 100%; max-width: 420px; padding: 6px 8px; border: 1px solid #8c8f94; border-radius: 4px; font-size: 14px;">
    317                                 <option value="eng" <?php selected($language, 'eng'); ?>><?php echo esc_html(__('English', 'bible-reading-plan')); ?></option>
    318                                 <option value="geo" <?php selected($language, 'geo'); ?>><?php echo esc_html(__('Georgian', 'bible-reading-plan')); ?></option>
     317                                <option value="eng" <?php selected($language, 'eng'); ?>><?php echo esc_html(__('English', 'esolleso-daily-bible-reading-plan')); ?></option>
     318                                <option value="geo" <?php selected($language, 'geo'); ?>><?php echo esc_html(__('Georgian', 'esolleso-daily-bible-reading-plan')); ?></option>
    319319                            </select>
    320320                        </div>
    321321
    322322                        <div>
    323                             <h3 style="margin: 0 0 8px 0; font-size: 14px; font-weight: 600;"><?php echo esc_html(__('Version', 'bible-reading-plan')); ?></h3>
     323                            <h3 style="margin: 0 0 8px 0; font-size: 14px; font-weight: 600;"><?php echo esc_html(__('Version', 'esolleso-daily-bible-reading-plan')); ?></h3>
    324324                            <select name="version" id="bibldare_version_select"
    325325                                style="width: 100%; max-width: 420px; padding: 6px 8px; border: 1px solid #8c8f94; border-radius: 4px; font-size: 14px;">
     
    328328
    329329                        <div>
    330                             <h3 style="margin: 0 0 8px 0; font-size: 14px; font-weight: 600;"><?php echo esc_html(__('Background Color', 'bible-reading-plan')); ?></h3>
     330                            <h3 style="margin: 0 0 8px 0; font-size: 14px; font-weight: 600;"><?php echo esc_html(__('Background Color', 'esolleso-daily-bible-reading-plan')); ?></h3>
    331331                            <select name="background"
    332332                                style="width: 100%; max-width: 420px; padding: 6px 8px; border: 1px solid #8c8f94; border-radius: 4px; font-size: 14px;">
    333                                 <option value="white" <?php selected($background, 'white'); ?>><?php echo esc_html(__('White', 'bible-reading-plan')); ?></option>
    334                                 <option value="black" <?php selected($background, 'black'); ?>><?php echo esc_html(__('Black', 'bible-reading-plan')); ?></option>
    335                                 <option value="gold" <?php selected($background, 'gold'); ?>><?php echo esc_html(__('Gold', 'bible-reading-plan')); ?></option>
     333                                <option value="white" <?php selected($background, 'white'); ?>><?php echo esc_html(__('White', 'esolleso-daily-bible-reading-plan')); ?></option>
     334                                <option value="black" <?php selected($background, 'black'); ?>><?php echo esc_html(__('Black', 'esolleso-daily-bible-reading-plan')); ?></option>
     335                                <option value="gold" <?php selected($background, 'gold'); ?>><?php echo esc_html(__('Gold', 'esolleso-daily-bible-reading-plan')); ?></option>
    336336                            </select>
    337337                        </div>
     
    347347
    348348                        <div>
    349                             <h3 style="margin: 0 0 8px 0; font-size: 14px; font-weight: 600;"><?php echo esc_html(__('Shortcode:', 'bible-reading-plan')); ?></h3>
     349                            <h3 style="margin: 0 0 8px 0; font-size: 14px; font-weight: 600;"><?php echo esc_html(__('Shortcode:', 'esolleso-daily-bible-reading-plan')); ?></h3>
    350350                            <input id="bibldareShortcodeInput" type="text" readonly onclick="this.select()"
    351351                                value="<?php echo esc_attr($shortcode); ?>"
     
    358358
    359359        <div class="card" style="max-width: 100%; margin-top: 20px;">
    360             <h2 class="title"><?php echo esc_html(__('Edit Schedule Data', 'bible-reading-plan')); ?></h2>
    361 
    362             <p><strong><?php echo esc_html(__('Note:', 'bible-reading-plan')); ?></strong> <?php echo esc_html(__('Schedule data is stored securely in your WordPress database. Edit the JSON below to customize your reading schedule.', 'bible-reading-plan')); ?></p>
     360            <h2 class="title"><?php echo esc_html(__('Edit Schedule Data', 'esolleso-daily-bible-reading-plan')); ?></h2>
     361
     362            <p><strong><?php echo esc_html(__('Note:', 'esolleso-daily-bible-reading-plan')); ?></strong> <?php echo esc_html(__('Schedule data is stored securely in your WordPress database. Edit the JSON below to customize your reading schedule.', 'esolleso-daily-bible-reading-plan')); ?></p>
    363363
    364364            <?php if (file_exists(plugin_dir_path(BIBLDARE_PLUGIN_PATH) . 'assets/images/data-structure.png')): ?>
     
    368368
    369369            <div class="bible-schedule">
    370                 <h3><?php echo esc_html(__('Book Indexes', 'bible-reading-plan')); ?></h3>
     370                <h3><?php echo esc_html(__('Book Indexes', 'esolleso-daily-bible-reading-plan')); ?></h3>
    371371                <ul style="column-count: 5; column-gap: 20px; list-style-position: inside;">
    372372                    <?php foreach ($bibleNames as $index => $book): ?>
     
    376376            </div>
    377377
    378             <p><?php echo esc_html(__("Today's index is:", 'bible-reading-plan')); ?> <strong><?php echo esc_html(bibldare_get_today_index()); ?></strong></p>
     378            <p><?php echo esc_html(__("Today's index is:", 'esolleso-daily-bible-reading-plan')); ?> <strong><?php echo esc_html(bibldare_get_today_index()); ?></strong></p>
    379379
    380380            <form method="post" style="margin-top: 15px;">
     
    386386                <p class="submit" style="margin-top: 15px;">
    387387                    <button type="submit" class="button button-primary"
    388                         onclick="return confirm('<?php echo esc_js(__('Are you sure you want to save changes?', 'bible-reading-plan')); ?>');">
    389                         <?php echo esc_html(__('Save Changes', 'bible-reading-plan')); ?>
     388                        onclick="return confirm('<?php echo esc_js(__('Are you sure you want to save changes?', 'esolleso-daily-bible-reading-plan')); ?>');">
     389                        <?php echo esc_html(__('Save Changes', 'esolleso-daily-bible-reading-plan')); ?>
    390390                    </button>
    391391                    <button type="button" class="button" onclick="location.reload();">
    392                         <?php echo esc_html(__('Cancel / Reload', 'bible-reading-plan')); ?>
     392                        <?php echo esc_html(__('Cancel / Reload', 'esolleso-daily-bible-reading-plan')); ?>
    393393                    </button>
    394394                </p>
     
    400400                <p class="submit" style="margin-top: 0;">
    401401                    <button type="submit" class="button button-secondary"
    402                         onclick="return confirm('<?php echo esc_js(__('Are you sure you want to reset to default data? This will replace all current content.', 'bible-reading-plan')); ?>');"
     402                        onclick="return confirm('<?php echo esc_js(__('Are you sure you want to reset to default data? This will replace all current content.', 'esolleso-daily-bible-reading-plan')); ?>');"
    403403                        style="background: #dc3545; border-color: #dc3545; color: #fff;">
    404                         <?php echo esc_html(__('Reset to Default', 'bible-reading-plan')); ?>
     404                        <?php echo esc_html(__('Reset to Default', 'esolleso-daily-bible-reading-plan')); ?>
    405405                    </button>
    406406                </p>
     
    409409
    410410        <div class="card" style="max-width: 100%; margin-top: 20px;">
    411             <h2 class="title"><?php echo esc_html(__('Cache Information', 'bible-reading-plan')); ?></h2>
     411            <h2 class="title"><?php echo esc_html(__('Cache Information', 'esolleso-daily-bible-reading-plan')); ?></h2>
    412412            <?php
    413413            $cached_days = 0;
     
    418418            }
    419419            ?>
    420             <p><strong><?php echo esc_html(__('Cached Days:', 'bible-reading-plan')); ?></strong> <?php echo esc_html($cached_days); ?> / 365</p>
    421             <p><strong><?php echo esc_html(__('Cache Duration:', 'bible-reading-plan')); ?></strong> <?php echo esc_html(__('30 days', 'bible-reading-plan')); ?></p>
    422             <p><strong><?php echo esc_html(__('Storage:', 'bible-reading-plan')); ?></strong> <?php echo esc_html(__('WordPress database (shared across all users)', 'bible-reading-plan')); ?></p>
     420            <p><strong><?php echo esc_html(__('Cached Days:', 'esolleso-daily-bible-reading-plan')); ?></strong> <?php echo esc_html($cached_days); ?> / 365</p>
     421            <p><strong><?php echo esc_html(__('Cache Duration:', 'esolleso-daily-bible-reading-plan')); ?></strong> <?php echo esc_html(__('30 days', 'esolleso-daily-bible-reading-plan')); ?></p>
     422            <p><strong><?php echo esc_html(__('Storage:', 'esolleso-daily-bible-reading-plan')); ?></strong> <?php echo esc_html(__('WordPress database (shared across all users)', 'esolleso-daily-bible-reading-plan')); ?></p>
    423423        </div>
    424424    </div>
  • esolleso-daily-bible-reading-plan/tags/1.1.0/includes/helpers.php

    r3479297 r3479459  
    348348{
    349349    if (!is_array($data)) {
    350         return new WP_Error('invalid_root', __('Root must be an array.', 'bibldare'));
     350        return new WP_Error('invalid_root', __('Root must be an array.', 'esolleso-daily-bible-reading-plan'));
    351351    }
    352352
     
    360360            return new WP_Error(
    361361                'invalid_day',
    362                 sprintf(__('Day %d is out of range (1-366).', 'bibldare'), $day_key)
     362                sprintf(__('Day %d is out of range (1-366).', 'esolleso-daily-bible-reading-plan'), $day_key)
    363363            );
    364364        }
     
    367367            return new WP_Error(
    368368                'empty_day',
    369                 sprintf(__('Day %d has no readings.', 'bibldare'), $day_key)
     369                sprintf(__('Day %d has no readings.', 'esolleso-daily-bible-reading-plan'), $day_key)
    370370            );
    371371        }
     
    378378                return new WP_Error(
    379379                    'invalid_reading',
    380                     sprintf(__('Reading %d on day %d is not an array.', 'bibldare'), $reading_idx + 1, $day_key)
     380                    sprintf(__('Reading %d on day %d is not an array.', 'esolleso-daily-bible-reading-plan'), $reading_idx + 1, $day_key)
    381381                );
    382382            }
     
    387387                return new WP_Error(
    388388                    'invalid_book',
    389                     sprintf(__('Invalid bookIndex %d on day %d.', 'bibldare'), $book_index, $day_key)
     389                    sprintf(__('Invalid bookIndex %d on day %d.', 'esolleso-daily-bible-reading-plan'), $book_index, $day_key)
    390390                );
    391391            }
     
    395395                return new WP_Error(
    396396                    'missing_chapters',
    397                     sprintf(__('No chapters defined for reading %d on day %d.', 'bibldare'), $reading_idx + 1, $day_key)
     397                    sprintf(__('No chapters defined for reading %d on day %d.', 'esolleso-daily-bible-reading-plan'), $reading_idx + 1, $day_key)
    398398                );
    399399            }
     
    404404                    return new WP_Error(
    405405                        'invalid_chapter',
    406                         sprintf(__('Chapter entry %d on day %d is malformed.', 'bibldare'), $chap_idx + 1, $day_key)
     406                        sprintf(__('Chapter entry %d on day %d is malformed.', 'esolleso-daily-bible-reading-plan'), $chap_idx + 1, $day_key)
    407407                    );
    408408                }
     
    413413                    return new WP_Error(
    414414                        'invalid_chapter_num',
    415                         sprintf(__('Invalid chapter number %d on day %d.', 'bibldare'), $chapter, $day_key)
     415                        sprintf(__('Invalid chapter number %d on day %d.', 'esolleso-daily-bible-reading-plan'), $chapter, $day_key)
    416416                    );
    417417                }
  • esolleso-daily-bible-reading-plan/tags/1.1.0/includes/shortcode.php

    r3479283 r3479459  
    4343                    </svg>
    4444                </div>
    45                 <div class="days-panel-header-title"><?php echo esc_html(__('Our Reading Plan', 'bible-reading-plan')); ?></div>
     45                <div class="days-panel-header-title"><?php echo esc_html(__('Our Reading Plan', 'esolleso-daily-bible-reading-plan')); ?></div>
    4646            </div>
    4747
     
    8585        <div class="bible-schedule-loader">
    8686            <div class="spinner"></div>
    87             <p><?php echo esc_html(__('loading', 'bible-reading-plan') . '...'); ?></p>
     87            <p><?php echo esc_html(__('loading', 'esolleso-daily-bible-reading-plan') . '...'); ?></p>
    8888        </div>
    8989
     
    287287
    288288    if (!$schedule_data) {
    289         wp_send_json_error(['message' => __('No schedule found for this day.', 'bible-reading-plan')]);
     289        wp_send_json_error(['message' => __('No schedule found for this day.', 'esolleso-daily-bible-reading-plan')]);
    290290        return;
    291291    }
     
    336336                    <h3>
    337337                        <span class="chapter-label">
    338                             <?php echo esc_html(__('chapter', 'bible-reading-plan')); ?>
     338                            <?php echo esc_html(__('chapter', 'esolleso-daily-bible-reading-plan')); ?>
    339339                        </span>
    340340                        <?php echo esc_html($chapterNumber); ?>
     
    342342                        <?php if ($hasRange): ?>
    343343                            <span class="chapter-range">
    344                                 (<?php echo esc_html(__('verses', 'bible-reading-plan')); ?>
     344                                (<?php echo esc_html(__('verses', 'esolleso-daily-bible-reading-plan')); ?>
    345345                                <?php echo esc_html($from); ?>-<?php echo esc_html($to); ?>)
    346346                            </span>
     
    363363                    <?php else: ?>
    364364                        <p class="error-message">
    365                             <?php echo esc_html__('No verses available for this chapter.'); ?>
     365                            <?php echo esc_html__('No verses available for this chapter.', 'esolleso-daily-bible-reading-plan'); ?>
    366366                        </p>
    367367                    <?php endif; ?>
  • esolleso-daily-bible-reading-plan/trunk/bible-reading-plan.php

    r3479283 r3479459  
    2727add_action('init', function () {
    2828    load_plugin_textdomain(
    29         'bible-reading-plan',
     29        'esolleso-daily-bible-reading-plan',
    3030        false,
    3131        dirname(plugin_basename(BIBLDARE_PLUGIN_PATH)) . '/languages'
  • esolleso-daily-bible-reading-plan/trunk/includes/adminpanel.php

    r3479283 r3479459  
    1111{
    1212    add_management_page(
    13         __('Bible Reading Plan', 'bible-reading-plan'),
    14         __('Bible Reading Plan', 'bible-reading-plan'),
     13        __('Bible Reading Plan', 'esolleso-daily-bible-reading-plan'),
     14        __('Bible Reading Plan', 'esolleso-daily-bible-reading-plan'),
    1515        'manage_options',
    1616        'bible-daily-reading-plan',
     
    5151        return [
    5252            'success' => false,
    53             'message' => __('No data provided.', 'bible-reading-plan'),
     53            'message' => __('No data provided.', 'esolleso-daily-bible-reading-plan'),
    5454        ];
    5555    }
     
    6666            'success' => false,
    6767            'message' => sprintf(
    68                 __('Invalid JSON: %s', 'bible-reading-plan'),
     68                __('Invalid JSON: %s', 'esolleso-daily-bible-reading-plan'),
    6969                json_last_error_msg()
    7070            ),
     
    8989        return [
    9090            'success' => true,
    91             'message' => __('Schedule saved successfully.', 'bible-reading-plan'),
     91            'message' => __('Schedule saved successfully.', 'esolleso-daily-bible-reading-plan'),
    9292        ];
    9393    }
     
    9595    return [
    9696        'success' => false,
    97         'message' => __('Failed to save schedule data.', 'bible-reading-plan'),
     97        'message' => __('Failed to save schedule data.', 'esolleso-daily-bible-reading-plan'),
    9898    ];
    9999}
     
    109109
    110110        if (!file_exists($backup_file)) {
    111             add_settings_error('bible_schedule_messages', 'error', __('Backup file not found at:', 'bible-reading-plan') . ' ' . $backup_file, 'error');
     111            add_settings_error('bible_schedule_messages', 'error', __('Backup file not found at:', 'esolleso-daily-bible-reading-plan') . ' ' . $backup_file, 'error');
    112112            return;
    113113        }
     
    116116
    117117        if (!is_array($default_data)) {
    118             add_settings_error('bible_schedule_messages', 'error', __('Backup file format is invalid (must return an array).', 'bible-reading-plan'), 'error');
     118            add_settings_error('bible_schedule_messages', 'error', __('Backup file format is invalid (must return an array).', 'esolleso-daily-bible-reading-plan'), 'error');
    119119            return;
    120120        }
     
    126126                'bible_schedule_messages',
    127127                'success',
    128                 __('Successfully reset database to default data!', 'bible-reading-plan'),
     128                __('Successfully reset database to default data!', 'esolleso-daily-bible-reading-plan'),
    129129                'success'
    130130            );
     
    132132            return true;
    133133        } else {
    134             add_settings_error('bible_schedule_messages', 'error', __('Failed to update database with default data.', 'bible-reading-plan'), 'error');
     134            add_settings_error('bible_schedule_messages', 'error', __('Failed to update database with default data.', 'esolleso-daily-bible-reading-plan'), 'error');
    135135            return false;
    136136        }
     
    250250
    251251    <div class="wrap">
    252         <h1><?php echo esc_html(__('Bible Schedule Tools', 'bible-reading-plan')); ?></h1>
     252        <h1><?php echo esc_html(__('Bible Schedule Tools', 'esolleso-daily-bible-reading-plan')); ?></h1>
    253253
    254254        <?php settings_errors('bible_schedule_messages'); ?>
     
    256256        <?php if (isset($_GET['cache_cleared'])): ?>
    257257            <div class="notice notice-success is-dismissible">
    258                 <p><strong><?php echo esc_html(__('Cache cleared successfully!', 'bible-reading-plan')); ?></strong> <?php echo esc_html(__('All cached Bible data has been removed.', 'bible-reading-plan')); ?></p>
     258                <p><strong><?php echo esc_html(__('Cache cleared successfully!', 'esolleso-daily-bible-reading-plan')); ?></strong> <?php echo esc_html(__('All cached Bible data has been removed.', 'esolleso-daily-bible-reading-plan')); ?></p>
    259259            </div>
    260260        <?php endif; ?>
     
    267267            <?php else: ?>
    268268                <div class="notice notice-error is-dismissible">
    269                     <p><strong><?php echo esc_html(__('Error:', 'bible-reading-plan')); ?></strong> <?php echo esc_html($save_result['message']); ?></p>
     269                    <p><strong><?php echo esc_html(__('Error:', 'esolleso-daily-bible-reading-plan')); ?></strong> <?php echo esc_html($save_result['message']); ?></p>
    270270                </div>
    271271            <?php endif; ?>
     
    275275
    276276            <div class="card" style="width: 100%; margin: 0; padding: 20px; background: #fff; border: 1px solid #c3c4c7;">
    277                 <h2 class="title" style="margin-top: 0;"><?php echo esc_html(__('Cache Management', 'bible-reading-plan')); ?></h2>
     277                <h2 class="title" style="margin-top: 0;"><?php echo esc_html(__('Cache Management', 'esolleso-daily-bible-reading-plan')); ?></h2>
    278278
    279279                <div style="margin-bottom: 24px;">
    280                     <p class="description" style="margin-bottom: 15px;"><?php echo esc_html(__('Force the plugin to fetch fresh Bible data on the next page load.', 'bible-reading-plan')); ?></p>
     280                    <p class="description" style="margin-bottom: 15px;"><?php echo esc_html(__('Force the plugin to fetch fresh Bible data on the next page load.', 'esolleso-daily-bible-reading-plan')); ?></p>
    281281                    <form method="post" action="<?php echo esc_url(admin_url('admin-post.php')); ?>">
    282282                        <input type="hidden" name="action" value="clear_bible_cache">
    283283                        <?php wp_nonce_field('clear_bible_cache_nonce'); ?>
    284                         <button type="submit" class="button button-secondary"><?php echo esc_html(__('Clear All Cache', 'bible-reading-plan')); ?></button>
     284                        <button type="submit" class="button button-secondary"><?php echo esc_html(__('Clear All Cache', 'esolleso-daily-bible-reading-plan')); ?></button>
    285285                    </form>
    286286                </div>
     
    295295                            <label style="display: flex; align-items: center; gap: 8px;">
    296296                                <input type="checkbox" name="cache_enabled" <?php checked($cache_enabled, 1); ?> value="1">
    297                                 <span><?php echo esc_html(__('Enable Cache', 'bible-reading-plan')); ?></span>
     297                                <span><?php echo esc_html(__('Enable Cache', 'esolleso-daily-bible-reading-plan')); ?></span>
    298298                            </label>
    299299                        </p>
    300                         <button type="submit" class="button button-primary"><?php echo esc_html(__('Save Settings', 'bible-reading-plan')); ?></button>
     300                        <button type="submit" class="button button-primary"><?php echo esc_html(__('Save Settings', 'esolleso-daily-bible-reading-plan')); ?></button>
    301301                    </form>
    302302                </div>
     
    305305            <div
    306306                style="width: 100%; position: relative; padding: 0.7em 2em 1em; padding-top: 20px; border: 1px solid #c3c4c7; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); background: #fff; box-sizing: border-box;">
    307                 <h2 class="title" style="margin-top: 0; margin-bottom: 24px;"><?php echo esc_html(__('Language and Version Settings', 'bible-reading-plan')); ?></h2>
     307                <h2 class="title" style="margin-top: 0; margin-bottom: 24px;"><?php echo esc_html(__('Language and Version Settings', 'esolleso-daily-bible-reading-plan')); ?></h2>
    308308                <form method="post" id="bibldare-language-form">
    309309                    <?php wp_nonce_field('save_bible_settings_nonce'); ?>
     
    312312                    <div style="display: flex; flex-direction: column; gap: 24px;">
    313313                        <div>
    314                             <h3 style="margin: 0 0 8px 0; font-size: 14px; font-weight: 600;"><?php echo esc_html(__('Language', 'bible-reading-plan')); ?></h3>
     314                            <h3 style="margin: 0 0 8px 0; font-size: 14px; font-weight: 600;"><?php echo esc_html(__('Language', 'esolleso-daily-bible-reading-plan')); ?></h3>
    315315                            <select name="language" id="bibldare_language_select"
    316316                                style="width: 100%; max-width: 420px; padding: 6px 8px; border: 1px solid #8c8f94; border-radius: 4px; font-size: 14px;">
    317                                 <option value="eng" <?php selected($language, 'eng'); ?>><?php echo esc_html(__('English', 'bible-reading-plan')); ?></option>
    318                                 <option value="geo" <?php selected($language, 'geo'); ?>><?php echo esc_html(__('Georgian', 'bible-reading-plan')); ?></option>
     317                                <option value="eng" <?php selected($language, 'eng'); ?>><?php echo esc_html(__('English', 'esolleso-daily-bible-reading-plan')); ?></option>
     318                                <option value="geo" <?php selected($language, 'geo'); ?>><?php echo esc_html(__('Georgian', 'esolleso-daily-bible-reading-plan')); ?></option>
    319319                            </select>
    320320                        </div>
    321321
    322322                        <div>
    323                             <h3 style="margin: 0 0 8px 0; font-size: 14px; font-weight: 600;"><?php echo esc_html(__('Version', 'bible-reading-plan')); ?></h3>
     323                            <h3 style="margin: 0 0 8px 0; font-size: 14px; font-weight: 600;"><?php echo esc_html(__('Version', 'esolleso-daily-bible-reading-plan')); ?></h3>
    324324                            <select name="version" id="bibldare_version_select"
    325325                                style="width: 100%; max-width: 420px; padding: 6px 8px; border: 1px solid #8c8f94; border-radius: 4px; font-size: 14px;">
     
    328328
    329329                        <div>
    330                             <h3 style="margin: 0 0 8px 0; font-size: 14px; font-weight: 600;"><?php echo esc_html(__('Background Color', 'bible-reading-plan')); ?></h3>
     330                            <h3 style="margin: 0 0 8px 0; font-size: 14px; font-weight: 600;"><?php echo esc_html(__('Background Color', 'esolleso-daily-bible-reading-plan')); ?></h3>
    331331                            <select name="background"
    332332                                style="width: 100%; max-width: 420px; padding: 6px 8px; border: 1px solid #8c8f94; border-radius: 4px; font-size: 14px;">
    333                                 <option value="white" <?php selected($background, 'white'); ?>><?php echo esc_html(__('White', 'bible-reading-plan')); ?></option>
    334                                 <option value="black" <?php selected($background, 'black'); ?>><?php echo esc_html(__('Black', 'bible-reading-plan')); ?></option>
    335                                 <option value="gold" <?php selected($background, 'gold'); ?>><?php echo esc_html(__('Gold', 'bible-reading-plan')); ?></option>
     333                                <option value="white" <?php selected($background, 'white'); ?>><?php echo esc_html(__('White', 'esolleso-daily-bible-reading-plan')); ?></option>
     334                                <option value="black" <?php selected($background, 'black'); ?>><?php echo esc_html(__('Black', 'esolleso-daily-bible-reading-plan')); ?></option>
     335                                <option value="gold" <?php selected($background, 'gold'); ?>><?php echo esc_html(__('Gold', 'esolleso-daily-bible-reading-plan')); ?></option>
    336336                            </select>
    337337                        </div>
     
    347347
    348348                        <div>
    349                             <h3 style="margin: 0 0 8px 0; font-size: 14px; font-weight: 600;"><?php echo esc_html(__('Shortcode:', 'bible-reading-plan')); ?></h3>
     349                            <h3 style="margin: 0 0 8px 0; font-size: 14px; font-weight: 600;"><?php echo esc_html(__('Shortcode:', 'esolleso-daily-bible-reading-plan')); ?></h3>
    350350                            <input id="bibldareShortcodeInput" type="text" readonly onclick="this.select()"
    351351                                value="<?php echo esc_attr($shortcode); ?>"
     
    358358
    359359        <div class="card" style="max-width: 100%; margin-top: 20px;">
    360             <h2 class="title"><?php echo esc_html(__('Edit Schedule Data', 'bible-reading-plan')); ?></h2>
    361 
    362             <p><strong><?php echo esc_html(__('Note:', 'bible-reading-plan')); ?></strong> <?php echo esc_html(__('Schedule data is stored securely in your WordPress database. Edit the JSON below to customize your reading schedule.', 'bible-reading-plan')); ?></p>
     360            <h2 class="title"><?php echo esc_html(__('Edit Schedule Data', 'esolleso-daily-bible-reading-plan')); ?></h2>
     361
     362            <p><strong><?php echo esc_html(__('Note:', 'esolleso-daily-bible-reading-plan')); ?></strong> <?php echo esc_html(__('Schedule data is stored securely in your WordPress database. Edit the JSON below to customize your reading schedule.', 'esolleso-daily-bible-reading-plan')); ?></p>
    363363
    364364            <?php if (file_exists(plugin_dir_path(BIBLDARE_PLUGIN_PATH) . 'assets/images/data-structure.png')): ?>
     
    368368
    369369            <div class="bible-schedule">
    370                 <h3><?php echo esc_html(__('Book Indexes', 'bible-reading-plan')); ?></h3>
     370                <h3><?php echo esc_html(__('Book Indexes', 'esolleso-daily-bible-reading-plan')); ?></h3>
    371371                <ul style="column-count: 5; column-gap: 20px; list-style-position: inside;">
    372372                    <?php foreach ($bibleNames as $index => $book): ?>
     
    376376            </div>
    377377
    378             <p><?php echo esc_html(__("Today's index is:", 'bible-reading-plan')); ?> <strong><?php echo esc_html(bibldare_get_today_index()); ?></strong></p>
     378            <p><?php echo esc_html(__("Today's index is:", 'esolleso-daily-bible-reading-plan')); ?> <strong><?php echo esc_html(bibldare_get_today_index()); ?></strong></p>
    379379
    380380            <form method="post" style="margin-top: 15px;">
     
    386386                <p class="submit" style="margin-top: 15px;">
    387387                    <button type="submit" class="button button-primary"
    388                         onclick="return confirm('<?php echo esc_js(__('Are you sure you want to save changes?', 'bible-reading-plan')); ?>');">
    389                         <?php echo esc_html(__('Save Changes', 'bible-reading-plan')); ?>
     388                        onclick="return confirm('<?php echo esc_js(__('Are you sure you want to save changes?', 'esolleso-daily-bible-reading-plan')); ?>');">
     389                        <?php echo esc_html(__('Save Changes', 'esolleso-daily-bible-reading-plan')); ?>
    390390                    </button>
    391391                    <button type="button" class="button" onclick="location.reload();">
    392                         <?php echo esc_html(__('Cancel / Reload', 'bible-reading-plan')); ?>
     392                        <?php echo esc_html(__('Cancel / Reload', 'esolleso-daily-bible-reading-plan')); ?>
    393393                    </button>
    394394                </p>
     
    400400                <p class="submit" style="margin-top: 0;">
    401401                    <button type="submit" class="button button-secondary"
    402                         onclick="return confirm('<?php echo esc_js(__('Are you sure you want to reset to default data? This will replace all current content.', 'bible-reading-plan')); ?>');"
     402                        onclick="return confirm('<?php echo esc_js(__('Are you sure you want to reset to default data? This will replace all current content.', 'esolleso-daily-bible-reading-plan')); ?>');"
    403403                        style="background: #dc3545; border-color: #dc3545; color: #fff;">
    404                         <?php echo esc_html(__('Reset to Default', 'bible-reading-plan')); ?>
     404                        <?php echo esc_html(__('Reset to Default', 'esolleso-daily-bible-reading-plan')); ?>
    405405                    </button>
    406406                </p>
     
    409409
    410410        <div class="card" style="max-width: 100%; margin-top: 20px;">
    411             <h2 class="title"><?php echo esc_html(__('Cache Information', 'bible-reading-plan')); ?></h2>
     411            <h2 class="title"><?php echo esc_html(__('Cache Information', 'esolleso-daily-bible-reading-plan')); ?></h2>
    412412            <?php
    413413            $cached_days = 0;
     
    418418            }
    419419            ?>
    420             <p><strong><?php echo esc_html(__('Cached Days:', 'bible-reading-plan')); ?></strong> <?php echo esc_html($cached_days); ?> / 365</p>
    421             <p><strong><?php echo esc_html(__('Cache Duration:', 'bible-reading-plan')); ?></strong> <?php echo esc_html(__('30 days', 'bible-reading-plan')); ?></p>
    422             <p><strong><?php echo esc_html(__('Storage:', 'bible-reading-plan')); ?></strong> <?php echo esc_html(__('WordPress database (shared across all users)', 'bible-reading-plan')); ?></p>
     420            <p><strong><?php echo esc_html(__('Cached Days:', 'esolleso-daily-bible-reading-plan')); ?></strong> <?php echo esc_html($cached_days); ?> / 365</p>
     421            <p><strong><?php echo esc_html(__('Cache Duration:', 'esolleso-daily-bible-reading-plan')); ?></strong> <?php echo esc_html(__('30 days', 'esolleso-daily-bible-reading-plan')); ?></p>
     422            <p><strong><?php echo esc_html(__('Storage:', 'esolleso-daily-bible-reading-plan')); ?></strong> <?php echo esc_html(__('WordPress database (shared across all users)', 'esolleso-daily-bible-reading-plan')); ?></p>
    423423        </div>
    424424    </div>
  • esolleso-daily-bible-reading-plan/trunk/includes/helpers.php

    r3479297 r3479459  
    348348{
    349349    if (!is_array($data)) {
    350         return new WP_Error('invalid_root', __('Root must be an array.', 'bibldare'));
     350        return new WP_Error('invalid_root', __('Root must be an array.', 'esolleso-daily-bible-reading-plan'));
    351351    }
    352352
     
    360360            return new WP_Error(
    361361                'invalid_day',
    362                 sprintf(__('Day %d is out of range (1-366).', 'bibldare'), $day_key)
     362                sprintf(__('Day %d is out of range (1-366).', 'esolleso-daily-bible-reading-plan'), $day_key)
    363363            );
    364364        }
     
    367367            return new WP_Error(
    368368                'empty_day',
    369                 sprintf(__('Day %d has no readings.', 'bibldare'), $day_key)
     369                sprintf(__('Day %d has no readings.', 'esolleso-daily-bible-reading-plan'), $day_key)
    370370            );
    371371        }
     
    378378                return new WP_Error(
    379379                    'invalid_reading',
    380                     sprintf(__('Reading %d on day %d is not an array.', 'bibldare'), $reading_idx + 1, $day_key)
     380                    sprintf(__('Reading %d on day %d is not an array.', 'esolleso-daily-bible-reading-plan'), $reading_idx + 1, $day_key)
    381381                );
    382382            }
     
    387387                return new WP_Error(
    388388                    'invalid_book',
    389                     sprintf(__('Invalid bookIndex %d on day %d.', 'bibldare'), $book_index, $day_key)
     389                    sprintf(__('Invalid bookIndex %d on day %d.', 'esolleso-daily-bible-reading-plan'), $book_index, $day_key)
    390390                );
    391391            }
     
    395395                return new WP_Error(
    396396                    'missing_chapters',
    397                     sprintf(__('No chapters defined for reading %d on day %d.', 'bibldare'), $reading_idx + 1, $day_key)
     397                    sprintf(__('No chapters defined for reading %d on day %d.', 'esolleso-daily-bible-reading-plan'), $reading_idx + 1, $day_key)
    398398                );
    399399            }
     
    404404                    return new WP_Error(
    405405                        'invalid_chapter',
    406                         sprintf(__('Chapter entry %d on day %d is malformed.', 'bibldare'), $chap_idx + 1, $day_key)
     406                        sprintf(__('Chapter entry %d on day %d is malformed.', 'esolleso-daily-bible-reading-plan'), $chap_idx + 1, $day_key)
    407407                    );
    408408                }
     
    413413                    return new WP_Error(
    414414                        'invalid_chapter_num',
    415                         sprintf(__('Invalid chapter number %d on day %d.', 'bibldare'), $chapter, $day_key)
     415                        sprintf(__('Invalid chapter number %d on day %d.', 'esolleso-daily-bible-reading-plan'), $chapter, $day_key)
    416416                    );
    417417                }
  • esolleso-daily-bible-reading-plan/trunk/includes/shortcode.php

    r3479283 r3479459  
    4343                    </svg>
    4444                </div>
    45                 <div class="days-panel-header-title"><?php echo esc_html(__('Our Reading Plan', 'bible-reading-plan')); ?></div>
     45                <div class="days-panel-header-title"><?php echo esc_html(__('Our Reading Plan', 'esolleso-daily-bible-reading-plan')); ?></div>
    4646            </div>
    4747
     
    8585        <div class="bible-schedule-loader">
    8686            <div class="spinner"></div>
    87             <p><?php echo esc_html(__('loading', 'bible-reading-plan') . '...'); ?></p>
     87            <p><?php echo esc_html(__('loading', 'esolleso-daily-bible-reading-plan') . '...'); ?></p>
    8888        </div>
    8989
     
    287287
    288288    if (!$schedule_data) {
    289         wp_send_json_error(['message' => __('No schedule found for this day.', 'bible-reading-plan')]);
     289        wp_send_json_error(['message' => __('No schedule found for this day.', 'esolleso-daily-bible-reading-plan')]);
    290290        return;
    291291    }
     
    336336                    <h3>
    337337                        <span class="chapter-label">
    338                             <?php echo esc_html(__('chapter', 'bible-reading-plan')); ?>
     338                            <?php echo esc_html(__('chapter', 'esolleso-daily-bible-reading-plan')); ?>
    339339                        </span>
    340340                        <?php echo esc_html($chapterNumber); ?>
     
    342342                        <?php if ($hasRange): ?>
    343343                            <span class="chapter-range">
    344                                 (<?php echo esc_html(__('verses', 'bible-reading-plan')); ?>
     344                                (<?php echo esc_html(__('verses', 'esolleso-daily-bible-reading-plan')); ?>
    345345                                <?php echo esc_html($from); ?>-<?php echo esc_html($to); ?>)
    346346                            </span>
     
    363363                    <?php else: ?>
    364364                        <p class="error-message">
    365                             <?php echo esc_html__('No verses available for this chapter.'); ?>
     365                            <?php echo esc_html__('No verses available for this chapter.', 'esolleso-daily-bible-reading-plan'); ?>
    366366                        </p>
    367367                    <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.