Repository navigation
[OP-20545] Enforce US English spelling - #26247
Conversation
eab493a to
e45a34a
Compare
|
Caution The provided work package version does not match the core version Details:
Please make sure that:
|
Generated by 🚫 Danger |
|
Warning Flaky specs
🤖 Ask Copilot to investigateCopy the prompt below into a new comment on this PR to delegate the investigation to GitHub Copilot. It will look into the flakiness and open a separate pull request with you as reviewer. |
|
Hi @myabc , |
toy
left a comment
There was a problem hiding this comment.
Mostly minor things, notes and questions
| | Competence | Key Virtues | | ||
| | --- | --- | | ||
| | Leadership | All | | ||
| | Relationships and engagement | Fairness, Friendliness, Generosity, Honesty, Humour, <br> Temperance | | ||
| | Self-reflection and-self management | Calmness, Courage, Friendliness, Honesty, Honour, Temperance | | ||
| | Relationships and engagement | Fairness, Friendliness, Generosity, Honesty, Humor, <br> Temperance | | ||
| | Self-reflection and-self management | Calmness, Courage, Friendliness, Honesty, Honor, Temperance | | ||
| | Change and transformation | Calmness, Courage, Friendliness, Generosity | | ||
| | Personal communication | Calmness, Friendliness, Generosity, Humour | | ||
| | Resourcefulness | Fairness, Friendliness, Generosity, Honesty, Honour | | ||
| | Results orientation | Honour, Generosity, Magnanimity, Magnificence | | ||
| | Teamwork | Calmness, Courage, Fairness, Friendliness, Generosity, Honour, <br> Magnificence | | ||
| | Negotiation | Courage, Fairness, Friendliness, Generosity, Honesty, Honour | | ||
| | Personal communication | Calmness, Friendliness, Generosity, Humor | | ||
| | Resourcefulness | Fairness, Friendliness, Generosity, Honesty, Honor | | ||
| | Results orientation | Honor, Generosity, Magnanimity, Magnificence | | ||
| | Teamwork | Calmness, Courage, Fairness, Friendliness, Generosity, Honor, <br> Magnificence | | ||
| | Negotiation | Courage, Fairness, Friendliness, Generosity, Honesty, Honor | | ||
| | Conflict and crisis management | Calmness, Fairness, Friendliness, Generosity | | ||
| | Personal integrity and reliability | Calmness, Courage, Fairness, Friendliness, Honour, Temperance | | ||
| | Personal integrity and reliability | Calmness, Courage, Fairness, Friendliness, Honor, Temperance | | ||
| | Culture and values management | All virtues | |
There was a problem hiding this comment.
We need markdown linter to at least align tables, I wrote a script for that long ago, maybe can be combined with reviewdog (it has a way with general tools), or maybe there is an existing solution
There was a problem hiding this comment.
Yes, that would be good: https://github.com/DavidAnson/markdownlint/blob/main/doc/md060.md
| @@ -66,7 +66,7 @@ | |||
|
|
|||
| subject(:pdf_strings) do | |||
| content = export_pdf.content | |||
| # File.binwrite("artefact-test-preview.pdf", content) | |||
| # File.binwrite("artifact-test-preview.pdf", content) | |||
There was a problem hiding this comment.
will wait for him to reply!
There was a problem hiding this comment.
ISO 19650 uses British spelling, so not sure if BIM should also use US spelling or should be an exception
There was a problem hiding this comment.
Keeping US spelling here. The en locale is en-US, and other English variants come through Crowdin. The changed strings are seed text (Modeling, BIM Modelers), not ISO 19650 terms. The :group__bim_modellers reference key is unchanged.
Sets the typos locale to en-us, since the documentation style guide asks for US English and the dictionary otherwise accepts both variants. Public names that now get flagged, such as the PMflex artefact export code, AuthorisationService and server_flavour, are allow-listed with a follow-up note; names fixed by other specs, such as aria-labelledby and axe-core, are allow-listed without one. https://community.openproject.org/wp/OP-20545
Converts British spellings in comments, log and error messages, development seed data, private methods and locals, such as honouring_negation and normalised_window. Public names and the PMflex artefact export code keep their spelling and are allow-listed. https://community.openproject.org/wp/OP-20545
6095130 to
2672ced
Compare
Converts British spellings in comments, spec descriptions, test data, lookbook documentation and module-internal names such as neighbourItem and recognisedMobilities. Public service methods keep their spelling and are allow-listed for a follow-up rename. https://community.openproject.org/wp/OP-20545
Converts British spellings across the docs, release notes included, and updates the in-page anchors of headings whose spelling changed, such as PMflex Artifact. Docs directory names stay as they are, since they are public URLs, and so do quoted names such as the EU Centre of Excellence in PM². https://community.openproject.org/wp/OP-20545
Converts British spellings in module code comments, spec descriptions, private names such as the hourly rate labelled helper, and the BIM seed texts, whose translations are keyed by path rather than by the English source. Shipped migrations and external payloads keep their spelling. https://community.openproject.org/wp/OP-20545
Converts British spellings in spec descriptions, shared example names, comments, locals and test data. Specs asserting English UI text that changes with the locale strings move along with those strings. https://community.openproject.org/wp/OP-20545
Converts British spellings in English locale values, such as the PMflex artifact export labels, and updates the feature specs that assert them. Keys keep their spelling; Crowdin shows the changed source strings to translators as updated. https://community.openproject.org/wp/OP-20545
Restores "favourite" in the project home page keywords. The list carries both spellings on purpose so searches with either one find the page. Adds a typos ignore pattern for front matter keywords. https://community.openproject.org/wp/OP-20545
Replaces the remaining "unmarshalling" and "unmarshalled" occurrences, which typos misses because its dictionary has no entry for either word. https://community.openproject.org/wp/OP-20545
Drops the trailing non-breaking spaces from the secret key base paragraphs in the release notes and pads the PullPreview row so the deployment table stays aligned after the spelling change. https://community.openproject.org/wp/OP-20545
Replaces my-organization.com, which is a registered domain, with the reserved example.com domain. https://community.openproject.org/wp/OP-20545
2672ced to
f7931ff
Compare
|
Warning Flaky specs
🤖 Ask Copilot to investigateCopy the prompt below into a new comment on this PR to delegate the investigation to GitHub Copilot. It will look into the flakiness and open a separate pull request with you as reviewer. |
Ticket
https://community.openproject.org/wp/OP-20545
What are you trying to accomplish?
Follows #26140. Sets
locale = "en-us"intypos.toml, sotyposnow reports British spellings, and converts the existing ones. The documentation style guide already asks for US English, but the codebase mixed both ("artefact"/"artifact", "behaviour"/"behavior", "colour"/"color", "organisation"/"organization"), including user-facing strings such as the PMflex "Artefact export" labels.typosreports no findings on the branch.What approach did you choose and why?
typosnow flags (constants, public methods, i18n keys, stored option keys, CSS classes, file names, docs URL slugs), each with afollow-upnote intypos.toml.aria-labelledby, axe-core, the Railsmarshalling_format_versionoption.typosskips: five docs anchors (it ignores URLs) and two regex literals in a spec.Follow-ups
Public names allow-listed with a
follow-upnote, to rename in separate work packages:Artefact*constants and classes,*_artefact*methods, i18n keys and routes, the"artefact"PDF export template id stored in type settings, and theartefactfile names.EnterpriseToken.trialling?,trialling_features/triallingFeatures,BannersService#trialling,getEnterPriseEditionUrl.AuthorisationService,labelled_tabular_form_for/labelled_tabular_form_with, theop-header-project-select--no-favouritesCSS class, the APIv3 resourcesignalledmethod.server_flavour(LLM connection options), thefavouredi18n key, BIM seed keys (group__bim_modellers,modelling_*).set_favouredpage object helper,labour_query?reporting table method.AI involvement
Directed – I specified the requirements and AI implemented most of it; I validated via testing rather than a full line-by-line review.
Merge checklist