#cp.apple.finalcutpro.strings

The cp.strings for I18N lookups related to Final Cut Pro. This has been populated with common lookups for user interface values that appear in Final Cut Pro.


#API Overview

Constants - Useful values which cannot be changed

Methods - API calls which can only be made on an object returned by a constructor


#API Documentation

#Constants

Signaturecp.apple.finalcutpro.strings <cp.strings>
TypeConstant
DescriptionThe cp.strings providing access to common FCPX text values.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 166

#Methods

Signaturecp.apple.finalcutpro.strings:find(key[, locale][, quiet]]) -> string
TypeMethod
DescriptionLooks up an application string with the specified key. If no context value is provided, the current context is used.
Parameters
  • key - The key to look up.
  • locale - Optional locale to retrieve the key for, if available. May be a string or cp.i18n.localeID.
  • quiet - Optional boolean, defaults to false. If true, no warnings are logged for missing keys.
Returns
  • The requested string or nil if the application is not running.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/strings.lua line 144

Signaturecp.apple.finalcutpro.strings:findKeys(string[, lang]) -> {string}
TypeMethod
DescriptionLooks up an application string and returns an array of keys that match. It will take into account current language the app is running in, or use lang if provided.
Parameters
  • string - The string to look up.
  • lang - The language (defaults to current FCPX language).
Returns
  • The array of keys with a matching string.
Notes
  • This method may be very inefficient, since it has to search through every possible key/value pair to find matches. It is not recommended that this is used in production.
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/strings.lua line 171