Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

📝 Translation warnings #106

Open
75 tasks
viktorix opened this issue Jun 5, 2023 · 0 comments
Open
75 tasks

📝 Translation warnings #106

viktorix opened this issue Jun 5, 2023 · 0 comments
Labels
status: discussion type: bug Something isn't working

Comments

@viktorix
Copy link
Member

viktorix commented Jun 5, 2023

Expected behavior

As few warnings as possible.

Current behavior

A lot of warnings are generated by wp i18n command. Some warnings can be ignored, but some may need to be fixed.

Possible solution

Go through warnings and fix the ones that need to be fixed.

The file provided on the "Warning" line is not the only file where that string is used. That's just one of them. The command doesn't list all the files where the string is used.

Instructions:
Each warning needs to be verified. The context of strings needs to be checked, and if translator comments are correct you can check the task off. If translator comments needs to be changed, ideally, need to turn task into an issue by hovering over it.

Some warnings are about missing translator comments. Those can be converted into issues, if appropriate.

  • Warning: The string "Network Admin: %s" has 2 different translator comments. (wp-admin/admin-header.php:40)
    • translators: Network admin screen title. %s: Network title.
    • translators: %s: Site title.
  • Warning: The string "User Dashboard: %s" has 2 different translator comments. (wp-admin/admin-header.php:43)
    • translators: User dashboard screen title. %s: Network title.
    • translators: %s: Site title.
  • Warning: The string "%1$s ‹ %2$s — ClassicPress" has 2 different translator comments. (wp-admin/admin-header.php:68)
    • translators: Admin screen title. 1: Admin screen name, 2: Network or site name.
    • translators: Login screen title. 1: Login screen name, 2: Network or site name.
  • Warning: The string "Recovery Mode — %s" has 2 different translator comments. (wp-admin/admin-header.php:73)
    • translators: %s: Admin screen title.
    • translators: %s: Login screen title.
  • Warning: The string "F j, Y" has 6 different translator comments. (wp-admin/admin.php:113)
  • Warning: The string "g:i a" has 7 different translator comments. (wp-admin/admin.php:114)
  • Warning: The string "“%s” has failed to upload." has 2 different translator comments. (wp-admin/async-upload.php:124)
    • translators: %s: Name of the file that failed to upload.
    • translators: %s: File name.
  • Warning: The string "%1$s at %2$s" has 4 different translator comments. (wp-admin/comment.php:219)
    • translators: 1: Comment date, 2: Comment time.
    • translators: Publish box date string. 1: Date, 2: Time.
    • translators: 1: Post date, 2: Post time.
    • translators: Publish box date string. 1: Date, 2: Time. See https://www.php.net/manual/datetime.format.php
  • Warning: The string "Y/m/d" has 3 different translator comments. (wp-admin/comment.php:221)
  • Warning: The string "Version %s" has 5 different translator comments. (wp-admin/credits.php:26)
    • translators: %s: Plugin version.
    • translators: %s: Plugin version number.
    • translators: %s: Theme version number.
    • translators: %s: Theme version.
    • translators: %s: ClassicPress version.
  • Warning: The string "Comments on “%s”" has 2 different translator comments. (wp-admin/edit-comments.php:164)
    • translators: %s: Post title.
    • translators: %s: Link to post.
  • Warning: The string "Comments" has 2 different translator comments. (wp-admin/edit-comments.php:180)
    • translators: Hidden accessibility text.
    • translators: Default privacy policy heading.
  • Warning: The string "Last edited by %1$s on %2$s at %3$s" has 2 different translator comments. (wp-admin/edit-form-advanced.php:623)
    • translators: 1: Name of most recent post author, 2: Post edited date, 3: Post edited time.
    • translators: 1: User's display name, 2: Date of last edit, 3: Time of last edit.
  • Warning: The string "Last edited on %1$s at %2$s" has 2 different translator comments. (wp-admin/edit-form-advanced.php:626)
    • translators: 1: Post edited date, 2: Post edited time.
    • translators: 1: Date of last edit, 2: Time of last edit.
  • Warning: The string "In reply to: %s" has 2 different translator comments. (wp-admin/edit-form-comment.php:214)
    • translators: %s: Comment link.
    • translators: Comment moderation. %s: Parent comment edit URL.
  • Warning: The string "We take privacy and transparency very seriously. To learn more about what data we collect, how we use it, and what precautions we take to ensure site owners’ privacy, please see the ClassicPress Privacy Policy." contains placeholders but has no "translators:" comment to clarify their meaning. (wp-admin/freedoms.php:68)
  • Warning: The string "ClassicPress is Free and open source software, built by a distributed community of volunteer developers from around the world. ClassicPress comes with some awesome, worldview-changing rights courtesy of its license, the GPL." contains placeholders but has no "translators:" comment to clarify their meaning. (wp-admin/freedoms.php:73)
  • Warning: The string "Every plugin and theme in ClassicPress.net’s directory is 100%% GPL or a similarly free and compatible license, so you can feel safe finding plugins and themes there. If you get a plugin or theme from another source, make sure to ask them if it’s GPL first. If they don’t respect the ClassicPress license, we don’t recommend them." contains placeholders but has no "translators:" comment to clarify their meaning. (wp-admin/freedoms.php:88)
  • Warning: The string "If you need a WordPress Importer, follow these instructions to install it manually." contains placeholders but has no "translators:" comment to clarify their meaning. (wp-admin/import.php:77)
  • Warning: The string "Install %s now" has 3 different translator comments. (wp-admin/import.php:167)
    • translators: %s: Importer name.
    • translators: %s: Plugin name and version.
    • translators: %s: Plugin name.
  • Warning: The string "More information about %s" has 3 different translator comments. (wp-admin/import.php:212)
    • translators: %s: Importer name.
    • translators: %s: Plugin name and version.
    • translators: %s: Plugin name.
  • Warning: The string "%s Comment in moderation" has 2 different translator comments. (wp-admin/includes/ajax-actions.php:429)
    • translators: %s: Number of comments.
    • translators: Hidden accessibility text. %s: Number of comments.
  • Warning: The string "%s item" has 5 different translator comments. (wp-admin/includes/ajax-actions.php:492)
    • translators: %s: Number of comments.
    • translators: %s: Number of items.
    • translators: Number of items.
    • translators: %s: Number of items (tags).
    • translators: %s: The remaining number of plugins.
  • Warning: The string "+ %s" has 2 different translator comments. (wp-admin/includes/meta-boxes.php:672)
    • translators: %s: Add New taxonomy label.
    • translators: %s: Add New Page label.
  • Warning: The string "identity" has 2 different translator comments. (wp-admin/includes/meta-boxes.php:1316)
  • Warning: The string "friendship" has 2 different translator comments. (wp-admin/includes/meta-boxes.php:1330)
  • Warning: The string "physical" has 2 different translator comments. (wp-admin/includes/meta-boxes.php:1353)
  • Warning: The string "professional" has 2 different translator comments. (wp-admin/includes/meta-boxes.php:1367)
  • Warning: The string "geographical" has 2 different translator comments. (wp-admin/includes/meta-boxes.php:1384)
  • Warning: The string "family" has 2 different translator comments. (wp-admin/includes/meta-boxes.php:1404)
  • Warning: The string "romantic" has 2 different translator comments. (wp-admin/includes/meta-boxes.php:1433)
  • Warning: The string "commit %s" contains placeholders but has no "translators:" comment to clarify their meaning. (wp-admin/includes/misc.php:42)
  • Warning: The string "You should back up your existing %1$s and %2$s files." has 2 different translator comments. (wp-admin/includes/network.php:447)
    • translators: 1: wp-config.php, 2: .htaccess
    • translators: 1: wp-config.php, 2: web.config
  • Warning: The string "An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums." has 2 different translator comments. (wp-admin/includes/plugin-install.php:169)
    • translators: %s: Support forums URL.
    • translators: %s: support forums URL
  • Warning: The string "The seventh parameter passed to %s should be numeric representing menu position." has 2 different translator comments. (wp-admin/includes/plugin.php:1345)
    • translators: %s: add_menu_page()
    • translators: %s: add_submenu_page()
  • Warning: The string "F j, Y g:i a" has 2 different translator comments. (wp-admin/includes/schema.php:442)
  • Warning: The string "Welcome to %s. This is your first post. Edit or delete it, then start writing!" has 2 different translator comments. (wp-admin/includes/schema.php:1280)
    • translators: %s: Site link.
    • translators: First post content. %s: Site link.
  • Warning: The string "The "%s" options group has been removed. Use another settings group." has 2 different translator comments. (wp-admin/includes/template.php:1536)
    • translators: %s: misc
    • translators: %s: privacy
  • Warning: The string "There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details." has 3 different translator comments. (wp-admin/includes/theme.php:223)
    • translators: 1: Theme name, 2: Theme details URL, 3: Additional link attributes, 4: Version number.
    • translators: 1: Plugin name, 2: Details URL, 3: Additional link attributes, 4: Version number.
    • translators: 1: Theme name, 2: Details URL, 3: Additional link attributes, 4: Version number.
  • Warning: The string "View %1$s version %2$s details" has 2 different translator comments. (wp-admin/includes/theme.php:229)
    • translators: 1: Theme name, 2: Version number.
    • translators: 1: Plugin name, 2: Version number.
  • Warning: The string "There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details. Automatic update is unavailable for this theme." has 2 different translator comments. (wp-admin/includes/theme.php:236)
    • translators: 1: Theme name, 2: Theme details URL, 3: Additional link attributes, 4: Version number.
    • translators: 1: Theme name, 2: Details URL, 3: Additional link attributes, 4: Version number.
  • Warning: The string "There is a new version of %1$s available. <a href="%2$s" %3$s>View version %4$s details or <a href="%5$s" %6$s>update now." has 3 different translator comments. (wp-admin/includes/theme.php:249)
    • translators: 1: Theme name, 2: Theme details URL, 3: Additional link attributes, 4: Version number, 5: Update URL, 6: Additional link attributes.
    • translators: 1: Plugin name, 2: Details URL, 3: Additional link attributes, 4: Version number, 5: Update URL, 6: Additional link attributes.
    • translators: 1: Theme name, 2: Details URL, 3: Additional link attributes, 4: Version number, 5: Update URL, 6: Additional link attributes.
  • Warning: The string "An unexpected error occurred. Something may be wrong with ClassicPress.net or this server’s configuration. If you continue to have problems, please try the support forums." has 2 different translator comments. (wp-admin/includes/translation-install.php:69)
    • translators: %s: support forums URL
    • translators: %s: Support forums URL.
  • Warning: The string "<a href="" has 3 different translator comments. (wp-admin/install.php:266)
    • translators: 1: URL to ClassicPress release notes, 2: ClassicPress version number, 3: Minimum required PHP version number, 4: Minimum required MySQL version number, 5: Current PHP version number, 6: Current MySQL version number.
    • translators: 1: ClassicPress version number, 2: Minimum required PHP version number, 3: Current PHP version number
    • translators: 1: ClassicPress version number, 2: Minimum required MySQL version number, 3: Current MySQL version number
  • Warning: The string "Updates %s" has 2 different translator comments. (wp-admin/menu.php:49)
    • translators: %s: Number of pending updates.
    • translators: %s: Number of available updates.
  • Warning: The string "You should update your %s file now." has 2 different translator comments. (wp-admin/options-permalink.php:183)
    • translators: %s: web.config
    • translators: %s: .htaccess
  • Warning: The string "Edit or view your Privacy Policy page content." has 2 different translator comments. (wp-admin/options-privacy.php:215)
    • translators: 1: URL to edit Privacy Policy page, 2: URL to view Privacy Policy page.
    • translators: 1: URL to edit page, 2: URL to view page.
  • Warning: The string "Edit or preview your Privacy Policy page content." has 2 different translator comments. (wp-admin/options-privacy.php:222)
    • translators: 1: URL to edit Privacy Policy page, 2: URL to preview Privacy Policy page.
    • translators: 1: URL to edit page, 2: URL to preview page.
  • Warning: The string "Need help putting together your new Privacy Policy page? <a href="%1$s" %2$s>Check out our guide%3$s for recommendations on what content to include, along with policies suggested by your plugins and theme." contains placeholders but has no "translators:" comment to clarify their meaning. (wp-admin/privacy.php:173)
  • Warning: The string "If you need to re-install version %s, you can do so here:" contains placeholders but has no "translators:" comment to clarify their meaning. (wp-admin/update-core.php:81)
  • Warning: The string "Important: before updating, please back up your database and files. For help with updates, visit the Updating ClassicPress documentation page." contains placeholders but has no "translators:" comment to clarify their meaning. (wp-admin/update-core.php:251)
  • Warning: The string "Expected compatibility with ClassicPress %1$s: 100%%." contains placeholders but has no "translators:" comment to clarify their meaning. (wp-admin/update-core.php:363)
  • Warning: The string "Expected Compatibility with ClassicPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)." contains placeholders but has no "translators:" comment to clarify their meaning. (wp-admin/update-core.php:367)
  • Warning: The string "Expected compatibility with ClassicPress %1$s: Unknown." contains placeholders but has no "translators:" comment to clarify their meaning. (wp-admin/update-core.php:370)
  • Warning: The string "Expected compatibility with ClassicPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)." contains placeholders but has no "translators:" comment to clarify their meaning. (wp-admin/update-core.php:380)
  • Warning: The string "Learn more about updating PHP." contains placeholders but has no "translators:" comment to clarify their meaning. (wp-admin/update-core.php:395)
  • Warning: The string "You have version %1$s installed. Update to %2$s." has 2 different translator comments. (wp-admin/update-core.php:443)
    • translators: 1: Plugin version, 2: New version.
    • translators: 1: Theme version, 2: New version.
  • Warning: The string "Language" has 2 different translator comments. (wp-admin/user-edit.php:359)
    • translators: The user language selection field label.
    • translators: Hidden accessibility text.
  • Warning: The string "%s update available" has 2 different translator comments. (wp-includes/admin-bar.php:1047)
    • translators: Hidden accessibility text. %s: Total number of updates available.
    • translators: %s: Total number of updates available.
  • Warning: The string "Use %s instead if you do not want the value echoed." has 2 different translator comments. (wp-includes/author-template.php:71)
    • translators: %s: get_the_author()
    • translators: %s: get_trackback_url()
  • Warning: The string "%1$s is deprecated. Use %2$s instead." has 3 different translator comments. (wp-includes/category-template.php:379)
    • translators: 1: "type => link", 2: "taxonomy => link_category"
    • translators: 1: caller_get_posts, 2: ignore_sticky_posts
    • translators: 1: who, 2: capability
  • Warning: The string "#%d (no title)" has 2 different translator comments. (wp-includes/class-walker-page-dropdown.php:80)
    • translators: %d: ID of a post.
    • translators: %d: ID of a term.
  • Warning: The string "%1$s uses block-related functions and may have issues." has 2 different translator comments. (wp-includes/classicpress/class-wp-compat.php:71)
    • Translators: %1$s is the plugin name.
    • Translators: %1$s is the theme name.
  • Warning: The string "Learn more" has 2 different translator comments. (wp-includes/classicpress/class-wp-compat.php:73)
    • Translators: %1$s is the theme name.
    • Translators: %1$s is the theme name, %1$s is the parent theme name.
  • Warning: The string "%s second" has 2 different translator comments. (wp-includes/formatting.php:3844)
    • translators: Time difference between two dates, in seconds. %s: Number of seconds.
    • translators: %s: Time duration in second or seconds.
  • Warning: The string "%s hour" has 2 different translator comments. (wp-includes/formatting.php:3858)
    • translators: Time difference between two dates, in hours. %s: Number of hours.
    • translators: %s: Time duration in hour or hours.
  • Warning: The string "Do not pass %1$s tags to %2$s." has 2 different translator comments. (wp-includes/functions.wp-scripts.php:138)
    • translators: 1: <script>, 2: wp_add_inline_script()
    • translators: 1: <style>, 2: wp_add_inline_style()
  • Warning: The string "Email: %s" has 2 different translator comments. (wp-includes/pluggable.php:1757)
    • translators: %s: Comment author email.
    • translators: %s: User email address.
  • Warning: The string "%s [Autosave]" has 2 different translator comments. (wp-includes/post-template.php:1879)
    • translators: %s: Revision date.
    • translators: %s: Revision date with author avatar.
  • Warning: The string "%s [Current Revision]" has 2 different translator comments. (wp-includes/post-template.php:1881)
    • translators: %s: Revision date.
    • translators: %s: Revision date with author avatar.
  • Warning: The string "Pending (%s)" has 2 different translator comments. (wp-includes/post.php:331)
    • translators: %s: Number of pending posts.
    • translators: %s: Number of pending requests.
  • Warning: The string "%1$s (since %2$s; %3$s)" has 2 different translator comments. (wp-includes/rest-api.php:635)
    • translators: 1: Function name, 2: WordPress version number, 3: Error message.
    • translators: Developer debugging message. 1: PHP function name, 2: WordPress version number, 3: Explanatory message.
  • Warning: The string "%1$s is not of type %2$s." has 2 different translator comments. (wp-includes/rest-api.php:2087)
    • translators: 1: Parameter, 2: List of types.
    • translators: 1: Parameter, 2: Type name.
  • Warning: The string "The %s property has an invalid stored value, and cannot be updated to null." has 2 different translator comments. (wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php:197)
    • translators: %s: Property name.
    • translators: %s: Custom field key.
  • Warning: The string "Are you sure you want to delete %s?" has 2 different translator comments. (wp-admin/js/updates.js:2308)
    • translators: %s: Plugin name.
    • translators: %s: Theme name.

Steps to reproduce bug

See list.

Context

For reference, the command is:
wp i18n make-pot . v2-c.pot --ignore-domain --exclude=wp-content,composer.json,wp-admin/about.php --skip-theme-json --skip-block-json --no-color

ClassicPress version

2.0

PHP version

7.4

Can you help?

Yes, I will submit a PR

@viktorix viktorix added status: discussion type: bug Something isn't working labels Jun 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: discussion type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant