locales

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: Apache-2.0 Imports: 2 Imported by: ? 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 locales says the words the backends show and announce in the language the app shows: those of the platforms' menus, the standard items' and the menus apps build around them, of macOS's permission guide, its panel with the titles of System Settings' privacy panes, and the roles and states the screen readers of Android and Windows announce where the system has no word of its own. Apps supply other languages in their catalogs, under the key github.com/nsgo-dev/nsgo/desktop/locales.

Index

Constants

View Source
const Source = "en"

Source is the language the messages are written in.

Variables

View Source
var Catalog = i18n.NewCatalog("en", "zh-Hans")

Catalog holds the messages' languages: en, the source, zh-Hans, and those other packages supply.

View Source
var Parameters = map[string][]string{
	"AboutApp":         {"app"},
	"HideApp":          {"app"},
	"QuitApp":          {"app"},
	"GuideDrag":        {"app", "permission"},
	"RoleHeadingLevel": {"level"},
	"StateLevel":       {"level"},
}

Parameters names the parameters of each message that has some, by its method, for the TSX declarations of the messages (tsx.RegisterMessages).

Functions

func About

func About(cx *core.Scope) string

About says "About" in the language the app shows under cx.

func AboutApp

func AboutApp(cx *core.Scope, app string) string

AboutApp says "About {app}" in the language the app shows under cx.

The macOS app menu's item, which names the app.

func AuthSessionDone added in v0.2.0

func AuthSessionDone(cx *core.Scope) string

AuthSessionDone says "You can close this page and return to the app." in the language the app shows under cx.

The page the default browser shows once a sign-in started from the app redirects back to it on desktops.

func BringAllToFront added in v0.2.0

func BringAllToFront(cx *core.Scope) string

BringAllToFront says "Bring All to Front" in the language the app shows under cx.

func Cancel

func Cancel(cx *core.Scope) string

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

func CheckForUpdates

func CheckForUpdates(cx *core.Scope) string

CheckForUpdates says "Check for Updates…" in the language the app shows under cx.

The macOS app menu's item of an app that updates itself, which checks for a newer version now.

func Close

func Close(cx *core.Scope) string

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

func Copy

func Copy(cx *core.Scope) string

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

func Cut

func Cut(cx *core.Scope) string

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

func Delete

func Delete(cx *core.Scope) string

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

The item of a text field's context menu that removes the selection.

func Edit

func Edit(cx *core.Scope) string

Edit says "Edit" in the language the app shows under cx.

The title of the menu of the text editing items.

func EnterFullScreen

func EnterFullScreen(cx *core.Scope) string

EnterFullScreen says "Enter Full Screen" in the language the app shows under cx.

func ExitFullScreen

func ExitFullScreen(cx *core.Scope) string

ExitFullScreen says "Exit Full Screen" in the language the app shows under cx.

func GuideDrag

func GuideDrag(cx *core.Scope, app string, permission string) string

GuideDrag says "Drag {app} to the list above to allow {permission}." in the language the app shows under cx.

The macOS guide's panel under System Settings, which holds the app for the user to drag into the list of a privacy pane; app is the app's name and permission the pane's title, both shown in bold.

func GuideDragHint

func GuideDragHint(cx *core.Scope) string

GuideDragHint says "Drag" in the language the app shows under cx.

The hint on the card the user drags from the macOS guide's panel into System Settings.

func Help added in v0.2.0

func Help(cx *core.Scope) string

Help says "Help" in the language the app shows under cx.

The title of the menu of the help items.

func Hide

func Hide(cx *core.Scope) string

Hide says "Hide" in the language the app shows under cx.

func HideApp

func HideApp(cx *core.Scope, app string) string

HideApp says "Hide {app}" in the language the app shows under cx.

The macOS app menu's item, which names the app.

func HideOthers

func HideOthers(cx *core.Scope) string

HideOthers says "Hide Others" in the language the app shows under cx.

func Minimize

func Minimize(cx *core.Scope) string

Minimize says "Minimize" in the language the app shows under cx.

func Paste

func Paste(cx *core.Scope) string

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

func PasteAndMatchStyle added in v0.2.0

func PasteAndMatchStyle(cx *core.Scope) string

PasteAndMatchStyle says "Paste and Match Style" in the language the app shows under cx.

func PermissionAccessibility

func PermissionAccessibility(cx *core.Scope) string

PermissionAccessibility says "Accessibility" in the language the app shows under cx.

The title of macOS's privacy pane before macOS 27, as System Settings shows it.

func PermissionAppManagement

func PermissionAppManagement(cx *core.Scope) string

PermissionAppManagement says "App Management" in the language the app shows under cx.

The title of macOS's privacy pane, as System Settings shows it.

func PermissionBluetooth

func PermissionBluetooth(cx *core.Scope) string

PermissionBluetooth says "Bluetooth" in the language the app shows under cx.

The title of macOS's privacy pane, as System Settings shows it.

func PermissionDeveloperTools

func PermissionDeveloperTools(cx *core.Scope) string

PermissionDeveloperTools says "Developer Tools" in the language the app shows under cx.

The title of macOS's privacy pane, as System Settings shows it.

func PermissionDeviceControl

func PermissionDeviceControl(cx *core.Scope) string

PermissionDeviceControl says "Device Control and Data Access" in the language the app shows under cx.

The title of macOS's Accessibility pane from macOS 27, as System Settings shows it.

func PermissionFullDiskAccess

func PermissionFullDiskAccess(cx *core.Scope) string

PermissionFullDiskAccess says "Full Disk Access" in the language the app shows under cx.

The title of macOS's privacy pane, as System Settings shows it.

func PermissionInputMonitoring

func PermissionInputMonitoring(cx *core.Scope) string

PermissionInputMonitoring says "Input Monitoring" in the language the app shows under cx.

The title of macOS's privacy pane, as System Settings shows it.

func PermissionMediaLibrary

func PermissionMediaLibrary(cx *core.Scope) string

PermissionMediaLibrary says "Media & Apple Music" in the language the app shows under cx.

The title of macOS's privacy pane, as System Settings shows it.

func PermissionScreenAudioRecording

func PermissionScreenAudioRecording(cx *core.Scope) string

PermissionScreenAudioRecording says "Screen & System Audio Recording" in the language the app shows under cx.

The title of macOS's Screen Recording pane from macOS 15, as System Settings shows it.

func PermissionScreenRecording

func PermissionScreenRecording(cx *core.Scope) string

PermissionScreenRecording says "Screen Recording" in the language the app shows under cx.

The title of macOS's privacy pane before macOS 15, as System Settings shows it.

func Quit

func Quit(cx *core.Scope) string

Quit says "Quit" in the language the app shows under cx.

func QuitApp

func QuitApp(cx *core.Scope, app string) string

QuitApp says "Quit {app}" in the language the app shows under cx.

The macOS app menu's item, which names the app.

func Redo

func Redo(cx *core.Scope) string

Redo says "Redo" in the language the app shows under cx.

func RoleAlert added in v0.2.0

func RoleAlert(cx *core.Scope) string

RoleAlert says "alert" in the language the app shows under cx.

What Android's screen reader announces an urgent message as.

func RoleCell added in v0.2.0

func RoleCell(cx *core.Scope) string

RoleCell says "cell" in the language the app shows under cx.

What Android's screen reader announces a cell of a table or grid as.

func RoleColumnHeader added in v0.2.0

func RoleColumnHeader(cx *core.Scope) string

RoleColumnHeader says "column header" in the language the app shows under cx.

What Android's screen reader announces the header of a table's column as.

func RoleComboBox

func RoleComboBox(cx *core.Scope) string

RoleComboBox says "combo box" in the language the app shows under cx.

What Android's screen reader announces a select trigger or editable combo box as.

func RoleDialog added in v0.2.0

func RoleDialog(cx *core.Scope) string

RoleDialog says "dialog" in the language the app shows under cx.

What Android's screen reader announces a dialog as.

func RoleGrid added in v0.2.0

func RoleGrid(cx *core.Scope) string

RoleGrid says "grid" in the language the app shows under cx.

What Android's screen reader announces a grid of cells the user moves between as.

func RoleGroup

func RoleGroup(cx *core.Scope) string

RoleGroup says "group" in the language the app shows under cx.

What Android's screen reader announces a group of related elements as.

func RoleHeadingLevel

func RoleHeadingLevel(cx *core.Scope, level string) string

RoleHeadingLevel says "heading level {level}" in the language the app shows under cx.

What Android's screen reader announces a heading with a level as; level is the heading's level, from 1.

func RoleLink(cx *core.Scope) string

RoleLink says "link" in the language the app shows under cx.

What Android's screen reader announces a link as.

func RoleListBox

func RoleListBox(cx *core.Scope) string

RoleListBox says "list box" in the language the app shows under cx.

What Android's screen reader announces a list of selectable options as.

func RoleMenu added in v0.2.0

func RoleMenu(cx *core.Scope) string

RoleMenu says "menu" in the language the app shows under cx.

What Android's screen reader announces a menu as.

func RoleMenuItem added in v0.2.0

func RoleMenuItem(cx *core.Scope) string

RoleMenuItem says "menu item" in the language the app shows under cx.

What Android's screen reader announces an item of a menu as.

func RoleNavigation

func RoleNavigation(cx *core.Scope) string

RoleNavigation says "navigation" in the language the app shows under cx.

What Android's screen reader announces a navigation landmark as.

func RoleOption

func RoleOption(cx *core.Scope) string

RoleOption says "option" in the language the app shows under cx.

What Android's screen reader announces an option in a list box as.

func RoleRegion

func RoleRegion(cx *core.Scope) string

RoleRegion says "region" in the language the app shows under cx.

What Android's screen reader announces a landmark region of a page as.

func RoleRow added in v0.2.0

func RoleRow(cx *core.Scope) string

RoleRow says "row" in the language the app shows under cx.

What Android's screen reader announces a row of a table or grid as.

func RoleSearchBox added in v0.2.0

func RoleSearchBox(cx *core.Scope) string

RoleSearchBox says "search box" in the language the app shows under cx.

What Android's and Windows' screen readers announce a search field as, in place of a text field.

func RoleSpinButton

func RoleSpinButton(cx *core.Scope) string

RoleSpinButton says "spin button" in the language the app shows under cx.

What Android's screen reader announces a numeric spin button as.

func RoleStatus added in v0.2.0

func RoleStatus(cx *core.Scope) string

RoleStatus says "status" in the language the app shows under cx.

What Android's screen reader announces a status area, which reports changes as they happen, as.

func RoleTab added in v0.2.0

func RoleTab(cx *core.Scope) string

RoleTab says "tab" in the language the app shows under cx.

What Android's screen reader announces a tab of a tab list as.

func RoleTable added in v0.2.0

func RoleTable(cx *core.Scope) string

RoleTable says "table" in the language the app shows under cx.

What Android's screen reader announces a table as.

func RoleToolbar

func RoleToolbar(cx *core.Scope) string

RoleToolbar says "toolbar" in the language the app shows under cx.

What Android's screen reader announces a toolbar of controls as.

func RoleTree

func RoleTree(cx *core.Scope) string

RoleTree says "tree" in the language the app shows under cx.

What Android's screen reader announces a tree view as.

func RoleTreeItem

func RoleTreeItem(cx *core.Scope) string

RoleTreeItem says "tree item" in the language the app shows under cx.

What Android's screen reader announces an item in a tree view as.

func ScanCode

func ScanCode(cx *core.Scope) string

ScanCode says "Scan Code" in the language the app shows under cx.

func SelectAll

func SelectAll(cx *core.Scope) string

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

func Services added in v0.2.0

func Services(cx *core.Scope) string

Services says "Services" in the language the app shows under cx.

The title of the macOS app menu's submenu the system fills with other apps' services.

func ShowAll

func ShowAll(cx *core.Scope) string

ShowAll says "Show All" in the language the app shows under cx.

func SpokenSeparator added in v0.2.0

func SpokenSeparator(cx *core.Scope) string

SpokenSeparator says ", " in the language the app shows under cx.

The separator Android's screen reader reads between a node's localized state parts.

func StartSpeaking added in v0.2.0

func StartSpeaking(cx *core.Scope) string

StartSpeaking says "Start Speaking" in the language the app shows under cx.

func StateBusy

func StateBusy(cx *core.Scope) string

StateBusy says "busy" in the language the app shows under cx.

What Android's screen reader announces an element that is loading or busy as.

func StateCollapsed added in v0.2.0

func StateCollapsed(cx *core.Scope) string

StateCollapsed says "collapsed" in the language the app shows under cx.

What Android's screen reader announces an expandable element that hides its content as.

func StateExpanded added in v0.2.0

func StateExpanded(cx *core.Scope) string

StateExpanded says "expanded" in the language the app shows under cx.

What Android's screen reader announces an expandable element that shows its content as.

func StateLevel

func StateLevel(cx *core.Scope, level string) string

StateLevel says "level {level}" in the language the app shows under cx.

What Android's screen reader announces a nested item's level, such as a tree item's depth, as; level is the item's level, from 1.

func StatePartiallyChecked added in v0.2.0

func StatePartiallyChecked(cx *core.Scope) string

StatePartiallyChecked says "partially checked" in the language the app shows under cx.

What Android's screen reader announces a checkbox in its mixed state as, checked for some of the items it stands for.

func StatePressed

func StatePressed(cx *core.Scope) string

StatePressed says "pressed" in the language the app shows under cx.

What Android's screen reader announces a toggle button that is pressed as.

func StopSpeaking added in v0.2.0

func StopSpeaking(cx *core.Scope) string

StopSpeaking says "Stop Speaking" in the language the app shows under cx.

func Supply

func Supply(lang string, t Translation)

Supply adds the messages t has in lang to the catalog, over its own. nsgo writes the calls, in the package that supplies them, which runs them as it initializes.

func TakePhoto

func TakePhoto(cx *core.Scope) string

TakePhoto says "Take Photo" in the language the app shows under cx.

The title of the desktop camera that TakePhoto shows, and its button that takes the photo.

func ToggleFullScreen

func ToggleFullScreen(cx *core.Scope) string

ToggleFullScreen says "Toggle Full Screen" in the language the app shows under cx.

func Undo

func Undo(cx *core.Scope) string

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

func Window

func Window(cx *core.Scope) string

Window says "Window" in the language the app shows under cx.

The title of the menu of the window items.

func Zoom

func Zoom(cx *core.Scope) string

Zoom says "Zoom" in the language the app shows under cx.

Types

type Messages

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

Messages say the messages in one language, their times in the hour cycle hc the user set; with mark, the source's with their arguments marked, which a pseudo locale transforms.

func For

func For(cx *core.Scope) Messages

For returns the messages in the language the app shows under cx (i18n.Language), their times as the user reads them; a binding that says them follows both as they change.

func In

func In(locale string) Messages

In returns the messages in the catalog's language that suits locale best, as zh-Hant suits zh-TW, else in the source language.

func (Messages) About

func (msgs Messages) About() string

About is the package's About in the language of msgs.

func (Messages) AboutApp

func (msgs Messages) AboutApp(app string) string

AboutApp is the package's AboutApp in the language of msgs.

func (Messages) AuthSessionDone added in v0.2.0

func (msgs Messages) AuthSessionDone() string

AuthSessionDone is the package's AuthSessionDone in the language of msgs.

func (Messages) BringAllToFront added in v0.2.0

func (msgs Messages) BringAllToFront() string

BringAllToFront is the package's BringAllToFront in the language of msgs.

func (Messages) Cancel

func (msgs Messages) Cancel() string

Cancel is the package's Cancel in the language of msgs.

func (Messages) CheckForUpdates

func (msgs Messages) CheckForUpdates() string

CheckForUpdates is the package's CheckForUpdates in the language of msgs.

func (Messages) Close

func (msgs Messages) Close() string

Close is the package's Close in the language of msgs.

func (Messages) Copy

func (msgs Messages) Copy() string

Copy is the package's Copy in the language of msgs.

func (Messages) Cut

func (msgs Messages) Cut() string

Cut is the package's Cut in the language of msgs.

func (Messages) Delete

func (msgs Messages) Delete() string

Delete is the package's Delete in the language of msgs.

func (Messages) Edit

func (msgs Messages) Edit() string

Edit is the package's Edit in the language of msgs.

func (Messages) EnterFullScreen

func (msgs Messages) EnterFullScreen() string

EnterFullScreen is the package's EnterFullScreen in the language of msgs.

func (Messages) ExitFullScreen

func (msgs Messages) ExitFullScreen() string

ExitFullScreen is the package's ExitFullScreen in the language of msgs.

func (Messages) GuideDrag

func (msgs Messages) GuideDrag(app string, permission string) string

GuideDrag is the package's GuideDrag in the language of msgs.

func (Messages) GuideDragHint

func (msgs Messages) GuideDragHint() string

GuideDragHint is the package's GuideDragHint in the language of msgs.

func (Messages) Help added in v0.2.0

func (msgs Messages) Help() string

Help is the package's Help in the language of msgs.

func (Messages) Hide

func (msgs Messages) Hide() string

Hide is the package's Hide in the language of msgs.

func (Messages) HideApp

func (msgs Messages) HideApp(app string) string

HideApp is the package's HideApp in the language of msgs.

func (Messages) HideOthers

func (msgs Messages) HideOthers() string

HideOthers is the package's HideOthers in the language of msgs.

func (Messages) Minimize

func (msgs Messages) Minimize() string

Minimize is the package's Minimize in the language of msgs.

func (Messages) Paste

func (msgs Messages) Paste() string

Paste is the package's Paste in the language of msgs.

func (Messages) PasteAndMatchStyle added in v0.2.0

func (msgs Messages) PasteAndMatchStyle() string

PasteAndMatchStyle is the package's PasteAndMatchStyle in the language of msgs.

func (Messages) PermissionAccessibility

func (msgs Messages) PermissionAccessibility() string

PermissionAccessibility is the package's PermissionAccessibility in the language of msgs.

func (Messages) PermissionAppManagement

func (msgs Messages) PermissionAppManagement() string

PermissionAppManagement is the package's PermissionAppManagement in the language of msgs.

func (Messages) PermissionBluetooth

func (msgs Messages) PermissionBluetooth() string

PermissionBluetooth is the package's PermissionBluetooth in the language of msgs.

func (Messages) PermissionDeveloperTools

func (msgs Messages) PermissionDeveloperTools() string

PermissionDeveloperTools is the package's PermissionDeveloperTools in the language of msgs.

func (Messages) PermissionDeviceControl

func (msgs Messages) PermissionDeviceControl() string

PermissionDeviceControl is the package's PermissionDeviceControl in the language of msgs.

func (Messages) PermissionFullDiskAccess

func (msgs Messages) PermissionFullDiskAccess() string

PermissionFullDiskAccess is the package's PermissionFullDiskAccess in the language of msgs.

func (Messages) PermissionInputMonitoring

func (msgs Messages) PermissionInputMonitoring() string

PermissionInputMonitoring is the package's PermissionInputMonitoring in the language of msgs.

func (Messages) PermissionMediaLibrary

func (msgs Messages) PermissionMediaLibrary() string

PermissionMediaLibrary is the package's PermissionMediaLibrary in the language of msgs.

func (Messages) PermissionScreenAudioRecording

func (msgs Messages) PermissionScreenAudioRecording() string

PermissionScreenAudioRecording is the package's PermissionScreenAudioRecording in the language of msgs.

func (Messages) PermissionScreenRecording

func (msgs Messages) PermissionScreenRecording() string

PermissionScreenRecording is the package's PermissionScreenRecording in the language of msgs.

func (Messages) Quit

func (msgs Messages) Quit() string

Quit is the package's Quit in the language of msgs.

func (Messages) QuitApp

func (msgs Messages) QuitApp(app string) string

QuitApp is the package's QuitApp in the language of msgs.

func (Messages) Redo

func (msgs Messages) Redo() string

Redo is the package's Redo in the language of msgs.

func (Messages) RoleAlert added in v0.2.0

func (msgs Messages) RoleAlert() string

RoleAlert is the package's RoleAlert in the language of msgs.

func (Messages) RoleCell added in v0.2.0

func (msgs Messages) RoleCell() string

RoleCell is the package's RoleCell in the language of msgs.

func (Messages) RoleColumnHeader added in v0.2.0

func (msgs Messages) RoleColumnHeader() string

RoleColumnHeader is the package's RoleColumnHeader in the language of msgs.

func (Messages) RoleComboBox

func (msgs Messages) RoleComboBox() string

RoleComboBox is the package's RoleComboBox in the language of msgs.

func (Messages) RoleDialog added in v0.2.0

func (msgs Messages) RoleDialog() string

RoleDialog is the package's RoleDialog in the language of msgs.

func (Messages) RoleGrid added in v0.2.0

func (msgs Messages) RoleGrid() string

RoleGrid is the package's RoleGrid in the language of msgs.

func (Messages) RoleGroup

func (msgs Messages) RoleGroup() string

RoleGroup is the package's RoleGroup in the language of msgs.

func (Messages) RoleHeadingLevel

func (msgs Messages) RoleHeadingLevel(level string) string

RoleHeadingLevel is the package's RoleHeadingLevel in the language of msgs.

func (msgs Messages) RoleLink() string

RoleLink is the package's RoleLink in the language of msgs.

func (Messages) RoleListBox

func (msgs Messages) RoleListBox() string

RoleListBox is the package's RoleListBox in the language of msgs.

func (Messages) RoleMenu added in v0.2.0

func (msgs Messages) RoleMenu() string

RoleMenu is the package's RoleMenu in the language of msgs.

func (Messages) RoleMenuItem added in v0.2.0

func (msgs Messages) RoleMenuItem() string

RoleMenuItem is the package's RoleMenuItem in the language of msgs.

func (Messages) RoleNavigation

func (msgs Messages) RoleNavigation() string

RoleNavigation is the package's RoleNavigation in the language of msgs.

func (Messages) RoleOption

func (msgs Messages) RoleOption() string

RoleOption is the package's RoleOption in the language of msgs.

func (Messages) RoleRegion

func (msgs Messages) RoleRegion() string

RoleRegion is the package's RoleRegion in the language of msgs.

func (Messages) RoleRow added in v0.2.0

func (msgs Messages) RoleRow() string

RoleRow is the package's RoleRow in the language of msgs.

func (Messages) RoleSearchBox added in v0.2.0

func (msgs Messages) RoleSearchBox() string

RoleSearchBox is the package's RoleSearchBox in the language of msgs.

func (Messages) RoleSpinButton

func (msgs Messages) RoleSpinButton() string

RoleSpinButton is the package's RoleSpinButton in the language of msgs.

func (Messages) RoleStatus added in v0.2.0

func (msgs Messages) RoleStatus() string

RoleStatus is the package's RoleStatus in the language of msgs.

func (Messages) RoleTab added in v0.2.0

func (msgs Messages) RoleTab() string

RoleTab is the package's RoleTab in the language of msgs.

func (Messages) RoleTable added in v0.2.0

func (msgs Messages) RoleTable() string

RoleTable is the package's RoleTable in the language of msgs.

func (Messages) RoleToolbar

func (msgs Messages) RoleToolbar() string

RoleToolbar is the package's RoleToolbar in the language of msgs.

func (Messages) RoleTree

func (msgs Messages) RoleTree() string

RoleTree is the package's RoleTree in the language of msgs.

func (Messages) RoleTreeItem

func (msgs Messages) RoleTreeItem() string

RoleTreeItem is the package's RoleTreeItem in the language of msgs.

func (Messages) ScanCode

func (msgs Messages) ScanCode() string

ScanCode is the package's ScanCode in the language of msgs.

func (Messages) SelectAll

func (msgs Messages) SelectAll() string

SelectAll is the package's SelectAll in the language of msgs.

func (Messages) Services added in v0.2.0

func (msgs Messages) Services() string

Services is the package's Services in the language of msgs.

func (Messages) ShowAll

func (msgs Messages) ShowAll() string

ShowAll is the package's ShowAll in the language of msgs.

func (Messages) SpokenSeparator added in v0.2.0

func (msgs Messages) SpokenSeparator() string

SpokenSeparator is the package's SpokenSeparator in the language of msgs.

func (Messages) StartSpeaking added in v0.2.0

func (msgs Messages) StartSpeaking() string

StartSpeaking is the package's StartSpeaking in the language of msgs.

func (Messages) StateBusy

func (msgs Messages) StateBusy() string

StateBusy is the package's StateBusy in the language of msgs.

func (Messages) StateCollapsed added in v0.2.0

func (msgs Messages) StateCollapsed() string

StateCollapsed is the package's StateCollapsed in the language of msgs.

func (Messages) StateExpanded added in v0.2.0

func (msgs Messages) StateExpanded() string

StateExpanded is the package's StateExpanded in the language of msgs.

func (Messages) StateLevel

func (msgs Messages) StateLevel(level string) string

StateLevel is the package's StateLevel in the language of msgs.

func (Messages) StatePartiallyChecked added in v0.2.0

func (msgs Messages) StatePartiallyChecked() string

StatePartiallyChecked is the package's StatePartiallyChecked in the language of msgs.

func (Messages) StatePressed

func (msgs Messages) StatePressed() string

StatePressed is the package's StatePressed in the language of msgs.

func (Messages) StopSpeaking added in v0.2.0

func (msgs Messages) StopSpeaking() string

StopSpeaking is the package's StopSpeaking in the language of msgs.

func (Messages) TakePhoto

func (msgs Messages) TakePhoto() string

TakePhoto is the package's TakePhoto in the language of msgs.

func (Messages) ToggleFullScreen

func (msgs Messages) ToggleFullScreen() string

ToggleFullScreen is the package's ToggleFullScreen in the language of msgs.

func (Messages) Undo

func (msgs Messages) Undo() string

Undo is the package's Undo in the language of msgs.

func (Messages) Window

func (msgs Messages) Window() string

Window is the package's Window in the language of msgs.

func (Messages) Zoom

func (msgs Messages) Zoom() string

Zoom is the package's Zoom in the language of msgs.

type Translation

type Translation struct {
	Texts            map[string]string
	AboutApp         func(app string) string
	HideApp          func(app string) string
	QuitApp          func(app string) string
	GuideDrag        func(app string, permission string) string
	RoleHeadingLevel func(level string) string
	StateLevel       func(level string) string
}

Translation is a language's messages another package supplies: those without arguments in Texts, by key, and a function for each of the others; a key or a field left out leaves the message to the catalog.

Jump to

Keyboard shortcuts

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