Add i18n message descriptions

This commit is contained in:
hensm
2019-05-16 04:32:32 +01:00
parent 09d317c0a9
commit a97e14cb31
3 changed files with 115 additions and 15 deletions

View File

@@ -1,229 +1,332 @@
{ {
"extensionName": { "extensionName": {
"message": "EXTENSION_NAME" "message": "EXTENSION_NAME"
, "description": "Name of the extension and the native receiver selector window title."
} }
, "extensionDescription": { , "extensionDescription": {
"message": "" "message": ""
, "description": "Description of the extension shown in the add-ons manager."
} }
, "popupMediaTypeApp": { , "popupMediaTypeApp": {
"message": "this site's app" "message": "this site's app"
, "description": "Receiver selector media type <option> text for current site's sender application."
} }
, "popupMediaTypeTab": { , "popupMediaTypeTab": {
"message": "Tab" "message": "Tab"
, "description": "Receiver selector media type <option> text for current tab."
} }
, "popupMediaTypeScreen": { , "popupMediaTypeScreen": {
"message": "Screen" "message": "Screen"
, "description": "Receiver selector media type <option> text for screen."
} }
, "popupMediaSelectCastLabel": { , "popupMediaSelectCastLabel": {
"message": "Cast" "message": "Cast"
, "description": "(Cast) <select> to:"
} }
, "popupMediaSelectToLabel": { , "popupMediaSelectToLabel": {
"message": "to:" "message": "to:"
, "description": "Cast <select> (to:)"
} }
, "popupCastButtonTitle": { , "popupCastButtonTitle": {
"message": "Cast" "message": "Cast"
, "description": "Button text for each receiver entry in the receiver selector."
} }
, "popupCastingButtonTitle": { , "popupCastingButtonTitle": {
"message": "Casting" "message": "Casting$ellipsis$"
, "description": "Button text while establishing a session in the receiver selector. Ellipsis cycles (. → .. → ...) as loading indicator."
, "placeholders": {
"ellipsis": {
"content": "$1"
, "example": "..."
}
}
} }
, "contextCast": { , "contextCast": {
"message": "Cast..." "message": "Cast..."
, "description": "Main context menu item title. Ellipsis indicates additional information required as it triggers opening of receiver selector."
} }
, "contextAddToWhitelist": { , "contextAddToWhitelist": {
"message": "Add to Whitelist" "message": "Add to Whitelist"
, "description": "Top-level whitelist context menu item title."
} }
, "contextAddToWhitelistRecommended": { , "contextAddToWhitelistRecommended": {
"message": "Add $1 (Recommended)" "message": "Add $matchPattern$ (Recommended)"
, "description": "Context menu item title for recomended match pattern."
, "placeholders": {
"matchPattern": {
"content": "$1"
, "example": "https://example.com/*"
}
}
} }
, "contextAddToWhitelistAdvancedAdd": { , "contextAddToWhitelistAdvancedAdd": {
"message": "Add $1" "message": "Add $matchPattern$"
, "description": "Context menu item title for all other match patterns."
, "placeholders": {
"matchPattern": {
"content": "$1"
, "example": "*://*.example.com/*"
}
}
} }
, "optionsBridgeLoading": { , "optionsBridgeLoading": {
"message": "Loading bridge info..." "message": "Loading bridge info..."
, "description": "Loading placeholder text for bridge section on options page."
} }
, "optionsBridgeFoundStatusTitle": { , "optionsBridgeFoundStatusTitle": {
"message": "Bridge found" "message": "Bridge found"
, "description": "Bridge OK status title text."
} }
, "optionsBridgeIssueStatusTitle": { , "optionsBridgeIssueStatusTitle": {
"message": "Bridge issue" "message": "Bridge issue"
, "description": "Bridge error status title text."
} }
, "optionsBridgeNotFoundStatusTitle": { , "optionsBridgeNotFoundStatusTitle": {
"message": "Bridge not found" "message": "Bridge not found"
, "description": "Bridge missing status title text."
} }
, "optionsBridgeNotFoundStatusText": { , "optionsBridgeNotFoundStatusText": {
"message": "Try downloading and installing the latest version." "message": "Try downloading and installing the latest version."
, "description": "Bridge not found additional description text"
} }
, "optionsBridgeInfo": {
"message": "Bridge info:"
}
, "optionsBridgeStatsName": { , "optionsBridgeStatsName": {
"message": "Name:" "message": "Name:"
, "description": "Bridge stats name row title."
} }
, "optionsBridgeStatsVersion": { , "optionsBridgeStatsVersion": {
"message": "Version:" "message": "Version:"
, "description": "Bridge stats version row title."
} }
, "optionsBridgeStatsExpectedVersion": { , "optionsBridgeStatsExpectedVersion": {
"message": "Expected version:" "message": "Expected version:"
, "description": "Bridge stats expected version row title."
} }
, "optionsBridgeStatsCompatibility": { , "optionsBridgeStatsCompatibility": {
"message": "Compatibility:" "message": "Compatibility:"
, "description": "Bridge stats compatibility row title."
} }
, "optionsBridgeStatsRecommendedAction": { , "optionsBridgeStatsRecommendedAction": {
"message": "Recommended action:" "message": "Recommended action:"
, "description": "Bridge stats recommended action row title."
} }
, "optionsBridgeCompatible": { , "optionsBridgeCompatible": {
"message": "COMPATIBLE" "message": "COMPATIBLE"
, "description": "Compatibility status is definitely compatible."
} }
, "optionsBridgeLikelyCompatible": { , "optionsBridgeLikelyCompatible": {
"message": "LIKELY COMPATIBLE" "message": "LIKELY COMPATIBLE"
, "description": "Compatibility status is probably compatible."
} }
, "optionsBridgeIncompatible": { , "optionsBridgeIncompatible": {
"message": "INCOMPATIBLE" "message": "INCOMPATIBLE"
, "description": "Compatibility status is definitely incompatible."
} }
, "optionsBridgeOlderAction": { , "optionsBridgeOlderAction": {
"message": "Bridge version older than expected, try updating bridge to the latest version." "message": "Bridge version older than expected, try updating bridge to the latest version."
, "description": "Recommended action for when the installed bridge version is older than the installed extension version."
} }
, "optionsBridgeNewerAction": { , "optionsBridgeNewerAction": {
"message": "Bridge version newer than expected, try updating extension to the latest version." "message": "Bridge version newer than expected, try updating extension to the latest version."
, "description": "Recommended action for when the installed bridge version is newer than the installed extension version."
} }
, "optionsBridgeNoAction": { , "optionsBridgeNoAction": {
"message": "No action needed." "message": "No action needed."
, "description": "Recommended action for when both bridge and extension versions are compatible or likely compatible."
} }
, "optionsBridgeUpdateCheck": { , "optionsBridgeUpdateCheck": {
"message": "Check for Updates" "message": "Check for Updates"
, "description": "Update check button title."
} }
, "optionsBridgeUpdateChecking": { , "optionsBridgeUpdateChecking": {
"message": "Checking for Updates$1" "message": "Checking for Updates$ellipsis$"
, "description": "Update check button title while in progress. Ellipsis cycles (. → .. → ...) as loading indicator."
, "placeholders": {
"ellipsis": {
"content": "$1"
, "example": ".."
}
}
} }
, "optionsBridgeUpdateStatusNoUpdates": { , "optionsBridgeUpdateStatusNoUpdates": {
"message": "No updates available" "message": "No updates available"
, "description": "Update status if no updates are found."
} }
, "optionsBridgeUpdateStatusError": { , "optionsBridgeUpdateStatusError": {
"message": "Error checking for updates" "message": "Error checking for updates"
, "description": "Update status if an error was encountered checking for updates."
} }
, "optionsBridgeUpdateAvailable": { , "optionsBridgeUpdateAvailable": {
"message": "An update is available:" "message": "An update is available:"
, "description": "Update status an update was found."
} }
, "optionsBridgeUpdatePackageTypeSelect": { , "optionsBridgeUpdatePackageTypeSelect": {
"message": "Select package type" "message": "Select package type"
, "description": "Placeholder <select> value for Linux package type selection."
} }
, "optionsBridgeUpdatePackageTypeDeb": { , "optionsBridgeUpdatePackageTypeDeb": {
"message": ".deb (Debian/Ubuntu)" "message": ".deb (Debian/Ubuntu)"
, "description": "Linux .deb package type <option> text"
} }
, "optionsBridgeUpdatePackageTypeRpm": { , "optionsBridgeUpdatePackageTypeRpm": {
"message": ".rpm (Fedora)" "message": ".rpm (Fedora)"
, "description": "Linux .rpm package type <option> text"
} }
, "optionsBridgeUpdate": { , "optionsBridgeUpdate": {
"message": "Update Now..." "message": "Update Now..."
, "description": "Update now button title. Ellipsis indicates additional information as it triggers an update window popup."
} }
, "optionsMediaCategoryName": { , "optionsMediaCategoryName": {
"message": "Media casting" "message": "Media casting"
, "description": "Options page media casting category title."
} }
, "optionsMediaCategoryDescription": { , "optionsMediaCategoryDescription": {
"message": "HTML5 video/audio media casting." "message": "HTML5 video/audio media casting."
, "description": "Options page media casting category description."
} }
, "optionsMediaEnabled": { , "optionsMediaEnabled": {
"message": "Enable media casting" "message": "Enable media casting"
, "description": "Media casting enabled checkbox label."
} }
, "optionsMediaSyncElement": { , "optionsMediaSyncElement": {
"message": "Sync receiver state with media element" "message": "Sync receiver state with media element"
, "description": "Media casting sync checkbox label."
} }
, "optionsMediaStopOnUnload": { , "optionsMediaStopOnUnload": {
"message": "Stop receiver playback on page unload" "message": "Stop receiver playback on page unload"
, "description": "Media stop on unload checkbox label."
} }
, "optionsLocalMediaCategoryName": { , "optionsLocalMediaCategoryName": {
"message": "Local media casting" "message": "Local media casting"
, "description": "Options page local media category title."
} }
, "optionsLocalMediaCategoryDescription": { , "optionsLocalMediaCategoryDescription": {
"message": "HTTP server started by the bridge app to stream local media files to the cast receiver." "message": "HTTP server started by the bridge app to stream local media files to the cast receiver."
, "description": "Options page local media category description."
} }
, "optionsLocalMediaEnabled": { , "optionsLocalMediaEnabled": {
"message": "Enable local media casting" "message": "Enable local media casting"
, "description": "Local media enabled checkbox label."
} }
, "optionsLocalMediaServerPort": { , "optionsLocalMediaServerPort": {
"message": "HTTP server port:" "message": "HTTP server port:"
, "description": "HTTP server port input label."
} }
, "optionsUserAgentWhitelistCategoryName": { , "optionsUserAgentWhitelistCategoryName": {
"message": "User agent whitelist" "message": "User agent whitelist"
, "description": "Options page whitelist category title."
} }
, "optionsUserAgentWhitelistCategoryDescription": { , "optionsUserAgentWhitelistCategoryDescription": {
"message": "Sites for which to replace the user agent with a Chrome version for compatibility. Must be valid match patterns." "message": "Sites for which to replace the user agent with a Chrome version for compatibility. Must be valid match patterns."
, "description": "Options page whitelist category description."
} }
, "optionsUserAgentWhitelistEnabled": { , "optionsUserAgentWhitelistEnabled": {
"message": "Enable site whitelist" "message": "Enable site whitelist"
, "description": "Whitelist enabled checkbox label."
} }
, "optionsUserAgentWhitelistContent": { , "optionsUserAgentWhitelistContent": {
"message": "Match patterns (newline-separated):" "message": "Match patterns (newline-separated):"
, "description": "Match patterns editor widget label."
} }
, "optionsUserAgentWhitelistBasicView": { , "optionsUserAgentWhitelistBasicView": {
"message": "Basic View" "message": "Basic View"
, "description": "Switch to basic view button title."
} }
, "optionsUserAgentWhitelistRawView": { , "optionsUserAgentWhitelistRawView": {
"message": "Raw View" "message": "Raw View"
, "description": "Switch to raw view button title."
} }
, "optionsUserAgentWhitelistSaveRaw": { , "optionsUserAgentWhitelistSaveRaw": {
"message": "Save Raw" "message": "Save Raw"
, "description": "Save raw view edits button title."
} }
, "optionsUserAgentWhitelistAddItem": { , "optionsUserAgentWhitelistAddItem": {
"message": "Add Item" "message": "Add Item"
, "description": "Add new whitelist item button title."
} }
, "optionsUserAgentWhitelistEditItem": { , "optionsUserAgentWhitelistEditItem": {
"message": "Edit" "message": "Edit"
, "description": "Edit whitelist item button title. Displayed on each item."
} }
, "optionsUserAgentWhitelistRemoveItem": { , "optionsUserAgentWhitelistRemoveItem": {
"message": "Remove" "message": "Remove"
, "description": "Remove whitelist item button title. Displayed on each item."
} }
, "optionsUserAgentWhitelistInvalidMatchPattern": { , "optionsUserAgentWhitelistInvalidMatchPattern": {
"message": "Invalid match pattern $1" "message": "Invalid match pattern $matchPattern$"
, "description": "Error displayed by input indicating an invalid match pattern."
, "placeholders": {
"matchPattern": {
"content": "$1"
, "example": "http://example"
}
}
} }
, "optionsMirroringCategoryName": { , "optionsMirroringCategoryName": {
"message": "Screen mirroring" "message": "Screen mirroring"
, "description": "Options page mirroring category name."
} }
, "optionsMirroringCategoryDescription": { , "optionsMirroringCategoryDescription": {
"message": "Screen/Tab mirroring to a Chromecast receiver app." "message": "Screen/Tab mirroring to a Chromecast receiver app."
, "description": "Options page mirroring category description."
} }
, "optionsMirroringEnabled": { , "optionsMirroringEnabled": {
"message": "Enable screen mirroring" "message": "Enable screen mirroring"
, "description": "Mirroring enabled checkbox label."
} }
, "optionsMirroringAppId": { , "optionsMirroringAppId": {
"message": "Receiver app ID:" "message": "Receiver app ID:"
, "description": "Mirroring app ID input label."
} }
, "optionsReset": { , "optionsReset": {
"message": "Restore Defaults" "message": "Restore Defaults"
, "description": "Restore default options button label."
} }
, "optionsSave": { , "optionsSave": {
"message": "Save" "message": "Save"
, "description": "Save options button label."
} }
, "optionsSaved": { , "optionsSaved": {
"message": "Saved!" "message": "Saved!"
, "description": "Status text displayed by save button once options have been successfully saved."
} }
, "updaterCancel": { , "updaterCancel": {
"message": "Cancel" "message": "Cancel"
, "description": "Updater cancel update download button title."
} }
, "updaterDescriptionDownloading": { , "updaterDescriptionDownloading": {
"message": "Downloading..." "message": "Downloading..."
, "description": "Updater status downloading title text."
} }
, "updaterAdditionalDescriptionDownloading": { , "updaterAdditionalDescriptionDownloading": {
"message": "Fetching update package" "message": "Fetching update package"
, "description": "Updater status downloading description text."
} }
, "updaterDescriptionInstallReady": { , "updaterDescriptionInstallReady": {
"message": "Ready to install" "message": "Ready to install"
, "description": "Updater status ready to install title text."
} }
, "updaterAdditionalDescriptionInstallReady": { , "updaterAdditionalDescriptionInstallReady": {
"message": "The install package has been downloaded to your default downloads location." "message": "The install package has been downloaded to your default downloads location."
, "description": "Updater status ready to install description text."
} }
, "updaterInstall": { , "updaterInstall": {
"message": "Install..." "message": "Install..."
, "description": "Updater install button title. Ellipsis indicates additional information as it triggers the some native UI for installing the package."
} }
} }

View File

@@ -33,9 +33,6 @@
, "optionsBridgeNotFoundStatusText": { , "optionsBridgeNotFoundStatusText": {
"message": "Probeer de nieuwste versie te installeren." "message": "Probeer de nieuwste versie te installeren."
} }
, "optionsBridgeInfo": {
"message": "Bridge-informatie:"
}
, "optionsBridgeStatsName": { , "optionsBridgeStatsName": {
"message": "Naam:" "message": "Naam:"
} }

View File

@@ -187,10 +187,10 @@ class ReceiverEntry extends Component<ReceiverEntryProps, ReceiverEntryState> {
onClick={ this.handleCast } onClick={ this.handleCast }
disabled={this.props.isLoading}> disabled={this.props.isLoading}>
{ this.state.isLoading { this.state.isLoading
? _("popupCastingButtonTitle") + ? _("popupCastingButtonTitle"
(this.state.isLoading , (this.state.isLoading
? this.state.ellipsis ? this.state.ellipsis
: "") : ""))
: _("popupCastButtonTitle") } : _("popupCastButtonTitle") }
</button> </button>
</li> </li>