Skip to content
Snippets Groups Projects

Update split i18n strings to be more translatable

1 unresolved thread

What does this MR do and why?

Update the format of i18n strings that have multiple parts formatted into an English language sentence so that they can be translated into other languages that don't use similar syntax.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

This is a difficult set of changes to test in the GDK, as they range widely.

For most changes, the change is only a change in the copy the user sees and has no mechanical/functional change. These changes have already undergone Technical Writing review.

Mechanically, I think special reviewer scrutiny is probably due to my changes in app/helpers/emails_helper.rb and its spec file /spec/helpers/emails_helper_spec.rb. Previously, this file only returned the reason part of a split internationalized string, but I have changed it to return the entire message.

These changes can be most conveniently reviewed by visiting the mailer preview app (http://gdk.test:3000/rails/mailers) and checking the contents of generated emails.

Emails impacted by my changes:

Related to #450712 (closed), #444717 (closed)

Edited by Chad Lavimoniere

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • added 1 commit

    • a3b0cfb1 - Update split i18n strings to be more translatable

    Compare with previous version

  • @msedlakjakubowski can you review the copy changes I've got here as well? I don't want to fix my failing tests until I have finalized copy to test against.

  • requested review from @msedlakjakubowski

  • Marcin Sedlak-Jakubowski approved this merge request

    approved this merge request

  • removed review request for @msedlakjakubowski

  • E2E Test Result Summary

    allure-report-publisher generated test report!

    e2e-test-on-gdk: :white_check_mark: test report for 746789fd

    expand test summary
    +------------------------------------------------------------------+
    |                          suites summary                          |
    +-------------+--------+--------+---------+-------+-------+--------+
    |             | passed | failed | skipped | flaky | total | result |
    +-------------+--------+--------+---------+-------+-------+--------+
    | Create      | 87     | 0      | 9       | 0     | 96    | ✅     |
    | Govern      | 66     | 0      | 0       | 0     | 66    | ✅     |
    | Data Stores | 31     | 0      | 0       | 0     | 31    | ✅     |
    | Plan        | 51     | 0      | 2       | 0     | 53    | ✅     |
    | Verify      | 35     | 0      | 1       | 0     | 36    | ✅     |
    | Monitor     | 7      | 0      | 0       | 0     | 7     | ✅     |
    | Package     | 24     | 0      | 6       | 0     | 30    | ✅     |
    | Manage      | 0      | 0      | 1       | 0     | 1     | ➖     |
    | Analytics   | 2      | 0      | 0       | 0     | 2     | ✅     |
    | Release     | 5      | 0      | 0       | 0     | 5     | ✅     |
    +-------------+--------+--------+---------+-------+-------+--------+
    | Total       | 308    | 0      | 19      | 0     | 327   | ✅     |
    +-------------+--------+--------+---------+-------+-------+--------+

    e2e-package-and-test: :x: test report for 746789fd

    expand test summary
    +------------------------------------------------------------------+
    |                          suites summary                          |
    +-------------+--------+--------+---------+-------+-------+--------+
    |             | passed | failed | skipped | flaky | total | result |
    +-------------+--------+--------+---------+-------+-------+--------+
    | Plan        | 285    | 0      | 23      | 0     | 308   | ✅     |
    | Create      | 181    | 1      | 21      | 2     | 203   | ❌     |
    | Govern      | 28     | 0      | 0       | 0     | 28    | ✅     |
    | Package     | 6      | 0      | 8       | 0     | 14    | ✅     |
    | Monitor     | 8      | 0      | 0       | 0     | 8     | ✅     |
    | Data Stores | 22     | 0      | 0       | 0     | 22    | ✅     |
    | Release     | 2      | 0      | 0       | 0     | 2     | ✅     |
    | Verify      | 18     | 0      | 0       | 0     | 18    | ✅     |
    +-------------+--------+--------+---------+-------+-------+--------+
    | Total       | 550    | 1      | 52      | 2     | 603   | ❌     |
    +-------------+--------+--------+---------+-------+-------+--------+
  • added 1 commit

    • d39bd509 - Update split i18n strings to be more translatable

    Compare with previous version

  • Chad Lavimoniere added 693 commits

    added 693 commits

    Compare with previous version

  • added 1 commit

    • c69d9990 - Update split i18n strings to be more translatable

    Compare with previous version

  • Chad Lavimoniere added 463 commits

    added 463 commits

    Compare with previous version

  • added 1 commit

    • 6355cbd6 - Update split i18n strings to be more translatable

    Compare with previous version

  • added 1 commit

    • 0e227266 - Update split i18n strings to be more translatable

    Compare with previous version

  • Chad Lavimoniere marked this merge request as ready

    marked this merge request as ready

  • added 1 commit

    • 6e34a548 - Update split i18n strings to be more translatable

    Compare with previous version

  • added 1 commit

    • a3f21bc6 - Update split i18n strings to be more translatable

    Compare with previous version

  • Chad Lavimoniere changed the description

    changed the description

  • @cablett Do you mind doing a BE review here?

    Sorry that my review steps are a little vague. As I said in the description I think the most scrutiny needed on my changes to emails_helper.

  • Chad Lavimoniere requested review from @cablett

    requested review from @cablett

  • Looks great so far @clavimoniere ! I just have a couple of questions here for your consideration. Let me know what you think! :ping_pong:

    Edited by charlie ablett
  • added 1 commit

    • 09f2628d - Update split i18n strings to be more translatable

    Compare with previous version

  • @cablett @splattael thank you for your feedback! I've applied the easily applied suggestions here still a few questions in other threads.

    EDIT: never mind that last part. Still an outstanding Technical Writing question but I've applied all your suggestions.

    Edited by Chad Lavimoniere
  • Chad Lavimoniere requested review from @cablett

    requested review from @cablett

  • added 1 commit

    • 186c89b9 - Update split i18n strings to be more translatable

    Compare with previous version

  • added 1 commit

    • ec1b32cb - Update split i18n strings to be more translatable

    Compare with previous version

  • changed milestone to %17.0

  • added 1 commit

    • a912f49f - Update split i18n strings to be more translatable

    Compare with previous version

  • mentioned in issue #456257 (closed)

  • @msedlakjakubowski thanks for the recommendations, just updated!

  • added 1 commit

    • 034c885a - Update split i18n strings to be more translatable

    Compare with previous version

  • added 1 commit

    • 746789fd - Update split i18n strings to be more translatable

    Compare with previous version

  • Chad Lavimoniere changed the description

    changed the description

  • requested review from @jrushford

  • James Rushford approved this merge request

    approved this merge request

  • James Rushford requested review from @slashmanov and removed review request for @jrushford

    requested review from @slashmanov and removed review request for @jrushford

  • Stanislav Lashmanov approved this merge request

    approved this merge request

  • Stanislav Lashmanov removed review request for @slashmanov

    removed review request for @slashmanov

  • charlie ablett approved this merge request

    approved this merge request

  • @tachyons-gitlab @sgarg_gitlab @bdenkovych @ifarkas are one of you able to please approve for groupauthentication ? :bow:

  • Smriti Garg approved this merge request

    approved this merge request

  • Smriti Garg requested review from @sgarg_gitlab

    requested review from @sgarg_gitlab

  • Smriti Garg removed review request for @sgarg_gitlab

    removed review request for @sgarg_gitlab

  • Imre Farkas approved this merge request

    approved this merge request

  • The MR has all the required approvals. I am setting MWPS. :rocket:

  • Imre Farkas resolved all threads

    resolved all threads

  • Imre Farkas enabled an automatic merge when the pipeline for 3920ab1a succeeds

    enabled an automatic merge when the pipeline for 3920ab1a succeeds

  • merged

  • Imre Farkas mentioned in commit 22d5b082

    mentioned in commit 22d5b082

  • added workflowstaging label and removed workflowcanary label

  • mentioned in issue #462661

  • Please register or sign in to reply
    Loading