WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (6 weeks ago)
Author:
SergeyBiryukov
Message:

I18N: Capitalize translator comments consistently, add trailing punctuation.

Includes minor code layout fixes.

See #44360.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-privacy-policy-content.php

    r45926 r45932  
    141141            <?php
    142142                printf(
    143                     /* translators: %s: Privacy Policy Guide URL */
     143                    /* translators: %s: Privacy Policy Guide URL. */
    144144                    __( 'The suggested privacy policy text has changed. Please <a href="%s">review the guide</a> and update your privacy policy.' ),
    145145                    esc_url( admin_url( 'privacy-policy-guide.php' ) )
     
    354354                    $url,
    355355                    $label,
    356                     /* translators: accessibility text */
     356                    /* translators: Accessibility text. */
    357357                    __( '(opens in a new tab)' )
    358358                );
     
    387387                $class = ' text-removed';
    388388                $date  = date_i18n( $date_format, $section['removed'] );
    389                 /* translators: %s: date of plugin deactivation */
     389                /* translators: %s: Date of plugin deactivation. */
    390390                $meta = sprintf( __( 'Removed %s.' ), $date );
    391391
    392                 /* translators: %s: date of plugin deactivation */
     392                /* translators: %s: Date of plugin deactivation. */
    393393                $removed = __( 'You deactivated this plugin on %s and may no longer need this policy.' );
    394394                $removed = '<div class="error inline"><p>' . sprintf( $removed, $date ) . '</p></div>';
     
    396396                $class = ' text-updated';
    397397                $date  = date_i18n( $date_format, $section['updated'] );
    398                 /* translators: %s: date of privacy policy text update */
     398                /* translators: %s: Date of privacy policy text update. */
    399399                $meta = sprintf( __( 'Updated %s.' ), $date );
    400400            }
     
    410410            $content .= '<div class="privacy-text-section' . $class . '">';
    411411            $content .= '<a id="' . $toc_id . '">&nbsp;</a>';
    412             /* translators: %s: plugin name */
     412            /* translators: %s: Plugin name. */
    413413            $content .= '<h2>' . sprintf( __( 'Source: %s' ), $plugin_name ) . '</h2>';
    414414            $content .= $removed;
     
    422422                        $content .= $copy;
    423423                        $content .= '<span class="screen-reader-text">';
    424                         /* translators: %s: plugin name */
     424                        /* translators: %s: Plugin name. */
    425425                        $content .= sprintf( __( 'Copy suggested policy text from %s.' ), $plugin_name );
    426426                        $content .= '</span>';
     
    482482        }
    483483
    484         /* translators: default privacy policy heading. */
     484        /* translators: Default privacy policy heading. */
    485485        $strings[] = '<h2>' . __( 'Who we are' ) . '</h2>';
    486486
    487487        if ( $description ) {
    488             /* translators: privacy policy tutorial. */
     488            /* translators: Privacy policy tutorial. */
    489489            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this section you should note your site URL, as well as the name of the company, organization, or individual behind it, and some accurate contact information.' ) . '</p>';
    490             /* translators: privacy policy tutorial. */
     490            /* translators: Privacy policy tutorial. */
    491491            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'The amount of information you may be required to show will vary depending on your local or national business regulations. You may, for example, be required to display a physical address, a registered address, or your company registration number.' ) . '</p>';
    492492        }
    493493
    494         /* translators: default privacy policy text, %s Site URL. */
     494        /* translators: Default privacy policy text. %s: Site URL. */
    495495        $strings[] = '<p>' . $suggested_text . sprintf( __( 'Our website address is: %s.' ), get_bloginfo( 'url', 'display' ) ) . '</p>';
    496496
    497         /* translators: default privacy policy heading. */
     497        /* translators: Default privacy policy heading. */
    498498        $strings[] = '<h2>' . __( 'What personal data we collect and why we collect it' ) . '</h2>';
    499499
    500500        if ( $description ) {
    501             /* translators: privacy policy tutorial. */
     501            /* translators: Privacy policy tutorial. */
    502502            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this section you should note what personal data you collect from users and site visitors. This may include personal data, such as name, email address, personal account preferences; transactional data, such as purchase information; and technical data, such as information about cookies.' ) . '</p>';
    503             /* translators: privacy policy tutorial. */
     503            /* translators: Privacy policy tutorial. */
    504504            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'You should also note any collection and retention of sensitive personal data, such as data concerning health.' ) . '</p>';
    505             /* translators: privacy policy tutorial. */
     505            /* translators: Privacy policy tutorial. */
    506506            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'In addition to listing what personal data you collect, you need to note why you collect it. These explanations must note either the legal basis for your data collection and retention or the active consent the user has given.' ) . '</p>';
    507             /* translators: privacy policy tutorial. */
     507            /* translators: Privacy policy tutorial. */
    508508            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'Personal data is not just created by a user&#8217;s interactions with your site. Personal data is also generated from technical processes such as contact forms, comments, cookies, analytics, and third party embeds.' ) . '</p>';
    509             /* translators: privacy policy tutorial. */
     509            /* translators: Privacy policy tutorial. */
    510510            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'By default WordPress does not collect any personal data about visitors, and only collects the data shown on the User Profile screen from registered users. However some of your plugins may collect personal data. You should add the relevant information below.' ) . '</p>';
    511511        }
    512512
    513         /* translators: default privacy policy heading. */
     513        /* translators: Default privacy policy heading. */
    514514        $strings[] = '<h3>' . __( 'Comments' ) . '</h3>';
    515515
    516516        if ( $description ) {
    517             /* translators: privacy policy tutorial. */
     517            /* translators: Privacy policy tutorial. */
    518518            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this subsection you should note what information is captured through comments. We have noted the data which WordPress collects by default.' ) . '</p>';
    519519        }
    520520
    521         /* translators: default privacy policy text. */
     521        /* translators: Default privacy policy text. */
    522522        $strings[] = '<p>' . $suggested_text . __( 'When visitors leave comments on the site we collect the data shown in the comments form, and also the visitor&#8217;s IP address and browser user agent string to help spam detection.' ) . '</p>';
    523         /* translators: default privacy policy text. */
     523        /* translators: Default privacy policy text. */
    524524        $strings[] = '<p>' . __( 'An anonymized string created from your email address (also called a hash) may be provided to the Gravatar service to see if you are using it. The Gravatar service privacy policy is available here: https://automattic.com/privacy/. After approval of your comment, your profile picture is visible to the public in the context of your comment.' ) . '</p>';
    525525
    526         /* translators: default privacy policy heading. */
     526        /* translators: Default privacy policy heading. */
    527527        $strings[] = '<h3>' . __( 'Media' ) . '</h3>';
    528528
    529529        if ( $description ) {
    530             /* translators: privacy policy tutorial. */
     530            /* translators: Privacy policy tutorial. */
    531531            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this subsection you should note what information may be disclosed by users who can upload media files. All uploaded files are usually publicly accessible.' ) . '</p>';
    532532        }
    533533
    534         /* translators: default privacy policy text. */
     534        /* translators: Default privacy policy text. */
    535535        $strings[] = '<p>' . $suggested_text . __( 'If you upload images to the website, you should avoid uploading images with embedded location data (EXIF GPS) included. Visitors to the website can download and extract any location data from images on the website.' ) . '</p>';
    536536
    537         /* translators: default privacy policy heading. */
     537        /* translators: Default privacy policy heading. */
    538538        $strings[] = '<h3>' . __( 'Contact forms' ) . '</h3>';
    539539
    540540        if ( $description ) {
    541             /* translators: privacy policy tutorial. */
     541            /* translators: Privacy policy tutorial. */
    542542            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'By default, WordPress does not include a contact form. If you use a contact form plugin, use this subsection to note what personal data is captured when someone submits a contact form, and how long you keep it. For example, you may note that you keep contact form submissions for a certain period for customer service purposes, but you do not use the information submitted through them for marketing purposes.' ) . '</p>';
    543543        }
    544544
    545         /* translators: default privacy policy heading. */
     545        /* translators: Default privacy policy heading. */
    546546        $strings[] = '<h3>' . __( 'Cookies' ) . '</h3>';
    547547
    548548        if ( $description ) {
    549             /* translators: privacy policy tutorial. */
     549            /* translators: Privacy policy tutorial. */
    550550            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this subsection you should list the cookies your web site uses, including those set by your plugins, social media, and analytics. We have provided the cookies which WordPress installs by default.' ) . '</p>';
    551551        }
    552552
    553         /* translators: default privacy policy text. */
     553        /* translators: Default privacy policy text. */
    554554        $strings[] = '<p>' . $suggested_text . __( 'If you leave a comment on our site you may opt-in to saving your name, email address and website in cookies. These are for your convenience so that you do not have to fill in your details again when you leave another comment. These cookies will last for one year.' ) . '</p>';
    555         /* translators: default privacy policy text. */
     555        /* translators: Default privacy policy text. */
    556556        $strings[] = '<p>' . __( 'If you visit our login page, we will set a temporary cookie to determine if your browser accepts cookies. This cookie contains no personal data and is discarded when you close your browser.' ) . '</p>';
    557         /* translators: default privacy policy text. */
     557        /* translators: Default privacy policy text. */
    558558        $strings[] = '<p>' . __( 'When you log in, we will also set up several cookies to save your login information and your screen display choices. Login cookies last for two days, and screen options cookies last for a year. If you select &quot;Remember Me&quot;, your login will persist for two weeks. If you log out of your account, the login cookies will be removed.' ) . '</p>';
    559         /* translators: default privacy policy text. */
     559        /* translators: Default privacy policy text. */
    560560        $strings[] = '<p>' . __( 'If you edit or publish an article, an additional cookie will be saved in your browser. This cookie includes no personal data and simply indicates the post ID of the article you just edited. It expires after 1 day.' ) . '</p>';
    561561
    562         /* translators: default privacy policy heading. */
     562        /* translators: Default privacy policy heading. */
    563563        $strings[] = '<h3>' . __( 'Embedded content from other websites' ) . '</h3>';
    564         /* translators: default privacy policy text. */
     564        /* translators: Default privacy policy text. */
    565565        $strings[] = '<p>' . $suggested_text . __( 'Articles on this site may include embedded content (e.g. videos, images, articles, etc.). Embedded content from other websites behaves in the exact same way as if the visitor has visited the other website.' ) . '</p>';
    566         /* translators: default privacy policy text. */
     566        /* translators: Default privacy policy text. */
    567567        $strings[] = '<p>' . __( 'These websites may collect data about you, use cookies, embed additional third-party tracking, and monitor your interaction with that embedded content, including tracking your interaction with the embedded content if you have an account and are logged in to that website.' ) . '</p>';
    568568
    569         /* translators: default privacy policy heading. */
     569        /* translators: Default privacy policy heading. */
    570570        $strings[] = '<h3>' . __( 'Analytics' ) . '</h3>';
    571571
    572572        if ( $description ) {
    573             /* translators: privacy policy tutorial. */
     573            /* translators: Privacy policy tutorial. */
    574574            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this subsection you should note what analytics package you use, how users can opt out of analytics tracking, and a link to your analytics provider&#8217;s privacy policy, if any.' ) . '</p>';
    575             /* translators: privacy policy tutorial. */
     575            /* translators: Privacy policy tutorial. */
    576576            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'By default WordPress does not collect any analytics data. However, many web hosting accounts collect some anonymous analytics data. You may also have installed a WordPress plugin that provides analytics services. In that case, add information from that plugin here.' ) . '</p>';
    577577        }
    578578
    579         /* translators: default privacy policy heading. */
     579        /* translators: Default privacy policy heading. */
    580580        $strings[] = '<h2>' . __( 'Who we share your data with' ) . '</h2>';
    581581
    582582        if ( $description ) {
    583             /* translators: privacy policy tutorial. */
     583            /* translators: Privacy policy tutorial. */
    584584            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this section you should name and list all third party providers with whom you share site data, including partners, cloud-based services, payment processors, and third party service providers, and note what data you share with them and why. Link to their own privacy policies if possible.' ) . '</p>';
    585             /* translators: privacy policy tutorial. */
     585            /* translators: Privacy policy tutorial. */
    586586            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'By default WordPress does not share any personal data with anyone.' ) . '</p>';
    587587        }
    588588
    589         /* translators: default privacy policy heading. */
     589        /* translators: Default privacy policy heading. */
    590590        $strings[] = '<h2>' . __( 'How long we retain your data' ) . '</h2>';
    591591
    592592        if ( $description ) {
    593             /* translators: privacy policy tutorial. */
     593            /* translators: Privacy policy tutorial. */
    594594            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this section you should explain how long you retain personal data collected or processed by the web site. While it is your responsibility to come up with the schedule of how long you keep each dataset for and why you keep it, that information does need to be listed here. For example, you may want to say that you keep contact form entries for six months, analytics records for a year, and customer purchase records for ten years.' ) . '</p>';
    595595        }
    596596
    597         /* translators: default privacy policy text. */
     597        /* translators: Default privacy policy text. */
    598598        $strings[] = '<p>' . $suggested_text . __( 'If you leave a comment, the comment and its metadata are retained indefinitely. This is so we can recognize and approve any follow-up comments automatically instead of holding them in a moderation queue.' ) . '</p>';
    599         /* translators: default privacy policy text. */
     599        /* translators: Default privacy policy text. */
    600600        $strings[] = '<p>' . __( 'For users that register on our website (if any), we also store the personal information they provide in their user profile. All users can see, edit, or delete their personal information at any time (except they cannot change their username). Website administrators can also see and edit that information.' ) . '</p>';
    601601
    602         /* translators: default privacy policy heading. */
     602        /* translators: Default privacy policy heading. */
    603603        $strings[] = '<h2>' . __( 'What rights you have over your data' ) . '</h2>';
    604604
    605605        if ( $description ) {
    606             /* translators: privacy policy tutorial. */
     606            /* translators: Privacy policy tutorial. */
    607607            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this section you should explain what rights your users have over their data and how they can invoke those rights.' ) . '</p>';
    608608        }
    609609
    610         /* translators: default privacy policy text. */
     610        /* translators: Default privacy policy text. */
    611611        $strings[] = '<p>' . $suggested_text . __( 'If you have an account on this site, or have left comments, you can request to receive an exported file of the personal data we hold about you, including any data you have provided to us. You can also request that we erase any personal data we hold about you. This does not include any data we are obliged to keep for administrative, legal, or security purposes.' ) . '</p>';
    612612
    613         /* translators: default privacy policy heading. */
     613        /* translators: Default privacy policy heading. */
    614614        $strings[] = '<h2>' . __( 'Where we send your data' ) . '</h2>';
    615615
    616616        if ( $description ) {
    617             /* translators: privacy policy tutorial. */
     617            /* translators: Privacy policy tutorial. */
    618618            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this section you should list all transfers of your site data outside the European Union and describe the means by which that data is safeguarded to European data protection standards. This could include your web hosting, cloud storage, or other third party services.' ) . '</p>';
    619             /* translators: privacy policy tutorial. */
     619            /* translators: Privacy policy tutorial. */
    620620            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'European data protection law requires data about European residents which is transferred outside the European Union to be safeguarded to the same standards as if the data was in Europe. So in addition to listing where data goes, you should describe how you ensure that these standards are met either by yourself or by your third party providers, whether that is through an agreement such as Privacy Shield, model clauses in your contracts, or binding corporate rules.' ) . '</p>';
    621621        }
    622622
    623         /* translators: default privacy policy text. */
     623        /* translators: Default privacy policy text. */
    624624        $strings[] = '<p>' . $suggested_text . __( 'Visitor comments may be checked through an automated spam detection service.' ) . '</p>';
    625625
    626         /* translators: default privacy policy heading. */
     626        /* translators: Default privacy policy heading. */
    627627        $strings[] = '<h2>' . __( 'Your contact information' ) . '</h2>';
    628628
    629629        if ( $description ) {
    630             /* translators: privacy policy tutorial. */
     630            /* translators: Privacy policy tutorial. */
    631631            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this section you should provide a contact method for privacy-specific concerns. If you are required to have a Data Protection Officer, list their name and full contact details here as well.' ) . '</p>';
    632632        }
    633633
    634         /* translators: default privacy policy heading. */
     634        /* translators: Default privacy policy heading. */
    635635        $strings[] = '<h2>' . __( 'Additional information' ) . '</h2>';
    636636
    637637        if ( $description ) {
    638             /* translators: privacy policy tutorial. */
     638            /* translators: Privacy policy tutorial. */
    639639            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'If you use your site for commercial purposes and you engage in more complex collection or processing of personal data, you should note the following information in your privacy policy in addition to the information we have already discussed.' ) . '</p>';
    640640        }
    641641
    642         /* translators: default privacy policy heading. */
     642        /* translators: Default privacy policy heading. */
    643643        $strings[] = '<h3>' . __( 'How we protect your data' ) . '</h3>';
    644644
    645645        if ( $description ) {
    646             /* translators: privacy policy tutorial. */
     646            /* translators: Privacy policy tutorial. */
    647647            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this section you should explain what measures you have taken to protect your users&#8217; data. This could include technical measures such as encryption; security measures such as two factor authentication; and measures such as staff training in data protection. If you have carried out a Privacy Impact Assessment, you can mention it here too.' ) . '</p>';
    648648        }
    649649
    650         /* translators: default privacy policy heading. */
     650        /* translators: Default privacy policy heading. */
    651651        $strings[] = '<h3>' . __( 'What data breach procedures we have in place' ) . '</h3>';
    652652
    653653        if ( $description ) {
    654             /* translators: privacy policy tutorial. */
     654            /* translators: Privacy policy tutorial. */
    655655            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'In this section you should explain what procedures you have in place to deal with data breaches, either potential or real, such as internal reporting systems, contact mechanisms, or bug bounties.' ) . '</p>';
    656656        }
    657657
    658         /* translators: default privacy policy heading. */
     658        /* translators: Default privacy policy heading. */
    659659        $strings[] = '<h3>' . __( 'What third parties we receive data from' ) . '</h3>';
    660660
    661661        if ( $description ) {
    662             /* translators: privacy policy tutorial. */
     662            /* translators: Privacy policy tutorial. */
    663663            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'If your web site receives data about users from third parties, including advertisers, this information must be included within the section of your privacy policy dealing with third party data.' ) . '</p>';
    664664        }
    665665
    666         /* translators: default privacy policy heading. */
     666        /* translators: Default privacy policy heading. */
    667667        $strings[] = '<h3>' . __( 'What automated decision making and/or profiling we do with user data' ) . '</h3>';
    668668
    669669        if ( $description ) {
    670             /* translators: privacy policy tutorial. */
     670            /* translators: Privacy policy tutorial. */
    671671            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'If your web site provides a service which includes automated decision making - for example, allowing customers to apply for credit, or aggregating their data into an advertising profile - you must note that this is taking place, and include information about how that information is used, what decisions are made with that aggregated data, and what rights users have over decisions made without human intervention.' ) . '</p>';
    672672        }
    673673
    674         /* translators: default privacy policy heading. */
     674        /* translators: Default privacy policy heading. */
    675675        $strings[] = '<h3>' . __( 'Industry regulatory disclosure requirements' ) . '</h3>';
    676676
    677677        if ( $description ) {
    678             /* translators: privacy policy tutorial. */
     678            /* translators: Privacy policy tutorial. */
    679679            $strings[] = '<p class="privacy-policy-tutorial">' . __( 'If you are a member of a regulated industry, or if you are subject to additional privacy laws, you may be required to disclose that information here.' ) . '</p>';
    680680            $strings[] = '</div>';
Note: See TracChangeset for help on using the changeset viewer.