diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-06 12:07:41 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-06 12:07:41 +0300 |
commit | d2485dbfedc4759eba5243e0d155e34494c4429b (patch) | |
tree | 0cdd51c58aef728db2e3c7e9de09976e85c062bb /tooling | |
parent | d111e00680d2b3e46a7ee37af5499407c4a93a22 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'tooling')
-rwxr-xr-x | tooling/bin/gettext_extractor | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tooling/bin/gettext_extractor b/tooling/bin/gettext_extractor index 39f029616df..c430e89a9d3 100755 --- a/tooling/bin/gettext_extractor +++ b/tooling/bin/gettext_extractor @@ -4,6 +4,7 @@ require_relative '../lib/tooling/gettext_extractor' pot_file = ARGV.shift +silent = '--silent' in ARGV if !pot_file || !Dir.exist?(File.dirname(pot_file)) abort <<~MSG @@ -12,9 +13,11 @@ if !pot_file || !Dir.exist?(File.dirname(pot_file)) MSG end -puts <<~MSG - Extracting translatable strings from source files... -MSG +unless silent + puts <<~MSG + Extracting translatable strings from source files... + MSG +end root_dir = File.expand_path('../../', __dir__) @@ -24,6 +27,8 @@ extractor = Tooling::GettextExtractor.new( File.write(pot_file, extractor.generate_pot) -puts <<~MSG - All done. Please commit the changes to `#{pot_file}`. -MSG +unless silent + puts <<~MSG + All done. Please commit the changes to `#{pot_file}`. + MSG +end |