Browse Source

Maintenance: Improve translatable source strings.

Martin Gruner 1 year ago
parent
commit
fc1227698b

+ 1 - 1
app/assets/javascripts/app/controllers/widget/two_factor_configuration/modal/security_keys.coffee

@@ -189,7 +189,7 @@ class App.TwoFactorConfigurationModalSecurityKeyRegister extends App.TwoFactorCo
       success: callback
     )
 
-  showError: (message = __('Security key set up failed.')) =>
+  showError: (message = __('Security key setup failed.')) =>
     @el.find('.main').hide()
     @showAlert(message)
     @el.find('.js-submit').removeClass('hidden')

+ 1 - 1
app/assets/javascripts/app/views/time_accounting/settings.jst.eco

@@ -11,7 +11,7 @@
     <div class="page-header-title">
       <h2><%- @T('Unit') %></h2>
     </div>
-    <p><%- @T('Define the unit to be shown next to the time accounting input field.') %></p>
+    <p><%- @T('Defines the unit to be shown next to the time accounting input field.') %></p>
     <div class="formGroup-label">
       <label for="timeAccountingUnit"><%- @T('Time accounting unit') %></label>
     </div>

+ 1 - 1
app/assets/javascripts/app/views/widget/two_factor_configuration/authenticator_app.jst.eco

@@ -31,7 +31,7 @@
       </p>
     </li>
     <li>
-      <p><%= @T('Press the button below to finish the set up.') %></p>
+      <p><%= @T('Press the button below to finish the setup.') %></p>
     </li>
   </ol>
 </div>

+ 1 - 1
app/controllers/users_controller.rb

@@ -658,7 +658,7 @@ curl http://localhost/api/v1/users/password_change -v -u #{login}:#{password} -H
   end
 
   def password_check
-    raise Exceptions::UnprocessableEntity, __('The parameter "password" is missing!') if params[:password].blank?
+    raise Exceptions::UnprocessableEntity, __("The required parameter 'password' is missing.") if params[:password].blank?
 
     begin
       Auth.new(current_user.login, params[:password], only_verify_password: true).valid!

+ 7 - 10
i18n/zammad.pot

@@ -3289,10 +3289,6 @@ msgstr ""
 msgid "Define the maximum number of ticket shown in overviews."
 msgstr ""
 
-#: app/assets/javascripts/app/views/time_accounting/settings.jst.eco
-msgid "Define the unit to be shown next to the time accounting input field."
-msgstr ""
-
 #: db/seeds/settings.rb
 msgid "Defines Elasticsearch index name."
 msgstr ""
@@ -3845,6 +3841,7 @@ msgstr ""
 msgid "Defines the transaction backend which will enrich customer and organization information from Clearbit (http://www.clearbit.com)."
 msgstr ""
 
+#: app/assets/javascripts/app/views/time_accounting/settings.jst.eco
 #: db/seeds/settings.rb
 msgid "Defines the unit to be shown next to the time accounting input field."
 msgstr ""
@@ -8749,7 +8746,7 @@ msgid "Pre-defined webhook for %s."
 msgstr ""
 
 #: app/assets/javascripts/app/views/widget/two_factor_configuration/authenticator_app.jst.eco
-msgid "Press the button below to finish the set up."
+msgid "Press the button below to finish the setup."
 msgstr ""
 
 #: db/seeds/settings.rb
@@ -9703,7 +9700,7 @@ msgid "Security key \"%s\" will be removed."
 msgstr ""
 
 #: app/assets/javascripts/app/controllers/widget/two_factor_configuration/modal/security_keys.coffee
-msgid "Security key set up failed."
+msgid "Security key setup failed."
 msgstr ""
 
 #: app/assets/javascripts/app/controllers/widget/two_factor_login/method/security_keys.coffee
@@ -11086,10 +11083,6 @@ msgstr ""
 msgid "The page you were looking for does not exist."
 msgstr ""
 
-#: app/controllers/users_controller.rb
-msgid "The parameter \"password\" is missing!"
-msgstr ""
-
 #: app/controllers/mentions_controller.rb
 msgid "The parameter 'mentionable_type' is invalid."
 msgstr ""
@@ -11284,6 +11277,10 @@ msgstr ""
 msgid "The required parameter 'params' is missing."
 msgstr ""
 
+#: app/controllers/users_controller.rb
+msgid "The required parameter 'password' is missing."
+msgstr ""
+
 #: app/models/core_workflow/result.rb
 msgid "The required parameter 'payload->class_name' is missing."
 msgstr ""