Plugin Directory

Changeset 3221684


Ignore:
Timestamp:
01/13/2025 04:07:27 PM (15 months ago)
Author:
conutant
Message:

Added an ability to translate the plugin.

Location:
super-blank
Files:
385 added
5 edited

Legend:

Unmodified
Added
Removed
  • super-blank/trunk/assets/js/scripts.js

    r3218370 r3221684  
    99                    progress: [0, 5],
    1010                    action: 'super_blank_step1',
    11                     start_message: 'Starting fresh site...'
     11                    start_message: superBlankLocalizer.translation.starting_fresh_site
    1212                },
    1313                {
    1414                    progress: [6, 9],
    1515                    action: 'super_blank_step1_2',
    16                     start_message: 'Deep cleanup...'
     16                    start_message: superBlankLocalizer.translation.deep_cleanup
    1717                },
    1818                {
    1919                    progress: [10, 14],
    2020                    action: 'super_blank_step1_3',
    21                     start_message: 'Removing extra tables...'
     21                    start_message: superBlankLocalizer.translation.removing_extra_tables
    2222                },
    2323                {
    2424                    progress: [15, 20],
    2525                    action: 'super_blank_step2',
    26                     start_message: 'Getting design ready...'
     26                    start_message: superBlankLocalizer.translation.getting_design_ready
    2727                },
    2828                {
    2929                    progress: [21, 40],
    3030                    action: 'super_blank_step3',
    31                     start_message: 'Activating Astra theme...'
     31                    start_message: superBlankLocalizer.translation.activating_astra_theme
    3232                },
    3333                {
    3434                    progress: [41, 50],
    3535                    action: 'super_blank_step5',
    36                     start_message: 'Installing Elementor plugin...'
     36                    start_message: superBlankLocalizer.translation.installing_elementor_plugin
    3737                },
    3838                {
    3939                    progress: [51, 60],
    4040                    action: 'super_blank_step4',
    41                     start_message: 'Installing WP Forms plugin...'
     41                    start_message: superBlankLocalizer.translation.installing_wpforms_plugin
    4242                },
    4343                {
    4444                    progress: [61, 70],
    4545                    action: 'super_blank_step5_1',
    46                     start_message: 'Menu Creation...'
     46                    start_message: superBlankLocalizer.translation.creating_menu
    4747                },
    4848                {
    4949                    progress: [71, 80],
    5050                    action: 'super_blank_step6',
    51                     start_message: 'Pages creation...'
     51                    start_message: superBlankLocalizer.translation.creating_pages
    5252                },
    5353                {
    5454                    progress: [81, 100],
    5555                    action: 'super_blank_step7',
    56                     start_message: 'Website settings...'
     56                    start_message: superBlankLocalizer.translation.website_settings
    5757                }
    5858            ],
     
    212212
    213213                            // success
    214                             _this.stepSucceed(_this, 'Content Imported successfully!');
     214                            _this.stepSucceed(_this, superBlankLocalizer.translation.content_imported_successfully);
    215215                        } else {
    216216
     
    264264
    265265                this.installButton
    266                     .text("Installing")
     266                    .text(superBlankLocalizer.translation.installing_progress)
    267267                    .addClass('installing-animation')
    268268                    .prop('disabled', true);
     
    326326                    setTimeout(function () {
    327327                        _this.installButton
    328                             .text("Done!")
     328                            .text(superBlankLocalizer.translation.import_done)
    329329                            .removeClass('fade-out');
    330330                    }, 400);
     
    338338                    setTimeout(function () {
    339339                        _this.installButton
    340                             .text("View website")
     340                            .text(superBlankLocalizer.translation.view_website)
    341341                            .removeClass('fade-out')
    342342                            .prop('disabled', false);
     
    347347                    }, 1800);
    348348
    349                     this.successNotification('All done! Your new website is ready.');
     349                    this.successNotification(superBlankLocalizer.translation.all_done_title);
    350350
    351351                } else {
     
    353353                    this.installButton
    354354                        .removeClass('installing-animation')
    355                         .text("Failed");
     355                        .text(superBlankLocalizer.translation.import_failed);
    356356                }
    357357
     
    522522                if (!$("#sb-import-confirmation-checkbox").is(":checked")) {
    523523
    524                     alert('Please, confirm that you understand this action will delete and replace your entire website.');
     524                    alert(superBlankLocalizer.translation.please_confirm_import);
    525525                    return;
    526526                }
    527527
    528                 if(!confirm('Are you sure you want to proceed with the import?')) return;
     528                if(!confirm(superBlankLocalizer.translation.are_you_sure_import_title)) return;
    529529
    530530                this.installProgress = true;
     
    535535                this.confirmDialog = jQuery(dialog);
    536536                this.statusMessage = jQuery("#status-message");
    537                 this.contactUsMessage = '<p class="additional-status-message">Please refresh this page and try again. If you keep getting this error, go to tyler.com and click Feedback on the left to get assistance from us. We reply within 24 hours.</p>';
     537                this.contactUsMessage = '<p class="additional-status-message">' + superBlankLocalizer.translation.please_refresh_page + '</p>';
    538538                this.pluginVersion = superBlankLocalizer.plugin_version;
    539539                this.heartBeat();
  • super-blank/trunk/inc/admin-pages.php

    r3195174 r3221684  
    4545
    4646                <p class="super-blank-description">
    47                     <?php printf(esc_html__('Add pages, install theme, configure your design, and more.')); ?>
     47                    <?php esc_html_e('Add pages, install theme, configure your design, and more.', 'super-blank'); ?>
    4848                </p>
    4949
  • super-blank/trunk/inc/enqueue-scripts.php

    r3191074 r3221684  
    5656                    ]
    5757                ],
     58                'translation' => [
     59                    'starting_fresh_site' => __('Starting fresh site...', 'super-blank'),
     60                    'deep_cleanup' => __('Deep cleanup...', 'super-blank'),
     61                    'removing_extra_tables' => __('Removing extra tables...', 'super-blank'),
     62                    'getting_design_ready' => __('Getting design ready...', 'super-blank'),
     63                    'activating_astra_theme' => __('Activating Astra theme...', 'super-blank'),
     64                    'installing_elementor_plugin' => __('Installing Elementor plugin...', 'super-blank'),
     65                    'installing_wpforms_plugin' => __('Installing WP Forms plugin...', 'super-blank'),
     66                    'creating_menu' => __('Creating menu...', 'super-blank'),
     67                    'creating_pages' => __('Creating pages...', 'super-blank'),
     68                    'website_settings' => __('Website settings...', 'super-blank'),
     69
     70                    'please_confirm_import' => __('Please, confirm that you understand this action will delete and replace your entire website.', 'super-blank'),
     71                    'are_you_sure_import_title' => __('Are you sure you want to proceed with the import?', 'super-blank'),
     72
     73                    'please_refresh_page' => __('Please refresh this page and try again. If you keep getting this error, go to tyler.com and click Feedback on the left to get assistance from us. We reply within 24 hours.', 'super-blank'),
     74
     75                    'all_done_title' => __('All done! Your new website is ready.', 'super-blank'),
     76
     77                    'content_imported_successfully' => __('Content Imported successfully!', 'super-blank'),
     78
     79                    'view_website' => __('View website', 'super-blank'),
     80                    'import_done' => __('Done!', 'super-blank'),
     81                    'import_failed' => __('Failed', 'super-blank'),
     82                    'installing_progress' => __('Installing', 'super-blank'),
     83
     84                ]
    5885            ]
    5986        );
  • super-blank/trunk/readme.txt

    r3218370 r3221684  
    44Requires at least: 5.9
    55Tested up to: 6.7
    6 Stable tag: 1.0.9
     6Stable tag: 1.1.0
    77Requires PHP: 7.4
    88License: GNU General Public License v2.0 or later
     
    7777== Changelog ==
    7878
     79= 1.1.0 =
     80* Added an ability to translate the plugin
     81
    7982= 1.0.9 =
    8083* Fixed issues with Astra theme palette
  • super-blank/trunk/super-blank.php

    r3218370 r3221684  
    66 * Author:            Tyler Moore
    77 * Author URI:        https://tyler.com/
    8  * Version:           1.0.9
     8 * Version:           1.1.0
    99 * Text Domain:       super-blank
    1010 * License:           GPLv2 or later
     
    2323if (!defined('SUPER_BLANK_PLUGIN_VERSION')) {
    2424
    25     define('SUPER_BLANK_PLUGIN_VERSION', '1.0.9'); // '1.0.9'
     25    define('SUPER_BLANK_PLUGIN_VERSION', '1.1.0'); // '1.1.0'
    2626}
    2727
Note: See TracChangeset for help on using the changeset viewer.