Skip to content

Instantly share code, notes, and snippets.

@jaredhirsch
Last active March 7, 2017 19:54
Show Gist options
  • Save jaredhirsch/e7a84d03aa634c40d5396930fbe9878d to your computer and use it in GitHub Desktop.
Save jaredhirsch/e7a84d03aa634c40d5396930fbe9878d to your computer and use it in GitHub Desktop.
strings in page shot

strings in the page shot WebExtension

Total: 20 strings, 126 words

selector/ui.js

7 unique strings

24 words

  • div.pageshot-myshots-text: "My Shots"
  • div.pageshot-preview-instructions: "Drag or click on the page to select a region. Press ESC to cancel."
  • div.pageshot-visible: "Save visible" (that is, save visible region of the page)
  • div.pageshot-full-page: "Save full page"
  • div.pageshot-highlight-button-cancel: "Cancel"
  • div.pageshot-highlight-button-download: "Download"
  • div.pageshot-highlight-button-save: "Save"

background/takeshot.js

2 unique strings

13 words

  • notification title: "Link Copied"
  • notification message: "The link to your shot has been copied to the clipboard"

background/senderror.js

11 unique strings

89 words

 REQUEST_ERROR: {
      title: "Page Shot is out of order.",
      info: "Your shot was not saved.  We apologize for the inconvenience. Try again soon."
    },
    CONNECTION_ERROR: {
      title: "Cannot connect to the Page Shot server.",
      info: "There may be a problem with the service or with your network connection."
    },
    LOGIN_ERROR: {
      title: "Page Shot is out of order.",
      info: "Your shot was not saved.  There was an error authenticating with the server."
    },
    LOGIN_CONNECTION_ERROR: {
      title: "Cannot connect to the Page Shot server.",
      info: "There may be a problem with the service or your network connection."
    },    UNSHOOTABLE_PAGE: {
      title: "Page cannot be screenshotted",
      info: "This is not a normal web page, and Page Shot cannot capture screenshots from it."
    },
    SHOT_PAGE: {
      title: "You can't take a shot of a Page Shot page!"
    },
    MY_SHOTS: {
      title: "You can't take a shot of a Page Shot page!"
    },
    generic: {
      title: "Page Shot went haywire.",
      info: "Try again or take a shot on another page?",
      showMessage: true
    }
@ianb
Copy link

ianb commented Mar 7, 2017

Also manifest.json.template has a couple strings, maybe the only visible one is "default_title": "Take a shot"

@flodolo
Copy link

flodolo commented Mar 7, 2017

I couldn't help noticing the use of double spaces after periods, which is something we don't use anywhere in Firefox (not sure if they're collapsed as HTML). Also not completely consistent at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment