Skip to content

Some English strings are inaccurate or outdated #16166

Backlog

Description

@helloDanuk

Bug description

While translating the Control Panel into German #16029, I compared the English strings with what the UI and the code actually do. Some of them no longer match, often because existing strings were reused when new features were added. Text-only changes; suggestions below. This may fit better as an idea; feel free to move it to Ideas.

English isn't my first language, so please improve the suggested wording where needed. The suggestions are mainly meant to show what no longer matches.

Some keys (form-fieldtypes.*, messages.form_builder_*, messages.form_logic_*) are named as in #16004, which moves these strings from hardcoded text and JSON keys into the language files.

Fieldsets are "linked", but some strings still say "imported"

The UI calls it "Link Existing", "Link Fieldset" and "Link Field", and a linked fieldset stays in sync. Several strings still talk about importing, which suggests a one-time copy. (The import key in blueprint YAML can stay as it is; this is only about UI text.)

Key Current Suggestion
messages.fieldset_import_fieldset_instructions The fieldset to be imported. The fieldset to link.
messages.fieldset_link_fields_prefix_instructions … Useful for importing the same fields multiple times. … Useful for linking the same fields multiple times.
messages.fieldset_import_prefix_instructions Apply a prefix to each field when they are imported. e.g. hero_ Apply a prefix to each field of the linked fieldset, e.g. hero_.
messages.form_builder_select_field_to_import Select a field or fieldset to import Select a field or fieldset to link
messages.fieldset_import_section_behavior_instructions Choose whether imported fieldset sections should be preserved or flattened into this section. Choose whether the linked fieldset's sections should be preserved or flattened into this section.
Keep imported sections as-is. Keep imported sections as-is. Keep the fieldset's sections as-is.
messages.form_logic_imported_field_unsupported Logic can't be added to imported fields. … Logic can't be added to linked fields. …
Imported from: :reference Imported from: :reference Linked to: :reference
Configure import Configure import Configure linked fieldset
validation.fieldset_imported_recursively Fieldset :handle is being imported recursively. Fieldset :handle links to itself, directly or through another fieldset.

"Publish forms" since Forms 2

Key Current Suggestion
messages.fields_visibility_instructions Control field visibility on publish forms. Control field visibility when editing content.

Since Forms 2, "forms" reads like the visitor-facing forms.

Inaccurate descriptions

Key Current Issue Suggestion
fieldtypes.array.config.expand … Use this if you intend to have numeric values. The expanded format is for numeric keys (see the tests in #10467). … Use this if you intend to have numeric keys.
messages.form_configure_submission_limit_period_instructions How often the submission limit resets. Doesn't fit the option "Total", which never resets. Whether the limit applies in total or per day, week or month.
fieldtypes.grid.config.min_rows Set a minimum number of creatable rows. Sounds like a limit on how many rows can be created. Actually, this many rows are added up front (Grid::preProcess() pads the data) and can't be deleted below that number. This many rows are created up front. There can't be fewer.
messages.activate_account_notification_body You are receiving this email because we received a password reset request for your account. Same text as reset_password_notification_body, but used in the activation email (subject "Activate your account", button "Activate Account"). It's sent by the "Send Password Reset" action to users without a password (SendPasswordReset::run()); the user wizard replaces it with its own message. You are receiving this email so you can activate your account and set a password.
validation.required_with_all This field is required when :values is present. Same text as required_with, but the rule requires all of the fields. Laravel says "… when :values are present." This field is required when :values are present.
messages.fields_default_instructions Value to be stored if this field is left empty. Sounds like the default is saved when the field is empty. Actually, it prefills the field when editing (Field::preProcess()), and while the field has no value, it's used for output (Value) instead. Nothing is stored for an empty field. Prefilled when editing, and used while the field is empty.
messages.elevated_session_required A password confirmation is required to continue. Users without a password confirm with a verification code sent by email (elevated_session_enter_verification_code), so "password" doesn't always fit. Shown as a toast when the confirmation is cancelled. Please confirm your identity to continue.
fieldtypes.assets.config.dynamic Assets will be placed in a subfolder based on the value of this field. "This field" reads like the assets field itself. The option is a select (ID, slug, author), and the folder is named after that value of the entry (Assets::dynamicFolder()). Assets will be placed in a subfolder named after the entry's ID, slug or author.
fieldtypes.date.config.mode Choose between single or range mode (range disables time picker). Range mode supports time now: the "Time Enabled" toggle isn't hidden for ranges, the range picker gets the same granularity as the single picker (DateFieldtype.vue), and Date::processRange() saves start and end with their time. So the note in brackets is outdated. Choose between a single date or a date range.
fieldtypes.assets.config.max_files Set a maximum number of selectable assets. Also used by the Files fieldtype (Files.php), where files are uploaded, not selected. A separate key for Files: Set a maximum number of files.
messages.navigation_configure_blueprint_instructions Choose from existing blueprints or create a new one. A navigation has exactly one blueprint. The field only shows an "Edit Blueprint" button (NavigationController.php, BlueprintsFieldtype.vue); there is nothing to choose or create. Controls the fields of the nav items.
validation.handle Must contain only lowercase letters and numbers with underscores as separators. The rule also accepts uppercase letters: Statamic\Rules\Handle checks /^[a-zA-Z][a-zA-Z0-9]*(?:_{0,1}[a-zA-Z0-9])*$/. Either the message or the regex is off. Must contain only letters and numbers, separated by single underscores. (or make the regex lowercase-only)
Create Item, Link Item (RelationshipInput.vue, createLabel() / linkLabel()) Shown on every Terms field. The labels check config.type === 'taxonomies', but the Terms fieldtype has the type terms, so it falls back to the generic "Create Item" and "Link Item". "Create Taxonomy" is never shown, since the Taxonomies fieldtype can't create. Check for terms and use "Create Term" / "Link Term".
messages.user_wizard_invitation_body … After that, please contact the site administrator for a new password. The new user has no password yet, and an administrator can't hand one out. When the link has expired, they need a new activation link ("Send Password Reset" action, which sends the activation email to users without a password). … After that, please contact the site administrator for a new link.

Unclear descriptions

Not wrong, but they don't say what the setting does:

Key Current Issue Suggestion
messages.fields_replicator_preview_instructions Control preview visibility in Replicator/Bard sets. Doesn't say what is shown. Show this field's value in the preview of collapsed Replicator/Bard sets.
messages.collection_revisions_instructions Enable revisions for this collection. Only repeats the label "Enable Revisions". Doesn't say what changes: saving a published entry creates a working copy, changes go live when published, and earlier versions can be restored (EntriesController::update()). Save changes to published entries as a working copy first, and keep earlier versions.
messages.site_configure_lang_instructions Learn about Languages. Only a link; doesn't say what the field does, and it sits next to "Locale", which sounds similar. It sets the app locale on the front-end (Localize middleware), e.g. for form validation messages and form emails. If empty, the language of the locale is used (Site::lang()). Language for front-end translations, e.g. form validation messages. Defaults to the locale's language. Learn more

"Users", "respondents" and "visitors" in forms

The form strings call the people filling in a form "respondents" (fieldtype descriptions), "visitors" (Paragraph, Require Login) or "users". In Statamic, "users" usually means Control Panel users, so these are confusing (the toggle insight is already changed to "respondents" in #16143):

Key Current Suggestion
messages.email_connection_instructions … Use them to notify users or team members. … Use them to notify respondents or team members.
messages.form_logic_page_empty_description Send users to different pages based on their answers. Send respondents to different pages based on their answers.

Inconsistent wording

Key Current Suggestion
permissions.view_graphql_desc Grants ability to access the GraphQL viewer Grants access to the GraphQL viewer

The other access descriptions say "Grants access to …" (access_utility_desc, edit_forms_desc, view_form_submissions_desc).

Key Current Suggestion
fieldtypes.any.config.mode, relationship.config.mode, revealer.config.mode Choose your preferred UI style. Choose your preferred layout.
fieldtypes.assets.config.mode Choose your preferred UI layout. Choose your preferred layout.
fieldtypes.grid.config.mode Choose your preferred layout style. Choose your preferred layout.
fieldtypes.terms.config.query_scopes Query scopes can be applied to the selectable term results. Learn more in the docs. Choose which query scopes should be applied when retrieving selectable terms. Learn more in the docs.
fieldtypes.bard.config.previews Shown when sets are collapsed. Show a preview of the content inside a set while collapsed.
fieldtypes.terms.config.query_scopes (used twice in Terms.php) The same instructions appear under the revealer "Query Scopes" and again under the revealed field "Query Scopes" right below it. The other fieldtypes have no revealer here. Either drop the revealer, or give it its own instructions (e.g. "Show the query scope settings.")
messages.user_wizard_intro (step "Create User") and messages.user_wizard_roles_groups_intro (step "Roles & Groups") Both say "Users can be assigned to roles that customize their permissions …" The first step is about name and email, not roles. Give it its own intro, e.g. "Enter the new user's name and email address.", and keep the roles text for the second step.
Remove Item, Are you sure you want to remove this item?, Remove child item|Remove :count child items (navigation tree, RemovePageConfirmation.vue) The same tree says "Add Nav Item", "Edit Nav Item" and "Add child nav item". "Remove Nav Item", "Are you sure you want to remove this nav item?", "Remove child nav item|Remove :count child nav items". Separate keys would also let other languages use their word for a nav item instead of a generic "item".
Add Item (row dropdown in preferences/nav/Edit.vue) and the tooltips Pinned Item, Aliased Item, Moved Item, Modified Item, Custom Item, Hidden Item (nav/Branch.vue), all in the CP nav preferences The same editor says "Add Nav Item" (top level) and "Edit Nav Item". Add Item is shared with the List fieldtype, so translations can only use a generic word there. The tooltips are only used here today, but any later "Pinned Item" elsewhere would get the nav wording too. "Add Nav Item" (or "Add child nav item", like the navigation tree), "Pinned Nav Item", "Aliased Nav Item", "Moved Nav Item", "Modified Nav Item", "Custom Nav Item", "Hidden Nav Item".
messages.asset_container_blueprint_instructions, messages.globals_blueprint_instructions (and navigation_configure_blueprint_instructions above) "Blueprints define custom fields available when editing assets." / "Controls the fields to be displayed when editing the variables." Asset containers, global sets and navigations show the same field: one blueprint with an "Edit Blueprint" button. Same wording for all three, e.g. "Controls the fields of the assets.", "Controls the fields of this global set.", "Controls the fields of the nav items."

All five "mode" settings have the same label "UI Mode" and do the same thing. The other query scope instructions start with "Choose which query scopes …". bard.config.previews has the same label as replicator.config.previews, which already says what is shown.

Generic keys with different meanings

Some short JSON keys are used in places with different meanings. English can use the same word everywhere, but other languages often need different words. Separate keys (or messages.* keys) would let translators pick the right word for each place.

Key Places Why one translation doesn't fit all
Single Date fieldtype UI mode (Date.php), Array fieldtype UI mode (Arr.php), collection sites (OneOrManySitesField.vue) Date: a single date, next to "Range". Array: a single key/value pair. Sites: one value for all sites.
Inline Checkboxes/Radio appearance (ControlAppearanceFieldtype.vue), Date fieldtype (Date.php), Autocomplete Editor (AutocompleteEditor.php) Appearance: options side by side. Date: calendar shown directly. Autocomplete Editor: no block elements.
Connect Form tab and page title (forms/Layout.vue, forms/connect/*.vue), OAuth button (users/OAuth.vue) The form tab is a section name (a noun reads better as page title and in breadcrumbs), the OAuth button is an action.
Label Form builder field settings (FormField.php), blueprint field settings In the form builder, it's the question shown to respondents. In blueprints, it's the field name.
Clear Cache utility cards (Cache.vue), row actions for single image variants and static pages, listing filters, time picker Clearing a whole cache vs. removing one cached item.

Not translatable

Where Current Suggestion
src/Fieldtypes/Markdown.php:140 (section title) 'display' => 'Advanced' 'display' => __('Advanced'), like the other fieldtypes (Bard, Text, Entries …). It still shows translated today because Sections.vue runs __(section.display), so this is only for consistency.
src/Fieldtypes/Code.php (key_map options) 'default' => 'Default' 'default' => __('Default'). "Sublime" and "Vim" are names and can stay.

How to reproduce

This is about text only. Open the settings listed above in the Control Panel and compare the instructions with what the fields do. The tables name the code that shows the actual behavior.

Logs

No response

Environment

Environment
Laravel Version: 12.75.0
PHP Version: 8.4.27
Composer Version: 2.11.2
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: UTC
Locale: de_CH

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: background
Session: file

Storage
public/storage: NOT LINKED

Statamic
Addons: 5
License Key: Not set
Sites: 2 (Statamic, English)
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.44.2 PRO

Statamic Addons
daun/statamic-original-filename: 1.1.1
mitydigital/statamic-llms-txt: 1.1.1
statamic/forms-pro: 1.0.1
statamic/seo-pro: 7.16.0
swiftmade/statamic-clear-assets: 3.4.0

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions