Plugin Directory

Changeset 1127167


Ignore:
Timestamp:
04/03/2015 04:11:50 PM (11 years ago)
Author:
seoringer
Message:

Universal translation added.

Location:
simple-voting/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • simple-voting/trunk/README.txt

    r1126499 r1127167  
    1414
    1515You can see a demo examples at [Seoringer.com](http://seoringer.com/simple-voting-plugin-for-wordpress/ "simple voting plugin for WordPress").
    16 Plugin has a Russian translation.
     16
     17Plugin will take traslation from your WordPress installation, based on the locale of your site. So, if you have
     18German-localized WordPress with de_DE site locale, plugin will show German labels, if your WordPress is
     19Russian-localized with ru_RU locale, plugin will show Russian labels, and so on.
    1720
    1821Any questions and bug reports are welcomed at [email protected]
  • simple-voting/trunk/core/class-shortcode-processor-_-simple-voting.php

    r1120453 r1127167  
    125125            $plugin_url = plugin_dir_url( dirname( __FILE__ ) );
    126126           
    127             $userNameLabel = __("Your name:", "simple-voting");
    128             $userCommentLabel = __("Comments:", "simple-voting");
    129             $ratingLabel = __("Please rate:", "simple-voting");
     127            $userNameLabel = __("Please enter a username." );
     128            if( "Please enter a username." == $userNameLabel ) $userNameLabel = __("Your name:", "simple-voting");
     129            $userCommentLabel = __("Your Comment" );
     130            if( "Your Comment" == $userCommentLabel ) $userCommentLabel = __("Comments:", "simple-voting");
     131            //$ratingLabel = __("Please rate:", "simple-voting");
     132            $ratingLabel = " ";
    130133           
    131134            $svNonce = wp_create_nonce( "simple-voting" );
     
    142145                        <div class="user-data-_-simple-voting">
    143146                            <DIV name="svUserNameGroup">
    144                                 <label class="text-label-_-simple-voting"><span class="mandatory">*</span>{$userNameLabel}</label>
     147                                <label name="sv-user-name-label" class="text-label-_-simple-voting"><span class="mandatory">*</span>{$userNameLabel}</label>
    145148                                <input name="svUserName" class="text-input-_-simple-voting" type="text"></input>
    146149                            </DIV>
    147150                            <DIV name="svUserEmailGroup">
    148                                 <label class="text-label-_-simple-voting"><span class="mandatory">*</span>Email:</label>
     151                                <label name="sv-user-email-label" class="text-label-_-simple-voting"><span class="mandatory">*</span>Email:</label>
    149152                                <input name="svUserEmail" class="text-input-_-simple-voting" type="email"></input>
    150153                            </DIV>
    151154                            <DIV>
    152                                 <label class="text-label-_-simple-voting">{$userCommentLabel}</label>
     155                                <label name="sv-user-comment-label" class="text-label-_-simple-voting">{$userCommentLabel}</label>
    153156                                <textarea name="svUserComment" class="text-input-_-simple-voting user-comment-_-simple-voting"></textarea>
    154157                            </DIV>
     
    156159                    </form>
    157160                    <div name="svVotingGroup">
    158                         <div name='svVotingLabel'>{$ratingLabel}</div>
     161                        <div class='voting-label-_-simple-voting'>{$ratingLabel}</div>
    159162                        <div name="svVotingElements">
    160163svHtml_part1;
  • simple-voting/trunk/core/css/voting-_-simple-voting.css

    r1126495 r1127167  
    4040
    4141/* Minor adjustments */
    42 #svVotingLabel { padding-bottom: 5px; }
     42.voting-label-_-simple-voting:after {
     43  content: '\A';
     44  white-space: pre-wrap;
     45  padding-bottom: 5px;
     46}
     47.voting-label-_-simple-voting {
     48  padding-bottom: 5px;
     49  white-space: pre-wrap;
     50}
     51
     52
    4353#svFinalRating { font-size: 14px;   font-weight: bold; }
    4454
Note: See TracChangeset for help on using the changeset viewer.