module-headings.php
| 1 | <?php |
| 2 | // Do not edit this file. It's generated by `jetpack/tools/build-module-headings-translations.php` |
| 3 | |
| 4 | /** |
| 5 | * For a given module, return an array with translated name and description. |
| 6 | * |
| 7 | * @param string $key Module file name without .php |
| 8 | * |
| 9 | * @return array |
| 10 | */ |
| 11 | function jetpack_get_module_i18n( $key ) { |
| 12 | static $modules; |
| 13 | if ( ! isset( $modules ) ) { |
| 14 | $modules = array( |
| 15 | 'carousel' => array( |
| 16 | 'name' => _x( 'Carousel', 'Module Name', 'jetpack' ), |
| 17 | 'description' => _x( 'Display images and galleries in a gorgeous, full-screen browsing experience', 'Module Description', 'jetpack' ), |
| 18 | ), |
| 19 | |
| 20 | 'comment-likes' => array( |
| 21 | 'name' => _x( 'Comment Likes', 'Module Name', 'jetpack' ), |
| 22 | 'description' => _x( 'Increase visitor engagement by adding a Like button to comments.', 'Module Description', 'jetpack' ), |
| 23 | ), |
| 24 | |
| 25 | 'comments' => array( |
| 26 | 'name' => _x( 'Comments', 'Module Name', 'jetpack' ), |
| 27 | 'description' => _x( 'Let visitors use a WordPress.com, Twitter, Facebook, or Google account to comment', 'Module Description', 'jetpack' ), |
| 28 | ), |
| 29 | |
| 30 | 'contact-form' => array( |
| 31 | 'name' => _x( 'Contact Form', 'Module Name', 'jetpack' ), |
| 32 | 'description' => _x( 'Add a customizable contact form to any post or page using the Jetpack Form Block.', 'Module Description', 'jetpack' ), |
| 33 | ), |
| 34 | |
| 35 | 'copy-post' => array( |
| 36 | 'name' => _x( 'Copy Post', 'Module Name', 'jetpack' ), |
| 37 | 'description' => _x( 'Enable the option to copy entire posts and pages, including tags and settings', 'Module Description', 'jetpack' ), |
| 38 | ), |
| 39 | |
| 40 | 'custom-content-types' => array( |
| 41 | 'name' => _x( 'Custom content types', 'Module Name', 'jetpack' ), |
| 42 | 'description' => _x( 'Display different types of content on your site with custom content types.', 'Module Description', 'jetpack' ), |
| 43 | ), |
| 44 | |
| 45 | 'custom-css' => array( |
| 46 | 'name' => _x( 'Custom CSS', 'Module Name', 'jetpack' ), |
| 47 | 'description' => _x( 'Adds options for CSS preprocessor use, disabling the theme\'s CSS, or custom image width.', 'Module Description', 'jetpack' ), |
| 48 | ), |
| 49 | |
| 50 | 'enhanced-distribution' => array( |
| 51 | 'name' => _x( 'Enhanced Distribution', 'Module Name', 'jetpack' ), |
| 52 | 'description' => _x( 'Increase reach and traffic.', 'Module Description', 'jetpack' ), |
| 53 | ), |
| 54 | |
| 55 | 'google-analytics' => array( |
| 56 | 'name' => _x( 'Google Analytics', 'Module Name', 'jetpack' ), |
| 57 | 'description' => _x( 'Set up Google Analytics without touching a line of code.', 'Module Description', 'jetpack' ), |
| 58 | ), |
| 59 | |
| 60 | 'gravatar-hovercards' => array( |
| 61 | 'name' => _x( 'Gravatar Hovercards', 'Module Name', 'jetpack' ), |
| 62 | 'description' => _x( 'Enable pop-up business cards over commenters’ Gravatars.', 'Module Description', 'jetpack' ), |
| 63 | ), |
| 64 | |
| 65 | 'infinite-scroll' => array( |
| 66 | 'name' => _x( 'Infinite Scroll', 'Module Name', 'jetpack' ), |
| 67 | 'description' => _x( 'Automatically load new content when a visitor scrolls', 'Module Description', 'jetpack' ), |
| 68 | ), |
| 69 | |
| 70 | 'json-api' => array( |
| 71 | 'name' => _x( 'JSON API', 'Module Name', 'jetpack' ), |
| 72 | 'description' => _x( 'Allow applications to securely access your content.', 'Module Description', 'jetpack' ), |
| 73 | ), |
| 74 | |
| 75 | 'latex' => array( |
| 76 | 'name' => _x( 'Beautiful Math', 'Module Name', 'jetpack' ), |
| 77 | 'description' => _x( 'Use the LaTeX markup language to write mathematical equations and formulas', 'Module Description', 'jetpack' ), |
| 78 | ), |
| 79 | |
| 80 | 'lazy-images' => array( |
| 81 | 'name' => _x( 'Lazy Images', 'Module Name', 'jetpack' ), |
| 82 | 'description' => _x( 'Speed up your site and create a smoother viewing experience by loading images as visitors scroll down the screen, instead of all at once.', 'Module Description', 'jetpack' ), |
| 83 | ), |
| 84 | |
| 85 | 'likes' => array( |
| 86 | 'name' => _x( 'Likes', 'Module Name', 'jetpack' ), |
| 87 | 'description' => _x( 'Give visitors an easy way to show they appreciate your content.', 'Module Description', 'jetpack' ), |
| 88 | ), |
| 89 | |
| 90 | 'markdown' => array( |
| 91 | 'name' => _x( 'Markdown', 'Module Name', 'jetpack' ), |
| 92 | 'description' => _x( 'Write posts or pages in plain-text Markdown syntax', 'Module Description', 'jetpack' ), |
| 93 | ), |
| 94 | |
| 95 | 'masterbar' => array( |
| 96 | 'name' => _x( 'WordPress.com Toolbar', 'Module Name', 'jetpack' ), |
| 97 | 'description' => _x( 'Replaces the admin bar with a useful toolbar to quickly manage your site via WordPress.com.', 'Module Description', 'jetpack' ), |
| 98 | ), |
| 99 | |
| 100 | 'minileven' => array( |
| 101 | 'name' => _x( 'Mobile Theme', 'Module Name', 'jetpack' ), |
| 102 | 'description' => _x( 'Enable the Jetpack Mobile theme', 'Module Description', 'jetpack' ), |
| 103 | ), |
| 104 | |
| 105 | 'monitor' => array( |
| 106 | 'name' => _x( 'Monitor', 'Module Name', 'jetpack' ), |
| 107 | 'description' => _x( 'Jetpack’s downtime monitoring will continuously watch your site, and alert you the moment that downtime is detected.', 'Module Description', 'jetpack' ), |
| 108 | ), |
| 109 | |
| 110 | 'notes' => array( |
| 111 | 'name' => _x( 'Notifications', 'Module Name', 'jetpack' ), |
| 112 | 'description' => _x( 'Receive instant notifications of site comments and likes.', 'Module Description', 'jetpack' ), |
| 113 | ), |
| 114 | |
| 115 | 'photon-cdn' => array( |
| 116 | 'name' => _x( 'Asset CDN', 'Module Name', 'jetpack' ), |
| 117 | 'description' => _x( 'Jetpack’s Site Accelerator loads your site faster by optimizing your images and serving your images and static files from our global network of servers.', 'Module Description', 'jetpack' ), |
| 118 | ), |
| 119 | |
| 120 | 'photon' => array( |
| 121 | 'name' => _x( 'Image CDN', 'Module Name', 'jetpack' ), |
| 122 | 'description' => _x( 'Mirrors and serves your images from our free and fast image CDN, improving your site’s performance with no additional load on your servers.', 'Module Description', 'jetpack' ), |
| 123 | ), |
| 124 | |
| 125 | 'post-by-email' => array( |
| 126 | 'name' => _x( 'Post by email', 'Module Name', 'jetpack' ), |
| 127 | 'description' => _x( 'Publish posts by sending an email', 'Module Description', 'jetpack' ), |
| 128 | ), |
| 129 | |
| 130 | 'protect' => array( |
| 131 | 'name' => _x( 'Protect', 'Module Name', 'jetpack' ), |
| 132 | 'description' => _x( 'Enabling brute force protection will prevent bots and hackers from attempting to log in to your website with common username and password combinations.', 'Module Description', 'jetpack' ), |
| 133 | ), |
| 134 | |
| 135 | 'publicize' => array( |
| 136 | 'name' => _x( 'Publicize', 'Module Name', 'jetpack' ), |
| 137 | 'description' => _x( 'Publicize makes it easy to share your site’s posts on several social media networks automatically when you publish a new post.', 'Module Description', 'jetpack' ), |
| 138 | ), |
| 139 | |
| 140 | 'pwa' => array( |
| 141 | 'name' => _x( 'Progressive Web Apps', 'Module Name', 'jetpack' ), |
| 142 | 'description' => _x( 'Speed up and improve the reliability of your site using the latest in web technology.', 'Module Description', 'jetpack' ), |
| 143 | ), |
| 144 | |
| 145 | 'related-posts' => array( |
| 146 | 'name' => _x( 'Related posts', 'Module Name', 'jetpack' ), |
| 147 | 'description' => _x( 'Keep visitors engaged on your blog by highlighting relevant and new content at the bottom of each published post.', 'Module Description', 'jetpack' ), |
| 148 | ), |
| 149 | |
| 150 | 'search' => array( |
| 151 | 'name' => _x( 'Search', 'Module Name', 'jetpack' ), |
| 152 | 'description' => _x( 'Enhanced search, powered by Elasticsearch, a powerful replacement for WordPress search.', 'Module Description', 'jetpack' ), |
| 153 | ), |
| 154 | |
| 155 | 'seo-tools' => array( |
| 156 | 'name' => _x( 'SEO Tools', 'Module Name', 'jetpack' ), |
| 157 | 'description' => _x( 'Better results on search engines and social media.', 'Module Description', 'jetpack' ), |
| 158 | ), |
| 159 | |
| 160 | 'sharedaddy' => array( |
| 161 | 'name' => _x( 'Sharing', 'Module Name', 'jetpack' ), |
| 162 | 'description' => _x( 'Add Twitter, Facebook and Google+ buttons at the bottom of each post, making it easy for visitors to share your content.', 'Module Description', 'jetpack' ), |
| 163 | ), |
| 164 | |
| 165 | 'shortcodes' => array( |
| 166 | 'name' => _x( 'Shortcode Embeds', 'Module Name', 'jetpack' ), |
| 167 | 'description' => _x( 'Shortcodes are WordPress-specific markup that let you add media from popular sites. This feature is no longer necessary as the editor now handles media embeds rather gracefully.', 'Module Description', 'jetpack' ), |
| 168 | ), |
| 169 | |
| 170 | 'shortlinks' => array( |
| 171 | 'name' => _x( 'WP.me Shortlinks', 'Module Name', 'jetpack' ), |
| 172 | 'description' => _x( 'Generates shorter links so you can have more space to write on social media sites.', 'Module Description', 'jetpack' ), |
| 173 | ), |
| 174 | |
| 175 | 'sitemaps' => array( |
| 176 | 'name' => _x( 'Sitemaps', 'Module Name', 'jetpack' ), |
| 177 | 'description' => _x( 'Make it easy for search engines to find your site.', 'Module Description', 'jetpack' ), |
| 178 | ), |
| 179 | |
| 180 | 'sso' => array( |
| 181 | 'name' => _x( 'Secure Sign On', 'Module Name', 'jetpack' ), |
| 182 | 'description' => _x( 'Allow users to log in to this site using WordPress.com accounts', 'Module Description', 'jetpack' ), |
| 183 | ), |
| 184 | |
| 185 | 'stats' => array( |
| 186 | 'name' => _x( 'Site Stats', 'Module Name', 'jetpack' ), |
| 187 | 'description' => _x( 'Collect valuable traffic stats and insights.', 'Module Description', 'jetpack' ), |
| 188 | ), |
| 189 | |
| 190 | 'subscriptions' => array( |
| 191 | 'name' => _x( 'Subscriptions', 'Module Name', 'jetpack' ), |
| 192 | 'description' => _x( 'Let visitors subscribe to new posts and comments via email', 'Module Description', 'jetpack' ), |
| 193 | ), |
| 194 | |
| 195 | 'tiled-gallery' => array( |
| 196 | 'name' => _x( 'Tiled Galleries', 'Module Name', 'jetpack' ), |
| 197 | 'description' => _x( 'Display image galleries in a variety of elegant arrangements.', 'Module Description', 'jetpack' ), |
| 198 | ), |
| 199 | |
| 200 | 'vaultpress' => array( |
| 201 | 'name' => _x( 'Backups and Scanning', 'Module Name', 'jetpack' ), |
| 202 | 'description' => _x( 'Protect your site with daily or real-time backups and automated virus scanning and threat detection.', 'Module Description', 'jetpack' ), |
| 203 | ), |
| 204 | |
| 205 | 'verification-tools' => array( |
| 206 | 'name' => _x( 'Site verification', 'Module Name', 'jetpack' ), |
| 207 | 'description' => _x( 'Establish your site\'s authenticity with external services.', 'Module Description', 'jetpack' ), |
| 208 | ), |
| 209 | |
| 210 | 'videopress' => array( |
| 211 | 'name' => _x( 'VideoPress', 'Module Name', 'jetpack' ), |
| 212 | 'description' => _x( 'Save on hosting storage and bandwidth costs by streaming fast, ad-free video from our global network.', 'Module Description', 'jetpack' ), |
| 213 | ), |
| 214 | |
| 215 | 'widget-visibility' => array( |
| 216 | 'name' => _x( 'Widget Visibility', 'Module Name', 'jetpack' ), |
| 217 | 'description' => _x( 'Control where widgets appear on your site.', 'Module Description', 'jetpack' ), |
| 218 | ), |
| 219 | |
| 220 | 'widgets' => array( |
| 221 | 'name' => _x( 'Extra Sidebar Widgets', 'Module Name', 'jetpack' ), |
| 222 | 'description' => _x( 'Provides additional widgets for use on your site.', 'Module Description', 'jetpack' ), |
| 223 | ), |
| 224 | |
| 225 | 'wordads' => array( |
| 226 | 'name' => _x( 'Ads', 'Module Name', 'jetpack' ), |
| 227 | 'description' => _x( 'Earn income by allowing Jetpack to display high quality ads.', 'Module Description', 'jetpack' ), |
| 228 | ), |
| 229 | ); |
| 230 | } |
| 231 | return $modules[ $key ]; |
| 232 | } |
| 233 | /** |
| 234 | * For a given module tag, return its translated version. |
| 235 | * |
| 236 | * @param string $key Module tag as is in each module heading. |
| 237 | * |
| 238 | * @return string |
| 239 | */ |
| 240 | function jetpack_get_module_i18n_tag( $key ) { |
| 241 | static $module_tags; |
| 242 | if ( ! isset( $module_tags ) ) { |
| 243 | $module_tags = array( |
| 244 | // Modules with `Other` tag: |
| 245 | // - modules/contact-form.php |
| 246 | // - modules/notes.php |
| 247 | 'Other' =>_x( 'Other', 'Module Tag', 'jetpack' ), |
| 248 | |
| 249 | // Modules with `Photos and Videos` tag: |
| 250 | // - modules/carousel.php |
| 251 | // - modules/photon-cdn.php |
| 252 | // - modules/photon.php |
| 253 | // - modules/shortcodes.php |
| 254 | // - modules/tiled-gallery.php |
| 255 | // - modules/videopress.php |
| 256 | 'Photos and Videos' =>_x( 'Photos and Videos', 'Module Tag', 'jetpack' ), |
| 257 | |
| 258 | // Modules with `Social` tag: |
| 259 | // - modules/comment-likes.php |
| 260 | // - modules/comments.php |
| 261 | // - modules/gravatar-hovercards.php |
| 262 | // - modules/likes.php |
| 263 | // - modules/publicize.php |
| 264 | // - modules/seo-tools.php |
| 265 | // - modules/sharedaddy.php |
| 266 | // - modules/shortcodes.php |
| 267 | // - modules/shortlinks.php |
| 268 | // - modules/subscriptions.php |
| 269 | // - modules/widgets.php |
| 270 | 'Social' =>_x( 'Social', 'Module Tag', 'jetpack' ), |
| 271 | |
| 272 | // Modules with `Writing` tag: |
| 273 | // - modules/copy-post.php |
| 274 | // - modules/custom-content-types.php |
| 275 | // - modules/enhanced-distribution.php |
| 276 | // - modules/json-api.php |
| 277 | // - modules/latex.php |
| 278 | // - modules/markdown.php |
| 279 | // - modules/post-by-email.php |
| 280 | // - modules/shortcodes.php |
| 281 | 'Writing' =>_x( 'Writing', 'Module Tag', 'jetpack' ), |
| 282 | |
| 283 | // Modules with `Appearance` tag: |
| 284 | // - modules/custom-css.php |
| 285 | // - modules/gravatar-hovercards.php |
| 286 | // - modules/infinite-scroll.php |
| 287 | // - modules/lazy-images.php |
| 288 | // - modules/minileven.php |
| 289 | // - modules/photon-cdn.php |
| 290 | // - modules/photon.php |
| 291 | // - modules/seo-tools.php |
| 292 | // - modules/shortcodes.php |
| 293 | // - modules/widget-visibility.php |
| 294 | // - modules/widgets.php |
| 295 | // - modules/wordads.php |
| 296 | 'Appearance' =>_x( 'Appearance', 'Module Tag', 'jetpack' ), |
| 297 | |
| 298 | // Modules with `Developers` tag: |
| 299 | // - modules/json-api.php |
| 300 | // - modules/pwa.php |
| 301 | // - modules/sso.php |
| 302 | 'Developers' =>_x( 'Developers', 'Module Tag', 'jetpack' ), |
| 303 | |
| 304 | // Modules with `Recommended` tag: |
| 305 | // - modules/lazy-images.php |
| 306 | // - modules/minileven.php |
| 307 | // - modules/monitor.php |
| 308 | // - modules/photon-cdn.php |
| 309 | // - modules/photon.php |
| 310 | // - modules/protect.php |
| 311 | // - modules/publicize.php |
| 312 | // - modules/related-posts.php |
| 313 | // - modules/sharedaddy.php |
| 314 | // - modules/sitemaps.php |
| 315 | // - modules/stats.php |
| 316 | 'Recommended' =>_x( 'Recommended', 'Module Tag', 'jetpack' ), |
| 317 | |
| 318 | // Modules with `General` tag: |
| 319 | // - modules/masterbar.php |
| 320 | 'General' =>_x( 'General', 'Module Tag', 'jetpack' ), |
| 321 | |
| 322 | // Modules with `Mobile` tag: |
| 323 | // - modules/minileven.php |
| 324 | 'Mobile' =>_x( 'Mobile', 'Module Tag', 'jetpack' ), |
| 325 | |
| 326 | // Modules with `Traffic` tag: |
| 327 | // - modules/sitemaps.php |
| 328 | // - modules/wordads.php |
| 329 | 'Traffic' =>_x( 'Traffic', 'Module Tag', 'jetpack' ), |
| 330 | |
| 331 | // Modules with `Site Stats` tag: |
| 332 | // - modules/stats.php |
| 333 | 'Site Stats' =>_x( 'Site Stats', 'Module Tag', 'jetpack' ), |
| 334 | ); |
| 335 | } |
| 336 | return ! empty( $module_tags[ $key ] ) ? $module_tags[ $key ] : ''; |
| 337 | } |
| 338 |