Plugin Directory

Changeset 1271940


Ignore:
Timestamp:
10/23/2015 05:29:19 PM (10 years ago)
Author:
motaword
Message:

Improved notifications for Multisite support

Location:
motaword/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • motaword/trunk/admin/class-motaword-admin.php

    r1271923 r1271940  
    11831183
    11841184            <?php if ( isset( $_GET['activated'] ) ): ?>
    1185                 <div class="updated"><p>Let's make sure you put your API client ID and secret here. If you have any
    1186                         questions, just head to <a href="https://www.motaword.com/developer" target="_blank">documentation</a>.
     1185                <div class="updated"><p>
     1186                        <?php _e('Let\'s make sure you put your API client ID and secret here. If you have any
     1187                        questions, just head to <a href="https://www.motaword.com/developer" target="_blank">documentation</a>.', 'motaword'); ?>
     1188
     1189                        <?php if($network): ?>
     1190                            <?php _e('Remember, you can also specify different API clients for your sites by visiting MotaWord settings page in each site\'s admin section.', 'motaword'); ?>
     1191                        <?php endif; ?>
    11871192                    </p></div>
    11881193            <?php endif; ?>
  • motaword/trunk/languages/motaword.pot

    r1265182 r1271940  
    11# Copyright (C) 2015 MotaWord
    22# This file is distributed under the same license as the MotaWord package.
     3# Use this command to generate this POT file automatically:
     4# php trunk/trunk/tools/i18n/makepot.php wp-plugin wp-content/plugins/motaword wp-content/plugins/motaword/languages/motaword.pot
    35msgid ""
    46msgstr ""
    57"Project-Id-Version: MotaWord 1.0.0\n"
    68"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/motaword\n"
    7 "POT-Creation-Date: 2015-10-13 16:54:32+00:00\n"
     9"POT-Creation-Date: 2015-10-23 17:27:02+00:00\n"
    810"MIME-Version: 1.0\n"
    911"Content-Type: text/plain; charset=UTF-8\n"
    1012"Content-Transfer-Encoding: 8bit\n"
    11 "PO-Revision-Date: 2015-10-13 16:54:32+00:00\n"
    12 "Last-Translator: Oytun Tez <[email protected]>\n"
    13 "Language-Team: MotaWord <[email protected]>\n"
     13"PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
     14"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     15"Language-Team: LANGUAGE <[email protected]>\n"
    1416
    1517#. #-#-#-#-#  motaword.pot (MotaWord 1.0.0)  #-#-#-#-#
    1618#. Plugin Name of the plugin/theme
    17 #: admin/class-motaword-admin.php:151 admin/class-motaword-admin.php:1143
     19#: admin/class-motaword-admin.php:141 admin/class-motaword-admin.php:1147
    1820msgid "MotaWord"
    1921msgstr ""
    2022
    21 #: admin/class-motaword-admin.php:263 admin/class-motaword-admin.php:361
    22 #: admin/class-motaword-admin.php:364
     23#: admin/class-motaword-admin.php:254 admin/class-motaword-admin.php:352
     24#: admin/class-motaword-admin.php:355
    2325msgid "Save this post in order to send to MotaWord for translation."
    2426msgstr ""
    2527
    26 #: admin/class-motaword-admin.php:325 admin/class-motaword-admin.php:986
     28#: admin/class-motaword-admin.php:316 admin/class-motaword-admin.php:990
    2729msgid "%1$s to %2$s"
    2830msgstr ""
    2931
    30 #: admin/class-motaword-admin.php:330
     32#: admin/class-motaword-admin.php:321
    3133msgid "Send to MotaWord"
    3234msgstr ""
    3335
    34 #: admin/class-motaword-admin.php:353
     36#: admin/class-motaword-admin.php:344
    3537msgid "[Translating...]"
    3638msgstr ""
    3739
    38 #: admin/class-motaword-admin.php:356
     40#: admin/class-motaword-admin.php:347
    3941msgid "%s [translating]"
    4042msgstr ""
    4143
    42 #: admin/class-motaword-admin.php:377
     44#: admin/class-motaword-admin.php:368
    4345msgid ""
    4446"MotaWord API credentials that you provided are wrong. Please check them on "
     
    4648msgstr ""
    4749
    48 #: admin/class-motaword-admin.php:384
     50#: admin/class-motaword-admin.php:375
    4951msgid ""
    5052"We encountered an error while processing your request. Please try again or "
     
    5254msgstr ""
    5355
    54 #: admin/class-motaword-admin.php:508
     56#: admin/class-motaword-admin.php:499
    5557msgid "From %1$s to %2$s"
    5658msgstr ""
    5759
    58 #: admin/class-motaword-admin.php:515
     60#: admin/class-motaword-admin.php:506
    5961msgid "Completed."
    6062msgstr ""
    6163
    62 #: admin/class-motaword-admin.php:519
     64#: admin/class-motaword-admin.php:510
    6365msgid "Translation progress: <strong>%d</strong>%%"
    6466msgstr ""
    6567
    66 #: admin/class-motaword-admin.php:525
     68#: admin/class-motaword-admin.php:516
    6769msgid ""
    6870"Translated and currently being proofread: <strong>%d</strong>%% completed."
    6971msgstr ""
    7072
    71 #: admin/class-motaword-admin.php:529
     73#: admin/class-motaword-admin.php:520
    7274msgid "Completed. Waiting to be finalized."
    7375msgstr ""
    7476
    75 #: admin/class-motaword-admin.php:536
     77#: admin/class-motaword-admin.php:527
    7678msgid "Translation by <a href=\"%s\" target=\"_blank\">MotaWord</a>"
    7779msgstr ""
    7880
    79 #: admin/class-motaword-admin.php:778
     81#: admin/class-motaword-admin.php:664
     82msgid "MotaWord Settings"
     83msgstr ""
     84
     85#: admin/class-motaword-admin.php:781
    8086msgid ""
    8187"An error occurred while submitting your posts to MotaWord for a quote: %s"
    8288msgstr ""
    8389
    84 #: admin/class-motaword-admin.php:797
     90#: admin/class-motaword-admin.php:800
    8591msgid ""
    8692"We can translate this WordPress post for just <strong>%1$s%2$s</strong>."
     
    9096msgstr[1] ""
    9197
    92 #: admin/class-motaword-admin.php:808
     98#: admin/class-motaword-admin.php:811
    9399msgid "OUR QUOTE IS BASED ON <strong>%1$d</strong> WORDS."
    94100msgid_plural ""
     
    97103msgstr[1] ""
    98104
    99 #: admin/class-motaword-admin.php:828
     105#: admin/class-motaword-admin.php:831
    100106msgid "Start Project"
    101107msgstr ""
    102108
    103 #: admin/class-motaword-admin.php:831 admin/class-motaword-admin.php:994
    104 #: admin/class-motaword-admin.php:1126
     109#: admin/class-motaword-admin.php:834 admin/class-motaword-admin.php:998
     110#: admin/class-motaword-admin.php:1130
    105111msgid ""
    106112"Have questions? <a href=\"https://www.motaword.com/contact\" target=\"_blank"
     
    108114msgstr ""
    109115
    110 #: admin/class-motaword-admin.php:899
     116#: admin/class-motaword-admin.php:902
    111117msgid ""
    112118"Source languages of the posts you selected don't match. Please select the "
     
    114120msgstr ""
    115121
    116 #: admin/class-motaword-admin.php:930
     122#: admin/class-motaword-admin.php:934
    117123msgid "You have selected %d post."
    118124msgid_plural "You have selected %d posts."
     
    120126msgstr[1] ""
    121127
    122 #: admin/class-motaword-admin.php:939
     128#: admin/class-motaword-admin.php:943
    123129msgid ""
    124130"To get your quote, please select your translation languages and continue."
    125131msgstr ""
    126132
    127 #: admin/class-motaword-admin.php:991
     133#: admin/class-motaword-admin.php:995
    128134msgid "Continue to get a quote"
    129135msgstr ""
    130136
    131 #: admin/class-motaword-admin.php:1103
     137#: admin/class-motaword-admin.php:1107
    132138msgid "Your post has been submitted for translation!"
    133139msgid_plural "Your posts have been submitted for translation!"
     
    135141msgstr[1] ""
    136142
    137 #: admin/class-motaword-admin.php:1110
     143#: admin/class-motaword-admin.php:1114
    138144msgid ""
    139145"You can track its progress on post editing screen or <a href=\"https://www."
     
    145151msgstr[1] ""
    146152
    147 #: admin/class-motaword-admin.php:1180
     153#: admin/class-motaword-admin.php:1186
     154msgid ""
     155"Let's make sure you put your API client ID and secret here. If you have any"
     156"\r\n"
     157"\t\t\t\t\t\tquestions, just head to <a href=\"https://www.motaword.com/"
     158"developer\" target=\"_blank\">documentation</a>."
     159msgstr ""
     160
     161#: admin/class-motaword-admin.php:1190
     162msgid ""
     163"Remember, you can also specify different API clients for your sites by "
     164"visiting MotaWord settings page in each site's admin section."
     165msgstr ""
     166
     167#: admin/class-motaword-admin.php:1200
    148168msgid "API Client ID:"
    149169msgstr ""
    150170
    151 #: admin/class-motaword-admin.php:1185
     171#: admin/class-motaword-admin.php:1205
    152172msgid "API Client Secret:"
    153173msgstr ""
    154174
    155 #: admin/class-motaword-admin.php:1190
     175#: admin/class-motaword-admin.php:1210
    156176msgid "Sandbox mode:"
    157177msgstr ""
    158178
    159 #: admin/class-motaword-admin.php:1197
     179#: admin/class-motaword-admin.php:1217
    160180msgid "Save Changes"
    161181msgstr ""
    162182
    163 #: admin/class-motaword-admin.php:1322
     183#: admin/class-motaword-admin.php:1346
    164184msgid "Translation of this post was completed."
    165185msgstr ""
    166186
    167 #: admin/class-motaword-admin.php:1330
     187#: admin/class-motaword-admin.php:1354
    168188msgid ""
    169189"We are still working on the translation of this post.\n"
     
    173193msgstr ""
    174194
    175 #: admin/class-motaword-admin.php:1359
     195#: admin/class-motaword-admin.php:1385
    176196msgid "MotaWord Summary"
    177197msgstr ""
     
    185205
    186206#. Description of the plugin/theme
    187 msgid "This plugin is for MotaWord.com registered users."
     207msgid ""
     208"MotaWord plugin allows you to seamlessly submit your posts for translation "
     209"to MotaWord."
    188210msgstr ""
    189211
  • motaword/trunk/motaword.php

    r1265236 r1271940  
    4343function activated_motaword( $plugin ) {
    4444    if ( strpos($plugin, '/motaword.php') > -1 && ! isset( $_GET['activate-multi'] ) ) {
    45         wp_redirect( admin_url( 'options-general.php?page=motaword&activated=1' ) );
     45        if(is_multisite() && function_exists('network_admin_url')) {
     46            wp_redirect( network_admin_url( 'settings.php?page=motaword&activated=1' ) );
     47        } else {
     48            wp_redirect( admin_url( 'options-general.php?page=motaword&activated=1' ) );
     49        }
     50
    4651        exit();
    4752    }
Note: See TracChangeset for help on using the changeset viewer.