Skip to content

Fix: localize text one MR commit template

What does this MR do and why?

Wrapping template text with Gettext translation method, so it can be translated into different languages.

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Goto a project
  2. Create a new merge request without any commits
  3. Scroll to the bottom
  4. You should see the text "There are no commits yet."
  5. Open a new tab and goto preferences page
  6. Change your preferred language into Chinese Simplified
  7. switch back to that MR page
  8. Refresh that page
  9. You should see that text is translated into Chinese.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related JiHu MR

/cc @prajnamas

Edited by ARCHIVED - Martin Tan

Merge request reports