l10n

package
v0.1.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package l10n holds Golet's own strings, those of the controls of package ui, of the code editor and the diff viewer, and of the roles of menus, in the languages Golet is translated to: a library's catalog (see i18n.NewLibraryCatalog) of the namespace golet, whose functions say them in the language the app shows. An app changes them, or translates them to its other languages, with keys "golet.<key>" in its own catalogs, as "golet.cancel" in its de.json.

en.json, the source, is always linked, as messages/en.json: its messages without their descriptions, which only `golet generate` reads. The translations to the other languages (Languages) are packages of their own, in locales/<tag> at the root of the module, which an app imports for the languages it ships, as the code `golet generate` writes for its catalogs does: an app does not carry the translations to languages it does not show. catalog_gen.go, languages_gen.go and the packages of the translations are generated by `go generate`, with the code generator of apps' catalogs (internal/i18ngen).

Index

Constants

View Source
const Namespace = "golet"

Namespace is the namespace of the keys with which apps change Golet's strings: "golet.<key>".

Variables

View Source
var Catalog *i18n.Catalog

Catalog holds the messages in en, the source language, and those of the translations added to it (Catalog.Add). Apps change them, or translate them, with keys "golet.<key>" in their catalogs.

View Source
var Languages = []string{"ja", "zh-Hans", "zh-Hant"}

Languages are those Golet's own strings are translated to besides English, each in a package an app imports, as github.com/HyperparameterSI/golet/backend/locales/zh-Hans.

Functions

func Add

func Add(fsys fs.FS)

Add adds the translations of fsys, "<tag>.json", to Golet's strings: the package of each translation adds its own as it is imported.

func AlreadyExists

func AlreadyExists(name string) string

AlreadyExists says "An item named “{name}” already exists in this location. Do you want to replace it?" in the language the app shows.

Asks whether to replace a file as a document moves.

func AlreadyExistsDetail

func AlreadyExistsDetail() string

AlreadyExistsDetail says "Replacing it overwrites its current contents." in the language the app shows.

Explains alreadyExists.

func CamelCase

func CamelCase() string

CamelCase says "Camel Case" in the language the app shows.

An item of the code editor's Transform menu.

func Cancel

func Cancel() string

Cancel says "Cancel" in the language the app shows.

A button of a dialog that cancels what it asks about.

func ChangedOnDisk

func ChangedOnDisk(name string) string

ChangedOnDisk says "The file “{name}” has been changed by another application." in the language the app shows.

Says another app changed the file of a document being saved.

func ChangedOnDiskDetail

func ChangedOnDiskDetail() string

ChangedOnDiskDetail says "Save Anyway replaces it with your version. Revert discards your changes and shows the version on disk." in the language the app shows.

Explains the buttons saveAnyway and revertDocument.

func ChangesLost

func ChangesLost() string

ChangesLost says "Your changes will be lost if you don’t save them." in the language the app shows.

Explains the question of saveChanges.

func Clear

func Clear() string

Clear says "Clear" in the language the app shows.

Labels the button that clears a search field.

func ClearTerminal added in v0.1.8

func ClearTerminal() string

ClearTerminal says "Clear" in the language the app shows.

An item of a terminal's menu, which clears the lines scrolled out of view and the screen above the prompt, as Command-K does.

func ClipboardRead

func ClipboardRead() string

ClipboardRead says "A program wants to read the clipboard" in the language the app shows.

The title of the terminal's prompt about a program's read of the clipboard.

func ClipboardReadAllow

func ClipboardReadAllow() string

ClipboardReadAllow says "Allow" in the language the app shows.

The button of the terminal's clipboard prompt that lets the program read.

func ClipboardReadDeny

func ClipboardReadDeny() string

ClipboardReadDeny says "Deny" in the language the app shows.

The button of the terminal's clipboard prompt that refuses the program.

func ClipboardReadEmpty

func ClipboardReadEmpty() string

ClipboardReadEmpty says "The clipboard is empty." in the language the app shows.

What the terminal's clipboard prompt shows when the clipboard holds no text.

func Close

func Close() string

Close says "Close" in the language the app shows.

Labels the button that closes a find bar.

func CodeEditor

func CodeEditor() string

CodeEditor says "Code editor" in the language the app shows.

Names the code editor to assistive technology when the app gives it no label.

func ColorName

func ColorName(color string) string

ColorName says "{color, select, red {Red} orange {Orange} yellow {Yellow} green {Green} teal {Teal} blue {Blue} indigo {Indigo} purpl…" in the language the app shows.

The name of a swatch of a color picker, by its color: red, orange, yellow, green, teal, blue, indigo, purple, pink, brown, gray or black.

func ColorValue

func ColorValue(saturation float64, brightness float64) string

ColorValue says "{saturation, number, percent} saturation, {brightness, number, percent} brightness" in the language the app shows.

What assistive technology reads of the area of a color picker that sets the saturation and the brightness, as "40% saturation, 75% brightness".

func Completions

func Completions() string

Completions says "Completions" in the language the app shows.

Labels the code editor's list of completions.

func Copied

func Copied() string

Copied says "Copied" in the language the app shows.

What the copy button of a code block of Markdown says once it copied the code.

func Copy

func Copy() string

Copy says "Copy" in the language the app shows.

An item of the menu of a text field.

func CopyAsMarkdown

func CopyAsMarkdown() string

CopyAsMarkdown says "Copy as Markdown" in the language the app shows.

An item of the menu of a view of Markdown.

func CopyCode

func CopyCode() string

CopyCode says "Copy code" in the language the app shows.

Labels the button of a code block of Markdown that copies its code.

func CurrentLine

func CurrentLine(line int, lines int, column int) string

CurrentLine says "Current line {line, number, ::group-off} of {lines, number, ::group-off}, column {column, number, ::group-off}" in the language the app shows.

Where the caret is, which the go to line bar says.

func Cut

func Cut() string

Cut says "Cut" in the language the app shows.

An item of the menu of a text field.

func DayPeriod

func DayPeriod() string

DayPeriod says "AM/PM" in the language the app shows.

Names the part of a time field that says AM or PM to assistive technology, after the field's label.

func DecimalAtLeast added in v0.1.15

func DecimalAtLeast(min string) string

DecimalAtLeast says "Enter {min} or more" in the language the app shows.

What a decimal input says of a number below its lowest, as "Enter 0.00 or more".

func DecimalAtMost added in v0.1.15

func DecimalAtMost(max string) string

DecimalAtMost says "Enter {max} or less" in the language the app shows.

What a decimal input says of a number above its highest, as "Enter 100.00 or less".

func DecimalInvalid added in v0.1.15

func DecimalInvalid() string

DecimalInvalid says "Enter a number" in the language the app shows.

What a decimal input says of text that is not a number, as "1,2x".

func DecimalPlaces added in v0.1.15

func DecimalPlaces(n int) string

DecimalPlaces says "{n, plural, one {Use at most # decimal place} other {Use at most # decimal places}}" in the language the app shows.

What a decimal input says of a number with more decimals than its step has, which it does not round.

func DecimalWhole added in v0.1.15

func DecimalWhole() string

DecimalWhole says "Enter a whole number" in the language the app shows.

What a decimal input whose step has no decimals says of a number with some.

func Delete

func Delete() string

Delete says "Delete" in the language the app shows.

An item of the menu of a text field.

func DeleteDocument

func DeleteDocument() string

DeleteDocument says "Delete" in the language the app shows.

A button of a dialog that deletes a new document instead of saving it.

func DesktopShortcut added in v0.1.15

func DesktopShortcut() string

DesktopShortcut says "Create a desktop shortcut" in the language the app shows.

Labels the check box on the finish page of an app's Windows installer, which puts a shortcut to the app on the desktop.

func DeveloperTools

func DeveloperTools() string

DeveloperTools says "Developer tools" in the language the app shows.

Labels the inspector of native UI.

func DiscardChanges

func DiscardChanges() string

DiscardChanges says "Discard Changes" in the language the app shows.

A button of the dialog asking about the documents with changes as the app quits.

func Divider

func Divider() string

Divider says "Divider" in the language the app shows.

Labels the line between the panes of a split view.

func DocumentFailed

func DocumentFailed(action string, name string) string

DocumentFailed says "{action, select, opened {The document “{name}” could not be opened.} renamed {The document “{name}” could not…" in the language the app shows.

Says what failed of a document: opened, renamed, moved, reverted, or saved (other).

func Done

func Done() string

Done says "Done" in the language the app shows.

The button that closes a find bar.

func DontSave

func DontSave() string

DontSave says "Don’t Save" in the language the app shows.

A button of a dialog that closes a document without saving its changes.

func Elements

func Elements() string

Elements says "Elements" in the language the app shows.

Labels the inspector's list of the elements of the window.

func Expand

func Expand(what string) string

Expand says "Expand {what}" in the language the app shows.

What assistive technology calls a button of a diff viewer that shows unchanged lines, as in "Expand 4 unmodified lines".

func ExpandAll

func ExpandAll() string

ExpandAll says "Expand all" in the language the app shows.

Labels the button of a diff viewer that shows all the unchanged lines.

func ExpandDown

func ExpandDown() string

ExpandDown says "Expand down" in the language the app shows.

Labels the button of a diff viewer that shows the unchanged lines below a change.

func ExpandSelection

func ExpandSelection() string

ExpandSelection says "Expand Selection" in the language the app shows.

An item of the code editor's Selection menu.

func ExpandUp

func ExpandUp() string

ExpandUp says "Expand up" in the language the app shows.

Labels the button of a diff viewer that shows the unchanged lines above a change.

func FS

func FS() fs.FS

FS returns the catalogs as they are written, which `golet generate` checks the keys "golet.<key>" of apps against: only it links them.

func Find

func Find() string

Find says "Find" in the language the app shows.

Labels the bar that searches text, and is what its empty field shows.

func FindInSelection

func FindInSelection() string

FindInSelection says "Find in selection" in the language the app shows.

An option of a find bar.

func Fold

func Fold() string

Fold says "Fold" in the language the app shows.

An item of the code editor's Folding menu.

func FoldAll

func FoldAll() string

FoldAll says "Fold All" in the language the app shows.

An item of the code editor's Folding menu.

func Folding

func Folding() string

Folding says "Folding" in the language the app shows.

A submenu of the code editor's menu.

func GoToDefinition

func GoToDefinition() string

GoToDefinition says "Go to Definition" in the language the app shows.

An item of the code editor's menu.

func GoToLine

func GoToLine() string

GoToLine says "Go to line" in the language the app shows.

Labels the bar that goes to a line.

func Hex

func Hex() string

Hex says "Hex" in the language the app shows.

Labels the field of a color picker that holds the color as hexadecimal.

func Hours

func Hours() string

Hours says "hours" in the language the app shows.

Names the hours of a time field to assistive technology, after the field's label.

func HunkAction

func HunkAction(action string) string

HunkAction says "{action} change" in the language the app shows.

What assistive technology calls a button that takes an action on a change, as in "Revert change".

func Image

func Image() string

Image says "Image" in the language the app shows.

Names an image of Markdown without a description to assistive technology.

func Invalid

func Invalid() string

Invalid says "Invalid" in the language the app shows.

What a find bar says of a query that is not a valid regular expression.

func JoinLines

func JoinLines() string

JoinLines says "Join Lines" in the language the app shows.

An item of the code editor's Transform menu.

func KebabCase

func KebabCase() string

KebabCase says "Kebab Case" in the language the app shows.

An item of the code editor's Transform menu.

func Keep

func Keep() string

Keep says "Keep" in the language the app shows.

An action of a diff viewer on a change.

func KeepNewDocument

func KeepNewDocument(name string) string

KeepNewDocument says "Do you want to keep this new document “{name}”?" in the language the app shows.

Asks, as a new document closes, whether to keep it.

func KeepNewDocumentDetail

func KeepNewDocumentDetail() string

KeepNewDocumentDetail says "You can choose to save your changes, or delete this document immediately. You can’t undo this action." in the language the app shows.

Explains the question of keepNewDocument.

func Line

func Line(n int) string

Line says "Line {n, number, ::group-off}" in the language the app shows.

The line a gutter button of a diff viewer adds a line at, as assistive technology reads it.

func LineRange

func LineRange(lines int) string

LineRange says "Line 1 to {lines, number, ::group-off}, then :column" in the language the app shows.

What the empty field of the go to line bar shows.

func LowerCase

func LowerCase() string

LowerCase says "Lower Case" in the language the app shows.

An item of the code editor's Transform menu.

func MatchCase

func MatchCase() string

MatchCase says "Match case" in the language the app shows.

An option of a find bar.

func MatchWholeWord

func MatchWholeWord() string

MatchWholeWord says "Match whole word" in the language the app shows.

An option of a find bar.

func Matches

func Matches(current int, total int) string

Matches says "{current} of {total}" in the language the app shows.

Which of the matches a find bar is at, as "3 of 12".

func MatchesMore

func MatchesMore(current int, total int) string

MatchesMore says "{current} of {total}+" in the language the app shows.

Which of the matches a find bar is at, when it stopped counting them, as "3 of 1000+".

func MenuAbout(app string) string

MenuAbout says "About {app}" in the language the app shows.

The item of macOS's app menu that shows the app's about panel, with the app's name.

func MenuActualSize() string

MenuActualSize says "Actual Size" in the language the app shows.

The label of the menu items of the role resetZoom (MenuItem.Role).

func MenuAlignLeft() string

MenuAlignLeft says "Align Left" in the language the app shows.

The label of the menu items of the role alignLeft (MenuItem.Role).

func MenuAlignRight() string

MenuAlignRight says "Align Right" in the language the app shows.

The label of the menu items of the role alignRight (MenuItem.Role).

func MenuBold() string

MenuBold says "Bold" in the language the app shows.

The label of the menu items of the role bold (MenuItem.Role).

func MenuBringAllToFront() string

MenuBringAllToFront says "Bring All to Front" in the language the app shows.

The label of the menu items of the role front (MenuItem.Role).

func MenuCenter() string

MenuCenter says "Center" in the language the app shows.

The label of the menu items of the role alignCenter (MenuItem.Role).

func MenuClearRecent() string

MenuClearRecent says "Clear Menu" in the language the app shows.

The last item of the menu of recent documents, which empties it.

func MenuClose() string

MenuClose says "Close" in the language the app shows.

The item that closes a document's window.

func MenuCloseWindow() string

MenuCloseWindow says "Close Window" in the language the app shows.

The item that closes a window.

func MenuCopy() string

MenuCopy says "Copy" in the language the app shows.

The label of the menu items of the role copy (MenuItem.Role).

func MenuCut() string

MenuCut says "Cut" in the language the app shows.

The label of the menu items of the role cut (MenuItem.Role).

func MenuDelete() string

MenuDelete says "Delete" in the language the app shows.

The label of the menu items of the role delete (MenuItem.Role).

func MenuDuplicate() string

MenuDuplicate says "Duplicate" in the language the app shows.

The label of the menu items of the role duplicate (MenuItem.Role).

func MenuEdit() string

MenuEdit says "Edit" in the language the app shows.

A menu of the menu bar.

func MenuExit() string

MenuExit says "Exit" in the language the app shows.

The item that quits the app on Windows.

func MenuFile() string

MenuFile says "File" in the language the app shows.

A menu of the menu bar.

func MenuForceReload() string

MenuForceReload says "Force Reload" in the language the app shows.

The label of the menu items of the role forceReload (MenuItem.Role).

func MenuFormat() string

MenuFormat says "Format" in the language the app shows.

A menu of the menu bar.

func MenuHelp() string

MenuHelp says "Help" in the language the app shows.

A menu of the menu bar.

func MenuHide(app string) string

MenuHide says "Hide {app}" in the language the app shows.

The item of macOS's app menu that hides the app, with the app's name.

func MenuHideOthers() string

MenuHideOthers says "Hide Others" in the language the app shows.

The label of the menu items of the role hideOthers (MenuItem.Role).

func MenuItalic() string

MenuItalic says "Italic" in the language the app shows.

The label of the menu items of the role italic (MenuItem.Role).

func MenuMinimize() string

MenuMinimize says "Minimize" in the language the app shows.

The label of the menu items of the role minimize (MenuItem.Role).

func MenuMoveTo() string

MenuMoveTo says "Move To…" in the language the app shows.

The label of the menu items of the role moveTo (MenuItem.Role).

func MenuNew() string

MenuNew says "New" in the language the app shows.

The label of the menu items of the role new (MenuItem.Role).

func MenuOpen() string

MenuOpen says "Open…" in the language the app shows.

The label of the menu items of the role open (MenuItem.Role).

func MenuOpenRecent() string

MenuOpenRecent says "Open Recent" in the language the app shows.

The label of the menu items of the role openRecent (MenuItem.Role).

func MenuPaste() string

MenuPaste says "Paste" in the language the app shows.

The label of the menu items of the role paste (MenuItem.Role).

func MenuPasteAndMatchStyle() string

MenuPasteAndMatchStyle says "Paste and Match Style" in the language the app shows.

The label of the menu items of the role pasteAndMatchStyle (MenuItem.Role).

func MenuQuit() string

MenuQuit says "Quit" in the language the app shows.

The item that quits the app on Linux.

func MenuQuitApp(app string) string

MenuQuitApp says "Quit {app}" in the language the app shows.

The item of macOS's app menu that quits the app, with the app's name.

func MenuRedo() string

MenuRedo says "Redo" in the language the app shows.

The label of the menu items of the role redo (MenuItem.Role).

func MenuReload() string

MenuReload says "Reload" in the language the app shows.

The label of the menu items of the role reload (MenuItem.Role).

func MenuRename() string

MenuRename says "Rename…" in the language the app shows.

The label of the menu items of the role rename (MenuItem.Role).

func MenuRevert() string

MenuRevert says "Revert" in the language the app shows.

The item that reverts a document to its saved version.

func MenuRevertToSaved() string

MenuRevertToSaved says "Revert to Saved" in the language the app shows.

macOS's item that reverts a document to its saved version.

func MenuSave() string

MenuSave says "Save" in the language the app shows.

The label of the menu items of the role save (MenuItem.Role).

func MenuSaveAs() string

MenuSaveAs says "Save As…" in the language the app shows.

The label of the menu items of the role saveAs (MenuItem.Role).

func MenuSelectAll() string

MenuSelectAll says "Select All" in the language the app shows.

The label of the menu items of the role selectAll (MenuItem.Role).

func MenuServices() string

MenuServices says "Services" in the language the app shows.

The label of the menu items of the role services (MenuItem.Role).

func MenuShowAll() string

MenuShowAll says "Show All" in the language the app shows.

The label of the menu items of the role unhide (MenuItem.Role).

func MenuSpeech() string

MenuSpeech says "Speech" in the language the app shows.

The submenu of macOS's Edit menu with the items that speak the selection.

func MenuStartSpeaking() string

MenuStartSpeaking says "Start Speaking" in the language the app shows.

The label of the menu items of the role startSpeaking (MenuItem.Role).

func MenuStopSpeaking() string

MenuStopSpeaking says "Stop Speaking" in the language the app shows.

The label of the menu items of the role stopSpeaking (MenuItem.Role).

func MenuStrikethrough() string

MenuStrikethrough says "Strikethrough" in the language the app shows.

The label of the menu items of the role strikethrough (MenuItem.Role).

func MenuToggleDevTools() string

MenuToggleDevTools says "Toggle Developer Tools" in the language the app shows.

The label of the menu items of the role toggleDevTools (MenuItem.Role).

func MenuToggleFullScreen() string

MenuToggleFullScreen says "Toggle Full Screen" in the language the app shows.

The label of the menu items of the role togglefullscreen (MenuItem.Role).

func MenuUnderline() string

MenuUnderline says "Underline" in the language the app shows.

The label of the menu items of the role underline (MenuItem.Role).

func MenuUndo() string

MenuUndo says "Undo" in the language the app shows.

The label of the menu items of the role undo (MenuItem.Role).

func MenuView() string

MenuView says "View" in the language the app shows.

A menu of the menu bar.

func MenuWindow() string

MenuWindow says "Window" in the language the app shows.

A menu of the menu bar.

func MenuZoom() string

MenuZoom says "Zoom" in the language the app shows.

The label of the menu items of the role zoom (MenuItem.Role).

func MenuZoomIn() string

MenuZoomIn says "Zoom In" in the language the app shows.

The label of the menu items of the role zoomIn (MenuItem.Role).

func MenuZoomOut() string

MenuZoomOut says "Zoom Out" in the language the app shows.

The label of the menu items of the role zoomOut (MenuItem.Role).

func Minutes

func Minutes() string

Minutes says "minutes" in the language the app shows.

Names the minutes of a time field to assistive technology, after the field's label.

func More

func More() string

More says "More" in the language the app shows.

Labels the button of a toolbar that opens what the toolbar hides.

func Move

func Move() string

Move says "Move" in the language the app shows.

The button of the dialog that moves a document to another folder.

func MoveTo

func MoveTo() string

MoveTo says "Move To" in the language the app shows.

The title of the dialog that moves a document to another folder.

func NewText

func NewText() string

NewText says "New text" in the language the app shows.

Names the side of a diff viewer with the text as it is.

func Next

func Next() string

Next says "Next" in the language the app shows.

Labels the button of a find bar that goes to the next match.

func NextMatch

func NextMatch() string

NextMatch says "Next match" in the language the app shows.

Labels the button of a find bar that goes to the next match.

func NextMonth

func NextMonth() string

NextMonth says "Next month" in the language the app shows.

Labels the button of a calendar that shows the next month.

func NoMatches

func NoMatches() string

NoMatches says "No matches" in the language the app shows.

What a find bar says of a query that matches nothing.

func NoResults

func NoResults() string

NoResults says "No results" in the language the app shows.

What a find bar says of a query that matches nothing.

func Ok

func Ok() string

Ok says "OK" in the language the app shows.

The button of a dialog that only tells something, and of a page's alert, confirm and prompt.

func OldText

func OldText() string

OldText says "Old text" in the language the app shows.

Names the side of a diff viewer with the text as it was.

func Open

func Open() string

Open says "Open" in the language the app shows.

The title and the button of the dialog that opens files.

func PascalCase

func PascalCase() string

PascalCase says "Pascal Case" in the language the app shows.

An item of the code editor's Transform menu.

func Paste

func Paste() string

Paste says "Paste" in the language the app shows.

An item of the menu of a text field.

func Previous

func Previous() string

Previous says "Previous" in the language the app shows.

Labels the button of a find bar that goes to the previous match.

func PreviousMatch

func PreviousMatch() string

PreviousMatch says "Previous match" in the language the app shows.

Labels the button of a find bar that goes to the previous match.

func PreviousMonth

func PreviousMonth() string

PreviousMonth says "Previous month" in the language the app shows.

Labels the button of a calendar that shows the previous month.

func ReadOnly

func ReadOnly(name string) string

ReadOnly says "The document “{name}” can’t be saved because its file is read-only." in the language the app shows.

Says a document cannot be saved in its file.

func ReadOnlyDetail

func ReadOnlyDetail() string

ReadOnlyDetail says "Save it as another file to keep your changes." in the language the app shows.

Explains readOnly.

func RemoveToken

func RemoveToken(token string) string

RemoveToken says "Remove {token}" in the language the app shows.

Labels the button that removes a token of a token field, as in "Remove Ada".

func Rename

func Rename() string

Rename says "Rename" in the language the app shows.

The title and the button of the dialog that renames a document.

func RenameTo

func RenameTo() string

RenameTo says "Rename To:" in the language the app shows.

Labels the field of the name of the dialog that renames a document.

func Replace

func Replace() string

Replace says "Replace" in the language the app shows.

Labels the button of a find bar that replaces the match it is at, and is what the empty replacement field shows.

func ReplaceAll

func ReplaceAll() string

ReplaceAll says "Replace All" in the language the app shows.

Labels the button of a find bar that replaces every match.

func ReplaceFile

func ReplaceFile() string

ReplaceFile says "Replace" in the language the app shows.

A button of a dialog that replaces a file with a document.

func ReverseLines

func ReverseLines() string

ReverseLines says "Reverse Lines" in the language the app shows.

An item of the code editor's Transform menu.

func Revert

func Revert() string

Revert says "Revert" in the language the app shows.

An action of a diff viewer on a change.

func RevertDetail

func RevertDetail() string

RevertDetail says "Your current changes will be lost." in the language the app shows.

Explains revertQuestion.

func RevertDocument

func RevertDocument() string

RevertDocument says "Revert" in the language the app shows.

A button of a dialog that reverts a document to its file.

func RevertQuestion

func RevertQuestion(name string) string

RevertQuestion says "Do you want to revert “{name}” to the last saved version?" in the language the app shows.

Asks whether to revert a document to its file.

func ReviewBeforeQuitting

func ReviewBeforeQuitting(n int, app string) string

ReviewBeforeQuitting says "You have {n} {app} documents with unsaved changes. Do you want to review these changes before quitting?" in the language the app shows.

Asks on macOS, as the app quits, about its documents with changes, two or more.

func ReviewBeforeQuittingDetail

func ReviewBeforeQuittingDetail() string

ReviewBeforeQuittingDetail says "If you don’t review your documents, all your changes will be lost." in the language the app shows.

Explains reviewBeforeQuitting.

func ReviewChanges

func ReviewChanges() string

ReviewChanges says "Review Changes…" in the language the app shows.

A button of the dialog asking about the documents with changes as the app quits.

func RichText

func RichText() string

RichText says "Rich text" in the language the app shows.

Names a rich text editor to assistive technology when the app gives it no label.

func Saturation

func Saturation() string

Saturation says "Saturation and brightness" in the language the app shows.

Labels the area of a color picker that sets the saturation and the brightness.

func Save

func Save() string

Save says "Save" in the language the app shows.

A button of a dialog that saves a document.

func SaveAll

func SaveAll() string

SaveAll says "Save All" in the language the app shows.

A button of a dialog that saves every document with changes.

func SaveAnyway

func SaveAnyway() string

SaveAnyway says "Save Anyway" in the language the app shows.

A button of a dialog that saves a document whose file another app changed.

func SaveAs

func SaveAs() string

SaveAs says "Save As…" in the language the app shows.

A button of a dialog that saves a document as another file.

func SaveChanges

func SaveChanges(name string) string

SaveChanges says "Do you want to save the changes made to the document “{name}”?" in the language the app shows.

Asks, as a document with changes closes, whether to save them.

func SaveEllipsis

func SaveEllipsis() string

SaveEllipsis says "Save…" in the language the app shows.

A button of a dialog that saves a new document, after asking where.

func SaveManyChanges

func SaveManyChanges(n int) string

SaveManyChanges says "Do you want to save the changes to the following {n} documents?" in the language the app shows.

Asks, as the app quits, about its documents with changes, two or more, which the dialog lists.

func Search() string

Search says "Search" in the language the app shows.

What an empty search field shows.

func SelectAll

func SelectAll() string

SelectAll says "Select All" in the language the app shows.

An item of the menu of a text field.

func SelectAllOccurrences

func SelectAllOccurrences() string

SelectAllOccurrences says "Select All Occurrences" in the language the app shows.

An item of the code editor's Selection menu.

func SelectFolder

func SelectFolder() string

SelectFolder says "Select Folder" in the language the app shows.

The title of the dialog that chooses a folder.

func SelectNextOccurrence

func SelectNextOccurrence() string

SelectNextOccurrence says "Select Next Occurrence" in the language the app shows.

An item of the code editor's Selection menu.

func Selected added in v0.1.17

func Selected() string

Selected says "selected" in the language the app shows.

What VoiceOver reads after the name of a cell of a grid that is chosen, as a calendar's day picked, where it reads no chosen state of cells itself.

func Selection

func Selection() string

Selection says "Selection" in the language the app shows.

A submenu of the code editor's menu.

func SnakeCase

func SnakeCase() string

SnakeCase says "Snake Case" in the language the app shows.

An item of the code editor's Transform menu.

func SortLines

func SortLines() string

SortLines says "Sort Lines" in the language the app shows.

An item of the code editor's Transform menu.

func SplitIntoLines

func SplitIntoLines() string

SplitIntoLines says "Split into Lines" in the language the app shows.

An item of the code editor's Selection menu, which splits a selection of several lines into one selection a line.

func TitleCase

func TitleCase() string

TitleCase says "Title Case" in the language the app shows.

An item of the code editor's Transform menu.

func ToggleComment

func ToggleComment() string

ToggleComment says "Toggle Comment" in the language the app shows.

An item of the code editor's menu, which comments out the selection or its lines.

func Transform

func Transform() string

Transform says "Transform" in the language the app shows.

A submenu of the code editor's menu.

func TrimTrailingWhitespace

func TrimTrailingWhitespace() string

TrimTrailingWhitespace says "Trim Trailing Whitespace" in the language the app shows.

An item of the code editor's Transform menu.

func Undo

func Undo() string

Undo says "Undo" in the language the app shows.

An item of the menu of a text field.

func Unfold

func Unfold() string

Unfold says "Unfold" in the language the app shows.

An item of the code editor's Folding menu.

func UnfoldAll

func UnfoldAll() string

UnfoldAll says "Unfold All" in the language the app shows.

An item of the code editor's Folding menu.

func UniqueLines

func UniqueLines() string

UniqueLines says "Unique Lines" in the language the app shows.

An item of the code editor's Transform menu, which removes repeated lines.

func UnmodifiedLines

func UnmodifiedLines(n int) string

UnmodifiedLines says "{n, plural, one {# unmodified line} other {# unmodified lines}}" in the language the app shows.

The unchanged lines a separator of a diff viewer collapses.

func Untitled

func Untitled() string

Untitled says "Untitled" in the language the app shows.

The name of a new document before it is saved.

func UntitledNumbered

func UntitledNumbered(n int) string

UntitledNumbered says "Untitled {n, number, ::group-off}" in the language the app shows.

The name of the second and later new documents before they are saved, as "Untitled 2".

func UpperCase

func UpperCase() string

UpperCase says "Upper Case" in the language the app shows.

An item of the code editor's Transform menu.

func UseRegularExpression

func UseRegularExpression() string

UseRegularExpression says "Use regular expression" in the language the app shows.

An option of a find bar.

Types

type Messages

type Messages struct {
	// contains filtered or unexported fields
}

Messages say the messages in one language.

func In

func In(locale string) Messages

In returns the messages in the language of locale, as "de" or "zh-Hant", or of the catalog's language that suits it best, "" for the source language.

func (Messages) AlreadyExists

func (msgs Messages) AlreadyExists(name string) string

AlreadyExists says "An item named “{name}” already exists in this location. Do you want to replace it?" in the language of msgs.

Asks whether to replace a file as a document moves.

func (Messages) AlreadyExistsDetail

func (msgs Messages) AlreadyExistsDetail() string

AlreadyExistsDetail says "Replacing it overwrites its current contents." in the language of msgs.

Explains alreadyExists.

func (Messages) CamelCase

func (msgs Messages) CamelCase() string

CamelCase says "Camel Case" in the language of msgs.

An item of the code editor's Transform menu.

func (Messages) Cancel

func (msgs Messages) Cancel() string

Cancel says "Cancel" in the language of msgs.

A button of a dialog that cancels what it asks about.

func (Messages) ChangedOnDisk

func (msgs Messages) ChangedOnDisk(name string) string

ChangedOnDisk says "The file “{name}” has been changed by another application." in the language of msgs.

Says another app changed the file of a document being saved.

func (Messages) ChangedOnDiskDetail

func (msgs Messages) ChangedOnDiskDetail() string

ChangedOnDiskDetail says "Save Anyway replaces it with your version. Revert discards your changes and shows the version on disk." in the language of msgs.

Explains the buttons saveAnyway and revertDocument.

func (Messages) ChangesLost

func (msgs Messages) ChangesLost() string

ChangesLost says "Your changes will be lost if you don’t save them." in the language of msgs.

Explains the question of saveChanges.

func (Messages) Clear

func (msgs Messages) Clear() string

Clear says "Clear" in the language of msgs.

Labels the button that clears a search field.

func (Messages) ClearTerminal added in v0.1.8

func (msgs Messages) ClearTerminal() string

ClearTerminal says "Clear" in the language of msgs.

An item of a terminal's menu, which clears the lines scrolled out of view and the screen above the prompt, as Command-K does.

func (Messages) ClipboardRead

func (msgs Messages) ClipboardRead() string

ClipboardRead says "A program wants to read the clipboard" in the language of msgs.

The title of the terminal's prompt about a program's read of the clipboard.

func (Messages) ClipboardReadAllow

func (msgs Messages) ClipboardReadAllow() string

ClipboardReadAllow says "Allow" in the language of msgs.

The button of the terminal's clipboard prompt that lets the program read.

func (Messages) ClipboardReadDeny

func (msgs Messages) ClipboardReadDeny() string

ClipboardReadDeny says "Deny" in the language of msgs.

The button of the terminal's clipboard prompt that refuses the program.

func (Messages) ClipboardReadEmpty

func (msgs Messages) ClipboardReadEmpty() string

ClipboardReadEmpty says "The clipboard is empty." in the language of msgs.

What the terminal's clipboard prompt shows when the clipboard holds no text.

func (Messages) Close

func (msgs Messages) Close() string

Close says "Close" in the language of msgs.

Labels the button that closes a find bar.

func (Messages) CodeEditor

func (msgs Messages) CodeEditor() string

CodeEditor says "Code editor" in the language of msgs.

Names the code editor to assistive technology when the app gives it no label.

func (Messages) ColorName

func (msgs Messages) ColorName(color string) string

ColorName says "{color, select, red {Red} orange {Orange} yellow {Yellow} green {Green} teal {Teal} blue {Blue} indigo {Indigo} purpl…" in the language of msgs.

The name of a swatch of a color picker, by its color: red, orange, yellow, green, teal, blue, indigo, purple, pink, brown, gray or black.

func (Messages) ColorValue

func (msgs Messages) ColorValue(saturation float64, brightness float64) string

ColorValue says "{saturation, number, percent} saturation, {brightness, number, percent} brightness" in the language of msgs.

What assistive technology reads of the area of a color picker that sets the saturation and the brightness, as "40% saturation, 75% brightness".

func (Messages) Completions

func (msgs Messages) Completions() string

Completions says "Completions" in the language of msgs.

Labels the code editor's list of completions.

func (Messages) Copied

func (msgs Messages) Copied() string

Copied says "Copied" in the language of msgs.

What the copy button of a code block of Markdown says once it copied the code.

func (Messages) Copy

func (msgs Messages) Copy() string

Copy says "Copy" in the language of msgs.

An item of the menu of a text field.

func (Messages) CopyAsMarkdown

func (msgs Messages) CopyAsMarkdown() string

CopyAsMarkdown says "Copy as Markdown" in the language of msgs.

An item of the menu of a view of Markdown.

func (Messages) CopyCode

func (msgs Messages) CopyCode() string

CopyCode says "Copy code" in the language of msgs.

Labels the button of a code block of Markdown that copies its code.

func (Messages) CurrentLine

func (msgs Messages) CurrentLine(line int, lines int, column int) string

CurrentLine says "Current line {line, number, ::group-off} of {lines, number, ::group-off}, column {column, number, ::group-off}" in the language of msgs.

Where the caret is, which the go to line bar says.

func (Messages) Cut

func (msgs Messages) Cut() string

Cut says "Cut" in the language of msgs.

An item of the menu of a text field.

func (Messages) DayPeriod

func (msgs Messages) DayPeriod() string

DayPeriod says "AM/PM" in the language of msgs.

Names the part of a time field that says AM or PM to assistive technology, after the field's label.

func (Messages) DecimalAtLeast added in v0.1.15

func (msgs Messages) DecimalAtLeast(min string) string

DecimalAtLeast says "Enter {min} or more" in the language of msgs.

What a decimal input says of a number below its lowest, as "Enter 0.00 or more".

func (Messages) DecimalAtMost added in v0.1.15

func (msgs Messages) DecimalAtMost(max string) string

DecimalAtMost says "Enter {max} or less" in the language of msgs.

What a decimal input says of a number above its highest, as "Enter 100.00 or less".

func (Messages) DecimalInvalid added in v0.1.15

func (msgs Messages) DecimalInvalid() string

DecimalInvalid says "Enter a number" in the language of msgs.

What a decimal input says of text that is not a number, as "1,2x".

func (Messages) DecimalPlaces added in v0.1.15

func (msgs Messages) DecimalPlaces(n int) string

DecimalPlaces says "{n, plural, one {Use at most # decimal place} other {Use at most # decimal places}}" in the language of msgs.

What a decimal input says of a number with more decimals than its step has, which it does not round.

func (Messages) DecimalWhole added in v0.1.15

func (msgs Messages) DecimalWhole() string

DecimalWhole says "Enter a whole number" in the language of msgs.

What a decimal input whose step has no decimals says of a number with some.

func (Messages) Delete

func (msgs Messages) Delete() string

Delete says "Delete" in the language of msgs.

An item of the menu of a text field.

func (Messages) DeleteDocument

func (msgs Messages) DeleteDocument() string

DeleteDocument says "Delete" in the language of msgs.

A button of a dialog that deletes a new document instead of saving it.

func (Messages) DesktopShortcut added in v0.1.15

func (msgs Messages) DesktopShortcut() string

DesktopShortcut says "Create a desktop shortcut" in the language of msgs.

Labels the check box on the finish page of an app's Windows installer, which puts a shortcut to the app on the desktop.

func (Messages) DeveloperTools

func (msgs Messages) DeveloperTools() string

DeveloperTools says "Developer tools" in the language of msgs.

Labels the inspector of native UI.

func (Messages) DiscardChanges

func (msgs Messages) DiscardChanges() string

DiscardChanges says "Discard Changes" in the language of msgs.

A button of the dialog asking about the documents with changes as the app quits.

func (Messages) Divider

func (msgs Messages) Divider() string

Divider says "Divider" in the language of msgs.

Labels the line between the panes of a split view.

func (Messages) DocumentFailed

func (msgs Messages) DocumentFailed(action string, name string) string

DocumentFailed says "{action, select, opened {The document “{name}” could not be opened.} renamed {The document “{name}” could not…" in the language of msgs.

Says what failed of a document: opened, renamed, moved, reverted, or saved (other).

func (Messages) Done

func (msgs Messages) Done() string

Done says "Done" in the language of msgs.

The button that closes a find bar.

func (Messages) DontSave

func (msgs Messages) DontSave() string

DontSave says "Don’t Save" in the language of msgs.

A button of a dialog that closes a document without saving its changes.

func (Messages) Elements

func (msgs Messages) Elements() string

Elements says "Elements" in the language of msgs.

Labels the inspector's list of the elements of the window.

func (Messages) Expand

func (msgs Messages) Expand(what string) string

Expand says "Expand {what}" in the language of msgs.

What assistive technology calls a button of a diff viewer that shows unchanged lines, as in "Expand 4 unmodified lines".

func (Messages) ExpandAll

func (msgs Messages) ExpandAll() string

ExpandAll says "Expand all" in the language of msgs.

Labels the button of a diff viewer that shows all the unchanged lines.

func (Messages) ExpandDown

func (msgs Messages) ExpandDown() string

ExpandDown says "Expand down" in the language of msgs.

Labels the button of a diff viewer that shows the unchanged lines below a change.

func (Messages) ExpandSelection

func (msgs Messages) ExpandSelection() string

ExpandSelection says "Expand Selection" in the language of msgs.

An item of the code editor's Selection menu.

func (Messages) ExpandUp

func (msgs Messages) ExpandUp() string

ExpandUp says "Expand up" in the language of msgs.

Labels the button of a diff viewer that shows the unchanged lines above a change.

func (Messages) Find

func (msgs Messages) Find() string

Find says "Find" in the language of msgs.

Labels the bar that searches text, and is what its empty field shows.

func (Messages) FindInSelection

func (msgs Messages) FindInSelection() string

FindInSelection says "Find in selection" in the language of msgs.

An option of a find bar.

func (Messages) Fold

func (msgs Messages) Fold() string

Fold says "Fold" in the language of msgs.

An item of the code editor's Folding menu.

func (Messages) FoldAll

func (msgs Messages) FoldAll() string

FoldAll says "Fold All" in the language of msgs.

An item of the code editor's Folding menu.

func (Messages) Folding

func (msgs Messages) Folding() string

Folding says "Folding" in the language of msgs.

A submenu of the code editor's menu.

func (Messages) GoToDefinition

func (msgs Messages) GoToDefinition() string

GoToDefinition says "Go to Definition" in the language of msgs.

An item of the code editor's menu.

func (Messages) GoToLine

func (msgs Messages) GoToLine() string

GoToLine says "Go to line" in the language of msgs.

Labels the bar that goes to a line.

func (Messages) Hex

func (msgs Messages) Hex() string

Hex says "Hex" in the language of msgs.

Labels the field of a color picker that holds the color as hexadecimal.

func (Messages) Hours

func (msgs Messages) Hours() string

Hours says "hours" in the language of msgs.

Names the hours of a time field to assistive technology, after the field's label.

func (Messages) HunkAction

func (msgs Messages) HunkAction(action string) string

HunkAction says "{action} change" in the language of msgs.

What assistive technology calls a button that takes an action on a change, as in "Revert change".

func (Messages) Image

func (msgs Messages) Image() string

Image says "Image" in the language of msgs.

Names an image of Markdown without a description to assistive technology.

func (Messages) Invalid

func (msgs Messages) Invalid() string

Invalid says "Invalid" in the language of msgs.

What a find bar says of a query that is not a valid regular expression.

func (Messages) JoinLines

func (msgs Messages) JoinLines() string

JoinLines says "Join Lines" in the language of msgs.

An item of the code editor's Transform menu.

func (Messages) KebabCase

func (msgs Messages) KebabCase() string

KebabCase says "Kebab Case" in the language of msgs.

An item of the code editor's Transform menu.

func (Messages) Keep

func (msgs Messages) Keep() string

Keep says "Keep" in the language of msgs.

An action of a diff viewer on a change.

func (Messages) KeepNewDocument

func (msgs Messages) KeepNewDocument(name string) string

KeepNewDocument says "Do you want to keep this new document “{name}”?" in the language of msgs.

Asks, as a new document closes, whether to keep it.

func (Messages) KeepNewDocumentDetail

func (msgs Messages) KeepNewDocumentDetail() string

KeepNewDocumentDetail says "You can choose to save your changes, or delete this document immediately. You can’t undo this action." in the language of msgs.

Explains the question of keepNewDocument.

func (Messages) Line

func (msgs Messages) Line(n int) string

Line says "Line {n, number, ::group-off}" in the language of msgs.

The line a gutter button of a diff viewer adds a line at, as assistive technology reads it.

func (Messages) LineRange

func (msgs Messages) LineRange(lines int) string

LineRange says "Line 1 to {lines, number, ::group-off}, then :column" in the language of msgs.

What the empty field of the go to line bar shows.

func (Messages) LowerCase

func (msgs Messages) LowerCase() string

LowerCase says "Lower Case" in the language of msgs.

An item of the code editor's Transform menu.

func (Messages) MatchCase

func (msgs Messages) MatchCase() string

MatchCase says "Match case" in the language of msgs.

An option of a find bar.

func (Messages) MatchWholeWord

func (msgs Messages) MatchWholeWord() string

MatchWholeWord says "Match whole word" in the language of msgs.

An option of a find bar.

func (Messages) Matches

func (msgs Messages) Matches(current int, total int) string

Matches says "{current} of {total}" in the language of msgs.

Which of the matches a find bar is at, as "3 of 12".

func (Messages) MatchesMore

func (msgs Messages) MatchesMore(current int, total int) string

MatchesMore says "{current} of {total}+" in the language of msgs.

Which of the matches a find bar is at, when it stopped counting them, as "3 of 1000+".

func (Messages) MenuAbout

func (msgs Messages) MenuAbout(app string) string

MenuAbout says "About {app}" in the language of msgs.

The item of macOS's app menu that shows the app's about panel, with the app's name.

func (Messages) MenuActualSize

func (msgs Messages) MenuActualSize() string

MenuActualSize says "Actual Size" in the language of msgs.

The label of the menu items of the role resetZoom (MenuItem.Role).

func (Messages) MenuAlignLeft

func (msgs Messages) MenuAlignLeft() string

MenuAlignLeft says "Align Left" in the language of msgs.

The label of the menu items of the role alignLeft (MenuItem.Role).

func (Messages) MenuAlignRight

func (msgs Messages) MenuAlignRight() string

MenuAlignRight says "Align Right" in the language of msgs.

The label of the menu items of the role alignRight (MenuItem.Role).

func (Messages) MenuBold

func (msgs Messages) MenuBold() string

MenuBold says "Bold" in the language of msgs.

The label of the menu items of the role bold (MenuItem.Role).

func (Messages) MenuBringAllToFront

func (msgs Messages) MenuBringAllToFront() string

MenuBringAllToFront says "Bring All to Front" in the language of msgs.

The label of the menu items of the role front (MenuItem.Role).

func (Messages) MenuCenter

func (msgs Messages) MenuCenter() string

MenuCenter says "Center" in the language of msgs.

The label of the menu items of the role alignCenter (MenuItem.Role).

func (Messages) MenuClearRecent

func (msgs Messages) MenuClearRecent() string

MenuClearRecent says "Clear Menu" in the language of msgs.

The last item of the menu of recent documents, which empties it.

func (Messages) MenuClose

func (msgs Messages) MenuClose() string

MenuClose says "Close" in the language of msgs.

The item that closes a document's window.

func (Messages) MenuCloseWindow

func (msgs Messages) MenuCloseWindow() string

MenuCloseWindow says "Close Window" in the language of msgs.

The item that closes a window.

func (Messages) MenuCopy

func (msgs Messages) MenuCopy() string

MenuCopy says "Copy" in the language of msgs.

The label of the menu items of the role copy (MenuItem.Role).

func (Messages) MenuCut

func (msgs Messages) MenuCut() string

MenuCut says "Cut" in the language of msgs.

The label of the menu items of the role cut (MenuItem.Role).

func (Messages) MenuDelete

func (msgs Messages) MenuDelete() string

MenuDelete says "Delete" in the language of msgs.

The label of the menu items of the role delete (MenuItem.Role).

func (Messages) MenuDuplicate

func (msgs Messages) MenuDuplicate() string

MenuDuplicate says "Duplicate" in the language of msgs.

The label of the menu items of the role duplicate (MenuItem.Role).

func (Messages) MenuEdit

func (msgs Messages) MenuEdit() string

MenuEdit says "Edit" in the language of msgs.

A menu of the menu bar.

func (Messages) MenuExit

func (msgs Messages) MenuExit() string

MenuExit says "Exit" in the language of msgs.

The item that quits the app on Windows.

func (Messages) MenuFile

func (msgs Messages) MenuFile() string

MenuFile says "File" in the language of msgs.

A menu of the menu bar.

func (Messages) MenuForceReload

func (msgs Messages) MenuForceReload() string

MenuForceReload says "Force Reload" in the language of msgs.

The label of the menu items of the role forceReload (MenuItem.Role).

func (Messages) MenuFormat

func (msgs Messages) MenuFormat() string

MenuFormat says "Format" in the language of msgs.

A menu of the menu bar.

func (Messages) MenuHelp

func (msgs Messages) MenuHelp() string

MenuHelp says "Help" in the language of msgs.

A menu of the menu bar.

func (Messages) MenuHide

func (msgs Messages) MenuHide(app string) string

MenuHide says "Hide {app}" in the language of msgs.

The item of macOS's app menu that hides the app, with the app's name.

func (Messages) MenuHideOthers

func (msgs Messages) MenuHideOthers() string

MenuHideOthers says "Hide Others" in the language of msgs.

The label of the menu items of the role hideOthers (MenuItem.Role).

func (Messages) MenuItalic

func (msgs Messages) MenuItalic() string

MenuItalic says "Italic" in the language of msgs.

The label of the menu items of the role italic (MenuItem.Role).

func (Messages) MenuMinimize

func (msgs Messages) MenuMinimize() string

MenuMinimize says "Minimize" in the language of msgs.

The label of the menu items of the role minimize (MenuItem.Role).

func (Messages) MenuMoveTo

func (msgs Messages) MenuMoveTo() string

MenuMoveTo says "Move To…" in the language of msgs.

The label of the menu items of the role moveTo (MenuItem.Role).

func (Messages) MenuNew

func (msgs Messages) MenuNew() string

MenuNew says "New" in the language of msgs.

The label of the menu items of the role new (MenuItem.Role).

func (Messages) MenuOpen

func (msgs Messages) MenuOpen() string

MenuOpen says "Open…" in the language of msgs.

The label of the menu items of the role open (MenuItem.Role).

func (Messages) MenuOpenRecent

func (msgs Messages) MenuOpenRecent() string

MenuOpenRecent says "Open Recent" in the language of msgs.

The label of the menu items of the role openRecent (MenuItem.Role).

func (Messages) MenuPaste

func (msgs Messages) MenuPaste() string

MenuPaste says "Paste" in the language of msgs.

The label of the menu items of the role paste (MenuItem.Role).

func (Messages) MenuPasteAndMatchStyle

func (msgs Messages) MenuPasteAndMatchStyle() string

MenuPasteAndMatchStyle says "Paste and Match Style" in the language of msgs.

The label of the menu items of the role pasteAndMatchStyle (MenuItem.Role).

func (Messages) MenuQuit

func (msgs Messages) MenuQuit() string

MenuQuit says "Quit" in the language of msgs.

The item that quits the app on Linux.

func (Messages) MenuQuitApp

func (msgs Messages) MenuQuitApp(app string) string

MenuQuitApp says "Quit {app}" in the language of msgs.

The item of macOS's app menu that quits the app, with the app's name.

func (Messages) MenuRedo

func (msgs Messages) MenuRedo() string

MenuRedo says "Redo" in the language of msgs.

The label of the menu items of the role redo (MenuItem.Role).

func (Messages) MenuReload

func (msgs Messages) MenuReload() string

MenuReload says "Reload" in the language of msgs.

The label of the menu items of the role reload (MenuItem.Role).

func (Messages) MenuRename

func (msgs Messages) MenuRename() string

MenuRename says "Rename…" in the language of msgs.

The label of the menu items of the role rename (MenuItem.Role).

func (Messages) MenuRevert

func (msgs Messages) MenuRevert() string

MenuRevert says "Revert" in the language of msgs.

The item that reverts a document to its saved version.

func (Messages) MenuRevertToSaved

func (msgs Messages) MenuRevertToSaved() string

MenuRevertToSaved says "Revert to Saved" in the language of msgs.

macOS's item that reverts a document to its saved version.

func (Messages) MenuSave

func (msgs Messages) MenuSave() string

MenuSave says "Save" in the language of msgs.

The label of the menu items of the role save (MenuItem.Role).

func (Messages) MenuSaveAs

func (msgs Messages) MenuSaveAs() string

MenuSaveAs says "Save As…" in the language of msgs.

The label of the menu items of the role saveAs (MenuItem.Role).

func (Messages) MenuSelectAll

func (msgs Messages) MenuSelectAll() string

MenuSelectAll says "Select All" in the language of msgs.

The label of the menu items of the role selectAll (MenuItem.Role).

func (Messages) MenuServices

func (msgs Messages) MenuServices() string

MenuServices says "Services" in the language of msgs.

The label of the menu items of the role services (MenuItem.Role).

func (Messages) MenuShowAll

func (msgs Messages) MenuShowAll() string

MenuShowAll says "Show All" in the language of msgs.

The label of the menu items of the role unhide (MenuItem.Role).

func (Messages) MenuSpeech

func (msgs Messages) MenuSpeech() string

MenuSpeech says "Speech" in the language of msgs.

The submenu of macOS's Edit menu with the items that speak the selection.

func (Messages) MenuStartSpeaking

func (msgs Messages) MenuStartSpeaking() string

MenuStartSpeaking says "Start Speaking" in the language of msgs.

The label of the menu items of the role startSpeaking (MenuItem.Role).

func (Messages) MenuStopSpeaking

func (msgs Messages) MenuStopSpeaking() string

MenuStopSpeaking says "Stop Speaking" in the language of msgs.

The label of the menu items of the role stopSpeaking (MenuItem.Role).

func (Messages) MenuStrikethrough

func (msgs Messages) MenuStrikethrough() string

MenuStrikethrough says "Strikethrough" in the language of msgs.

The label of the menu items of the role strikethrough (MenuItem.Role).

func (Messages) MenuToggleDevTools

func (msgs Messages) MenuToggleDevTools() string

MenuToggleDevTools says "Toggle Developer Tools" in the language of msgs.

The label of the menu items of the role toggleDevTools (MenuItem.Role).

func (Messages) MenuToggleFullScreen

func (msgs Messages) MenuToggleFullScreen() string

MenuToggleFullScreen says "Toggle Full Screen" in the language of msgs.

The label of the menu items of the role togglefullscreen (MenuItem.Role).

func (Messages) MenuUnderline

func (msgs Messages) MenuUnderline() string

MenuUnderline says "Underline" in the language of msgs.

The label of the menu items of the role underline (MenuItem.Role).

func (Messages) MenuUndo

func (msgs Messages) MenuUndo() string

MenuUndo says "Undo" in the language of msgs.

The label of the menu items of the role undo (MenuItem.Role).

func (Messages) MenuView

func (msgs Messages) MenuView() string

MenuView says "View" in the language of msgs.

A menu of the menu bar.

func (Messages) MenuWindow

func (msgs Messages) MenuWindow() string

MenuWindow says "Window" in the language of msgs.

A menu of the menu bar.

func (Messages) MenuZoom

func (msgs Messages) MenuZoom() string

MenuZoom says "Zoom" in the language of msgs.

The label of the menu items of the role zoom (MenuItem.Role).

func (Messages) MenuZoomIn

func (msgs Messages) MenuZoomIn() string

MenuZoomIn says "Zoom In" in the language of msgs.

The label of the menu items of the role zoomIn (MenuItem.Role).

func (Messages) MenuZoomOut

func (msgs Messages) MenuZoomOut() string

MenuZoomOut says "Zoom Out" in the language of msgs.

The label of the menu items of the role zoomOut (MenuItem.Role).

func (Messages) Minutes

func (msgs Messages) Minutes() string

Minutes says "minutes" in the language of msgs.

Names the minutes of a time field to assistive technology, after the field's label.

func (Messages) More

func (msgs Messages) More() string

More says "More" in the language of msgs.

Labels the button of a toolbar that opens what the toolbar hides.

func (Messages) Move

func (msgs Messages) Move() string

Move says "Move" in the language of msgs.

The button of the dialog that moves a document to another folder.

func (Messages) MoveTo

func (msgs Messages) MoveTo() string

MoveTo says "Move To" in the language of msgs.

The title of the dialog that moves a document to another folder.

func (Messages) NewText

func (msgs Messages) NewText() string

NewText says "New text" in the language of msgs.

Names the side of a diff viewer with the text as it is.

func (Messages) Next

func (msgs Messages) Next() string

Next says "Next" in the language of msgs.

Labels the button of a find bar that goes to the next match.

func (Messages) NextMatch

func (msgs Messages) NextMatch() string

NextMatch says "Next match" in the language of msgs.

Labels the button of a find bar that goes to the next match.

func (Messages) NextMonth

func (msgs Messages) NextMonth() string

NextMonth says "Next month" in the language of msgs.

Labels the button of a calendar that shows the next month.

func (Messages) NoMatches

func (msgs Messages) NoMatches() string

NoMatches says "No matches" in the language of msgs.

What a find bar says of a query that matches nothing.

func (Messages) NoResults

func (msgs Messages) NoResults() string

NoResults says "No results" in the language of msgs.

What a find bar says of a query that matches nothing.

func (Messages) Ok

func (msgs Messages) Ok() string

Ok says "OK" in the language of msgs.

The button of a dialog that only tells something, and of a page's alert, confirm and prompt.

func (Messages) OldText

func (msgs Messages) OldText() string

OldText says "Old text" in the language of msgs.

Names the side of a diff viewer with the text as it was.

func (Messages) Open

func (msgs Messages) Open() string

Open says "Open" in the language of msgs.

The title and the button of the dialog that opens files.

func (Messages) PascalCase

func (msgs Messages) PascalCase() string

PascalCase says "Pascal Case" in the language of msgs.

An item of the code editor's Transform menu.

func (Messages) Paste

func (msgs Messages) Paste() string

Paste says "Paste" in the language of msgs.

An item of the menu of a text field.

func (Messages) Previous

func (msgs Messages) Previous() string

Previous says "Previous" in the language of msgs.

Labels the button of a find bar that goes to the previous match.

func (Messages) PreviousMatch

func (msgs Messages) PreviousMatch() string

PreviousMatch says "Previous match" in the language of msgs.

Labels the button of a find bar that goes to the previous match.

func (Messages) PreviousMonth

func (msgs Messages) PreviousMonth() string

PreviousMonth says "Previous month" in the language of msgs.

Labels the button of a calendar that shows the previous month.

func (Messages) ReadOnly

func (msgs Messages) ReadOnly(name string) string

ReadOnly says "The document “{name}” can’t be saved because its file is read-only." in the language of msgs.

Says a document cannot be saved in its file.

func (Messages) ReadOnlyDetail

func (msgs Messages) ReadOnlyDetail() string

ReadOnlyDetail says "Save it as another file to keep your changes." in the language of msgs.

Explains readOnly.

func (Messages) RemoveToken

func (msgs Messages) RemoveToken(token string) string

RemoveToken says "Remove {token}" in the language of msgs.

Labels the button that removes a token of a token field, as in "Remove Ada".

func (Messages) Rename

func (msgs Messages) Rename() string

Rename says "Rename" in the language of msgs.

The title and the button of the dialog that renames a document.

func (Messages) RenameTo

func (msgs Messages) RenameTo() string

RenameTo says "Rename To:" in the language of msgs.

Labels the field of the name of the dialog that renames a document.

func (Messages) Replace

func (msgs Messages) Replace() string

Replace says "Replace" in the language of msgs.

Labels the button of a find bar that replaces the match it is at, and is what the empty replacement field shows.

func (Messages) ReplaceAll

func (msgs Messages) ReplaceAll() string

ReplaceAll says "Replace All" in the language of msgs.

Labels the button of a find bar that replaces every match.

func (Messages) ReplaceFile

func (msgs Messages) ReplaceFile() string

ReplaceFile says "Replace" in the language of msgs.

A button of a dialog that replaces a file with a document.

func (Messages) ReverseLines

func (msgs Messages) ReverseLines() string

ReverseLines says "Reverse Lines" in the language of msgs.

An item of the code editor's Transform menu.

func (Messages) Revert

func (msgs Messages) Revert() string

Revert says "Revert" in the language of msgs.

An action of a diff viewer on a change.

func (Messages) RevertDetail

func (msgs Messages) RevertDetail() string

RevertDetail says "Your current changes will be lost." in the language of msgs.

Explains revertQuestion.

func (Messages) RevertDocument

func (msgs Messages) RevertDocument() string

RevertDocument says "Revert" in the language of msgs.

A button of a dialog that reverts a document to its file.

func (Messages) RevertQuestion

func (msgs Messages) RevertQuestion(name string) string

RevertQuestion says "Do you want to revert “{name}” to the last saved version?" in the language of msgs.

Asks whether to revert a document to its file.

func (Messages) ReviewBeforeQuitting

func (msgs Messages) ReviewBeforeQuitting(n int, app string) string

ReviewBeforeQuitting says "You have {n} {app} documents with unsaved changes. Do you want to review these changes before quitting?" in the language of msgs.

Asks on macOS, as the app quits, about its documents with changes, two or more.

func (Messages) ReviewBeforeQuittingDetail

func (msgs Messages) ReviewBeforeQuittingDetail() string

ReviewBeforeQuittingDetail says "If you don’t review your documents, all your changes will be lost." in the language of msgs.

Explains reviewBeforeQuitting.

func (Messages) ReviewChanges

func (msgs Messages) ReviewChanges() string

ReviewChanges says "Review Changes…" in the language of msgs.

A button of the dialog asking about the documents with changes as the app quits.

func (Messages) RichText

func (msgs Messages) RichText() string

RichText says "Rich text" in the language of msgs.

Names a rich text editor to assistive technology when the app gives it no label.

func (Messages) Saturation

func (msgs Messages) Saturation() string

Saturation says "Saturation and brightness" in the language of msgs.

Labels the area of a color picker that sets the saturation and the brightness.

func (Messages) Save

func (msgs Messages) Save() string

Save says "Save" in the language of msgs.

A button of a dialog that saves a document.

func (Messages) SaveAll

func (msgs Messages) SaveAll() string

SaveAll says "Save All" in the language of msgs.

A button of a dialog that saves every document with changes.

func (Messages) SaveAnyway

func (msgs Messages) SaveAnyway() string

SaveAnyway says "Save Anyway" in the language of msgs.

A button of a dialog that saves a document whose file another app changed.

func (Messages) SaveAs

func (msgs Messages) SaveAs() string

SaveAs says "Save As…" in the language of msgs.

A button of a dialog that saves a document as another file.

func (Messages) SaveChanges

func (msgs Messages) SaveChanges(name string) string

SaveChanges says "Do you want to save the changes made to the document “{name}”?" in the language of msgs.

Asks, as a document with changes closes, whether to save them.

func (Messages) SaveEllipsis

func (msgs Messages) SaveEllipsis() string

SaveEllipsis says "Save…" in the language of msgs.

A button of a dialog that saves a new document, after asking where.

func (Messages) SaveManyChanges

func (msgs Messages) SaveManyChanges(n int) string

SaveManyChanges says "Do you want to save the changes to the following {n} documents?" in the language of msgs.

Asks, as the app quits, about its documents with changes, two or more, which the dialog lists.

func (Messages) Search

func (msgs Messages) Search() string

Search says "Search" in the language of msgs.

What an empty search field shows.

func (Messages) SelectAll

func (msgs Messages) SelectAll() string

SelectAll says "Select All" in the language of msgs.

An item of the menu of a text field.

func (Messages) SelectAllOccurrences

func (msgs Messages) SelectAllOccurrences() string

SelectAllOccurrences says "Select All Occurrences" in the language of msgs.

An item of the code editor's Selection menu.

func (Messages) SelectFolder

func (msgs Messages) SelectFolder() string

SelectFolder says "Select Folder" in the language of msgs.

The title of the dialog that chooses a folder.

func (Messages) SelectNextOccurrence

func (msgs Messages) SelectNextOccurrence() string

SelectNextOccurrence says "Select Next Occurrence" in the language of msgs.

An item of the code editor's Selection menu.

func (Messages) Selected added in v0.1.17

func (msgs Messages) Selected() string

Selected says "selected" in the language of msgs.

What VoiceOver reads after the name of a cell of a grid that is chosen, as a calendar's day picked, where it reads no chosen state of cells itself.

func (Messages) Selection

func (msgs Messages) Selection() string

Selection says "Selection" in the language of msgs.

A submenu of the code editor's menu.

func (Messages) SnakeCase

func (msgs Messages) SnakeCase() string

SnakeCase says "Snake Case" in the language of msgs.

An item of the code editor's Transform menu.

func (Messages) SortLines

func (msgs Messages) SortLines() string

SortLines says "Sort Lines" in the language of msgs.

An item of the code editor's Transform menu.

func (Messages) SplitIntoLines

func (msgs Messages) SplitIntoLines() string

SplitIntoLines says "Split into Lines" in the language of msgs.

An item of the code editor's Selection menu, which splits a selection of several lines into one selection a line.

func (Messages) TitleCase

func (msgs Messages) TitleCase() string

TitleCase says "Title Case" in the language of msgs.

An item of the code editor's Transform menu.

func (Messages) ToggleComment

func (msgs Messages) ToggleComment() string

ToggleComment says "Toggle Comment" in the language of msgs.

An item of the code editor's menu, which comments out the selection or its lines.

func (Messages) Transform

func (msgs Messages) Transform() string

Transform says "Transform" in the language of msgs.

A submenu of the code editor's menu.

func (Messages) TrimTrailingWhitespace

func (msgs Messages) TrimTrailingWhitespace() string

TrimTrailingWhitespace says "Trim Trailing Whitespace" in the language of msgs.

An item of the code editor's Transform menu.

func (Messages) Undo

func (msgs Messages) Undo() string

Undo says "Undo" in the language of msgs.

An item of the menu of a text field.

func (Messages) Unfold

func (msgs Messages) Unfold() string

Unfold says "Unfold" in the language of msgs.

An item of the code editor's Folding menu.

func (Messages) UnfoldAll

func (msgs Messages) UnfoldAll() string

UnfoldAll says "Unfold All" in the language of msgs.

An item of the code editor's Folding menu.

func (Messages) UniqueLines

func (msgs Messages) UniqueLines() string

UniqueLines says "Unique Lines" in the language of msgs.

An item of the code editor's Transform menu, which removes repeated lines.

func (Messages) UnmodifiedLines

func (msgs Messages) UnmodifiedLines(n int) string

UnmodifiedLines says "{n, plural, one {# unmodified line} other {# unmodified lines}}" in the language of msgs.

The unchanged lines a separator of a diff viewer collapses.

func (Messages) Untitled

func (msgs Messages) Untitled() string

Untitled says "Untitled" in the language of msgs.

The name of a new document before it is saved.

func (Messages) UntitledNumbered

func (msgs Messages) UntitledNumbered(n int) string

UntitledNumbered says "Untitled {n, number, ::group-off}" in the language of msgs.

The name of the second and later new documents before they are saved, as "Untitled 2".

func (Messages) UpperCase

func (msgs Messages) UpperCase() string

UpperCase says "Upper Case" in the language of msgs.

An item of the code editor's Transform menu.

func (Messages) UseRegularExpression

func (msgs Messages) UseRegularExpression() string

UseRegularExpression says "Use regular expression" in the language of msgs.

An option of a find bar.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL