A Chrome extension that hides all YouTube UI except for your video
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

messages.json 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {
  2. "l10nTabName": {
  3. "message":"Localization"
  4. ,"description":"name of the localization tab"
  5. }
  6. ,"l10nHeader": {
  7. "message":"It does localization too! (this whole tab is, actually)"
  8. ,"description":"Header text for the localization section"
  9. }
  10. ,"l10nIntro": {
  11. "message":"'L10n' refers to 'Localization' - 'L' an 'n' are obvious, and 10 comes from the number of letters between those two. It is the process/whatever of displaying something in the language of choice. It uses 'I18n', 'Internationalization', which refers to the tools / framework supporting L10n. I.e., something is internationalized if it has I18n support, and can be localized. Something is localized for you if it is in your language / dialect."
  12. ,"description":"introduce the basic idea."
  13. }
  14. ,"l10nProd": {
  15. "message":"You <strong>are</strong> planning to allow localization, right? You have <em>no idea</em> who will be using your extension! You have no idea who will be translating it! At least support the basics, it's not hard, and having the framework in place will let you transition much more easily later on."
  16. ,"description":"drive the point home. It's good for you."
  17. }
  18. ,"l10nFirstParagraph": {
  19. "message":"When the options page loads, elements decorated with <strong>data-l10n</strong> will automatically be localized!"
  20. ,"description":"inform that <el data-l10n='' /> elements will be localized on load"
  21. }
  22. ,"l10nSecondParagraph": {
  23. "message":"If you need more complex localization, you can also define <strong>data-l10n-args</strong>. This should contain <span class='code'>$containerType$</span> filled with <span class='code'>$dataType$</span>, which will be passed into Chrome's i18n API as <span class='code'>$functionArgs$</span>. In fact, this paragraph does just that, and wraps the args in mono-space font. Easy!"
  24. ,"description":"introduce the data-l10n-args attribute. End on a lame note."
  25. ,"placeholders": {
  26. "containerType": {
  27. "content":"$1"
  28. ,"example":"'array', 'list', or something similar"
  29. ,"description":"type of the args container"
  30. }
  31. ,"dataType": {
  32. "content":"$2"
  33. ,"example":"string"
  34. ,"description":"type of data in each array index"
  35. }
  36. ,"functionArgs": {
  37. "content":"$3"
  38. ,"example":"arguments"
  39. ,"description":"whatever you call what you pass into a function/method. args, params, etc."
  40. }
  41. }
  42. }
  43. ,"l10nThirdParagraph": {
  44. "message":"Message contents are passed right into innerHTML without processing - include any tags (or even scripts) that you feel like. If you have an input field, the placeholder will be set instead, and buttons will have the value attribute set."
  45. ,"description":"inform that we handle placeholders, buttons, and direct HTML input"
  46. }
  47. ,"l10nButtonsBefore": {
  48. "message":"Different types of buttons are handled as well. &lt;button&gt; elements have their html set:"
  49. }
  50. ,"l10nButton": {
  51. "message":"in a <strong>button</strong>"
  52. }
  53. ,"l10nButtonsBetween": {
  54. "message":"while &lt;input type='submit'&gt; and &lt;input type='button'&gt; get their 'value' set (note: no HTML):"
  55. }
  56. ,"l10nSubmit": {
  57. "message":"a <strong>submit</strong> value"
  58. }
  59. ,"l10nButtonsAfter": {
  60. "message":"Awesome, no?"
  61. }
  62. ,"l10nExtras": {
  63. "message":"You can even set <span class='code'>data-l10n</span> on things like the &lt;title&gt; tag, which lets you have translatable page titles, or fieldset &lt;legend&gt; tags, or anywhere else - the default <span class='code'>Boil.localize()</span> behavior will check every tag in the document, not just the body."
  64. ,"description":"inform about places which may not be obvious, like <title>, etc"
  65. }
  66. }