jetpack_get_module_i18n

For a given module, return an array with translated name, description and recommended description.

Description

(array) jetpack_get_module_i18n( (string) $key ); 

Returns (array)

Parameters (1)

0. $key (string)
Module file name without .php

Usage

  1. if ( !function_exists( 'jetpack_get_module_i18n' ) ) { 
  2. require_once '/modules/module-headings.php'; 
  3.  
  4. // Module file name without .php 
  5. $key = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = jetpack_get_module_i18n($key); 
  9.  

Defined (1)

The function is defined in the following location(s).

/modules/module-headings.php  
  1. function jetpack_get_module_i18n( $key ) { 
  2. static $modules; 
  3. if ( ! isset( $modules ) ) { 
  4. $modules = array( 
  5. 'after-the-deadline' => array( 
  6. 'name' => _x( 'Spelling and Grammar', 'Module Name', 'jetpack' ),  
  7. 'description' => _x( 'Check your spelling, style, and grammar', 'Module Description', 'jetpack' ),  
  8. ),  
  9.  
  10. 'carousel' => array( 
  11. 'name' => _x( 'Carousel', 'Module Name', 'jetpack' ),  
  12. 'description' => _x( 'Display images and galleries in a gorgeous, full-screen browsing experience', 'Module Description', 'jetpack' ),  
  13. 'recommended description' => _x( 'Brings your photos and images to life as full-size, easily navigable galleries.', 'Jumpstart Description', 'jetpack' ),  
  14. ),  
  15.  
  16. 'comments' => array( 
  17. 'name' => _x( 'Comments', 'Module Name', 'jetpack' ),  
  18. 'description' => _x( 'Let readers use WordPress.com, Twitter, Facebook, or Google+ accounts to comment', 'Module Description', 'jetpack' ),  
  19. ),  
  20.  
  21. 'contact-form' => array( 
  22. 'name' => _x( 'Contact Form', 'Module Name', 'jetpack' ),  
  23. 'description' => _x( 'Insert a customizable contact form anywhere on your site.', 'Module Description', 'jetpack' ),  
  24. 'recommended description' => _x( 'Adds a button to your post and page editors, allowing you to build simple forms to help visitors stay in touch.', 'Jumpstart Description', 'jetpack' ),  
  25. ),  
  26.  
  27. 'custom-content-types' => array( 
  28. 'name' => _x( 'Custom content types', 'Module Name', 'jetpack' ),  
  29. 'description' => _x( 'Display different types of content on your site with custom content types.', 'Module Description', 'jetpack' ),  
  30. ),  
  31.  
  32. 'custom-css' => array( 
  33. 'name' => _x( 'Custom CSS', 'Module Name', 'jetpack' ),  
  34. 'description' => _x( 'Tweak your site*s CSS without modifying your theme.', 'Module Description', 'jetpack' ),  
  35. ),  
  36.  
  37. 'enhanced-distribution' => array( 
  38. 'name' => _x( 'Enhanced Distribution', 'Module Name', 'jetpack' ),  
  39. 'description' => _x( 'Increase reach and traffic.', 'Module Description', 'jetpack' ),  
  40. ),  
  41.  
  42. 'google-analytics' => array( 
  43. 'name' => _x( 'Google Analytics', 'Module Name', 'jetpack' ),  
  44. 'description' => _x( 'Set up Google Analytics without touching a line of code.', 'Module Description', 'jetpack' ),  
  45. ),  
  46.  
  47. 'gravatar-hovercards' => array( 
  48. 'name' => _x( 'Gravatar Hovercards', 'Module Name', 'jetpack' ),  
  49. 'description' => _x( 'Enable pop-up business cards over commenters* Gravatars.', 'Module Description', 'jetpack' ),  
  50. 'recommended description' => _x( 'Let commenters link their profiles to their Gravatar accounts, making it easy for your visitors to learn more about your community.', 'Jumpstart Description', 'jetpack' ),  
  51. ),  
  52.  
  53. 'infinite-scroll' => array( 
  54. 'name' => _x( 'Infinite Scroll', 'Module Name', 'jetpack' ),  
  55. 'description' => _x( 'Automatically load new content when a visitor scrolls', 'Module Description', 'jetpack' ),  
  56. ),  
  57.  
  58. 'json-api' => array( 
  59. 'name' => _x( 'JSON API', 'Module Name', 'jetpack' ),  
  60. 'description' => _x( 'Allow applications to securely access your content.', 'Module Description', 'jetpack' ),  
  61. ),  
  62.  
  63. 'latex' => array( 
  64. 'name' => _x( 'Beautiful Math', 'Module Name', 'jetpack' ),  
  65. 'description' => _x( 'Use LaTeX markup for complex equations and other geekery.', 'Module Description', 'jetpack' ),  
  66. ),  
  67.  
  68. 'likes' => array( 
  69. 'name' => _x( 'Likes', 'Module Name', 'jetpack' ),  
  70. 'description' => _x( 'Give visitors an easy way to show they appreciate your content.', 'Module Description', 'jetpack' ),  
  71. ),  
  72.  
  73. 'manage' => array( 
  74. 'name' => _x( 'Manage', 'Module Name', 'jetpack' ),  
  75. 'description' => _x( 'Manage all of your sites from a centralized dashboard.', 'Module Description', 'jetpack' ),  
  76. 'recommended description' => _x( 'Helps you remotely manage plugins, turn on automated updates, and more from <a href="https://wordpress.com/plugins/" target="_blank">wordpress.com</a>.', 'Jumpstart Description', 'jetpack' ),  
  77. ),  
  78.  
  79. 'markdown' => array( 
  80. 'name' => _x( 'Markdown', 'Module Name', 'jetpack' ),  
  81. 'description' => _x( 'Write posts or pages in plain-text Markdown syntax', 'Module Description', 'jetpack' ),  
  82. ),  
  83.  
  84. 'masterbar' => array( 
  85. 'name' => _x( 'WordPress.com Toolbar', 'Module Name', 'jetpack' ),  
  86. 'description' => _x( 'Replaces the admin bar with a useful toolbar to quickly manage your site via WordPress.com.', 'Module Description', 'jetpack' ),  
  87. ),  
  88.  
  89. 'minileven' => array( 
  90. 'name' => _x( 'Mobile Theme', 'Module Name', 'jetpack' ),  
  91. 'description' => _x( 'Optimize your site for smartphones', 'Module Description', 'jetpack' ),  
  92. ),  
  93.  
  94. 'monitor' => array( 
  95. 'name' => _x( 'Monitor', 'Module Name', 'jetpack' ),  
  96. 'description' => _x( 'Receive immediate notifications if your site goes down, 24/7.', 'Module Description', 'jetpack' ),  
  97. ),  
  98.  
  99. 'notes' => array( 
  100. 'name' => _x( 'Notifications', 'Module Name', 'jetpack' ),  
  101. 'description' => _x( 'Receive instant notifications of site comments and likes.', 'Module Description', 'jetpack' ),  
  102. ),  
  103.  
  104. 'omnisearch' => array( 
  105. 'name' => _x( 'Omnisearch', 'Module Name', 'jetpack' ),  
  106. 'description' => _x( 'Search your entire database from a single field in your dashboard.', 'Module Description', 'jetpack' ),  
  107. ),  
  108.  
  109. 'photon' => array( 
  110. 'name' => _x( 'Photon', 'Module Name', 'jetpack' ),  
  111. 'description' => _x( 'Speed up images and photos', 'Module Description', 'jetpack' ),  
  112. 'recommended 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.', 'Jumpstart Description', 'jetpack' ),  
  113. ),  
  114.  
  115. 'post-by-email' => array( 
  116. 'name' => _x( 'Post by email', 'Module Name', 'jetpack' ),  
  117. 'description' => _x( 'Publish posts by sending an email', 'Module Description', 'jetpack' ),  
  118. ),  
  119.  
  120. 'protect' => array( 
  121. 'name' => _x( 'Protect', 'Module Name', 'jetpack' ),  
  122. 'description' => _x( 'Block suspicious-looking sign in activity', 'Module Description', 'jetpack' ),  
  123. ),  
  124.  
  125. 'publicize' => array( 
  126. 'name' => _x( 'Publicize', 'Module Name', 'jetpack' ),  
  127. 'description' => _x( 'Automated social marketing.', 'Module Description', 'jetpack' ),  
  128. ),  
  129.  
  130. 'related-posts' => array( 
  131. 'name' => _x( 'Related posts', 'Module Name', 'jetpack' ),  
  132. 'description' => _x( 'Increase page views by showing related content to your visitors.', 'Module Description', 'jetpack' ),  
  133. 'recommended description' => _x( 'Keep visitors engaged on your blog by highlighting relevant and new content at the bottom of each published post.', 'Jumpstart Description', 'jetpack' ),  
  134. ),  
  135.  
  136. 'seo-tools' => array( 
  137. 'name' => _x( 'SEO Tools', 'Module Name', 'jetpack' ),  
  138. 'description' => _x( 'Better results on search engines and social media.', 'Module Description', 'jetpack' ),  
  139. 'recommended description' => _x( 'Better results on search engines and social media.', 'Jumpstart Description', 'jetpack' ),  
  140. ),  
  141.  
  142. 'sharedaddy' => array( 
  143. 'name' => _x( 'Sharing', 'Module Name', 'jetpack' ),  
  144. 'description' => _x( 'Allow visitors to share your content.', 'Module Description', 'jetpack' ),  
  145. 'recommended description' => _x( 'Twitter, Facebook and Google+ buttons at the bottom of each post, making it easy for visitors to share your content.', 'Jumpstart Description', 'jetpack' ),  
  146. ),  
  147.  
  148. 'shortcodes' => array( 
  149. 'name' => _x( 'Shortcode Embeds', 'Module Name', 'jetpack' ),  
  150. 'description' => _x( 'Embed media from popular sites without any coding.', 'Module Description', 'jetpack' ),  
  151. ),  
  152.  
  153. 'shortlinks' => array( 
  154. 'name' => _x( 'WP.me Shortlinks', 'Module Name', 'jetpack' ),  
  155. 'description' => _x( 'Create short and simple links for all posts and pages.', 'Module Description', 'jetpack' ),  
  156. ),  
  157.  
  158. 'sitemaps' => array( 
  159. 'name' => _x( 'Sitemaps', 'Module Name', 'jetpack' ),  
  160. 'description' => _x( 'Make it easy for search engines to find your site.', 'Module Description', 'jetpack' ),  
  161. ),  
  162.  
  163. 'sso' => array( 
  164. 'name' => _x( 'Single Sign On', 'Module Name', 'jetpack' ),  
  165. 'description' => _x( 'Allow users to log into this site using WordPress.com accounts', 'Module Description', 'jetpack' ),  
  166. 'recommended description' => _x( 'Lets you log in to all your Jetpack-enabled sites with one click using your WordPress.com account.', 'Jumpstart Description', 'jetpack' ),  
  167. ),  
  168.  
  169. 'stats' => array( 
  170. 'name' => _x( 'Site Stats', 'Module Name', 'jetpack' ),  
  171. 'description' => _x( 'Collect valuable traffic stats and insights.', 'Module Description', 'jetpack' ),  
  172. ),  
  173.  
  174. 'subscriptions' => array( 
  175. 'name' => _x( 'Subscriptions', 'Module Name', 'jetpack' ),  
  176. 'description' => _x( 'Allow users to subscribe to your posts and comments and receive notifications via email', 'Module Description', 'jetpack' ),  
  177. 'recommended description' => _x( 'Give visitors two easy subscription options * while commenting, or via a separate email subscription widget you can display.', 'Jumpstart Description', 'jetpack' ),  
  178. ),  
  179.  
  180. 'tiled-gallery' => array( 
  181. 'name' => _x( 'Tiled Galleries', 'Module Name', 'jetpack' ),  
  182. 'description' => _x( 'Display image galleries in a variety of elegant arrangements.', 'Module Description', 'jetpack' ),  
  183. 'recommended description' => _x( 'Display image galleries in a variety of elegant arrangements.', 'Jumpstart Description', 'jetpack' ),  
  184. ),  
  185.  
  186. 'vaultpress' => array( 
  187. 'name' => _x( 'Data Backups', 'Module Name', 'jetpack' ),  
  188. 'description' => _x( 'Off-site backups, security scans, and automatic fixes.', 'Module Description', 'jetpack' ),  
  189. ),  
  190.  
  191. 'verification-tools' => array( 
  192. 'name' => _x( 'Site verification', 'Module Name', 'jetpack' ),  
  193. 'description' => _x( 'Establish your site\'s authenticity with external services.', 'Module Description', 'jetpack' ),  
  194. ),  
  195.  
  196. 'videopress' => array( 
  197. 'name' => _x( 'VideoPress', 'Module Name', 'jetpack' ),  
  198. 'description' => _x( 'Fast, ad-free video hosting', 'Module Description', 'jetpack' ),  
  199. ),  
  200.  
  201. 'widget-visibility' => array( 
  202. 'name' => _x( 'Widget Visibility', 'Module Name', 'jetpack' ),  
  203. 'description' => _x( 'Control where widgets appear on your site.', 'Module Description', 'jetpack' ),  
  204. ),  
  205.  
  206. 'widgets' => array( 
  207. 'name' => _x( 'Extra Sidebar Widgets', 'Module Name', 'jetpack' ),  
  208. 'description' => _x( 'Add images, Twitter streams, and more to your sidebar.', 'Module Description', 'jetpack' ),  
  209. ),  
  210.  
  211. 'wordads' => array( 
  212. 'name' => _x( 'Ads', 'Module Name', 'jetpack' ),  
  213. 'description' => _x( 'Earn income by allowing Jetpack to display high quality ads.', 'Module Description', 'jetpack' ),  
  214. ),  
  215. ); 
  216. return $modules[ $key ];