Project

General

Profile

« Previous | Next » 

Revision 60fe43b2

Added by Ondřej Pražák almost 9 years ago

Fixes #7167 - names of settings marked for translation

View differences:

app/models/setting/general.rb
self.transaction do
[
self.set('administrator', N_("The default administrator email address"), administrator),
self.set('foreman_url', N_("URL where your Foreman instance is reachable (see also Provisioning > unattended_url)"), foreman_url),
self.set('email_reply_address', N_("Email reply address for emails that Foreman is sending"), email_reply_address),
self.set('email_subject_prefix', N_("Prefix to add to all outgoing email"), '[foreman]'),
self.set('send_welcome_email', N_("Send a welcome email including username and URL to new users"), false),
self.set('entries_per_page', N_("Number of records shown per page in Foreman"), 20),
self.set('fix_db_cache', N_('Fix DB cache on next Foreman restart'), false),
self.set('max_trend', N_("Max days for Trends graphs"), 30),
self.set('use_gravatar', N_("Foreman will use gravatar to display user icons"), false),
self.set('db_pending_migration', N_("Should the `foreman-rake db:migrate` be executed on the next run of the installer modules?"), true),
self.set('db_pending_seed', N_("Should the `foreman-rake db:seed` be executed on the next run of the installer modules?"), true),
self.set('proxy_request_timeout', N_("Max timeout for REST client requests to smart-proxy"), 60)
self.set('administrator', N_("The default administrator email address"), administrator, N_('Administrator email address')),
self.set('foreman_url', N_("URL where your Foreman instance is reachable (see also Provisioning > unattended_url)"), foreman_url, N_('Foreman URL')),
self.set('email_reply_address', N_("Email reply address for emails that Foreman is sending"), email_reply_address, N_('Email reply address')),
self.set('email_subject_prefix', N_("Prefix to add to all outgoing email"), '[foreman]', N_('Email subject prefix')),
self.set('send_welcome_email', N_("Send a welcome email including username and URL to new users"), false, N_('Send welcome email')),
self.set('entries_per_page', N_("Number of records shown per page in Foreman"), 20, N_('Entries per page')),
self.set('fix_db_cache', N_('Fix DB cache on next Foreman restart'), false, N_('Fix DB cache')),
self.set('max_trend', N_("Max days for Trends graphs"), 30, N_('Max trends')),
self.set('use_gravatar', N_("Foreman will use gravatar to display user icons"), false, N_('Use Gravatar')),
self.set('db_pending_migration', N_("Should the `foreman-rake db:migrate` be executed on the next run of the installer modules?"), true, N_('DB pending migration')),
self.set('db_pending_seed', N_("Should the `foreman-rake db:seed` be executed on the next run of the installer modules?"), true, N_('DB pending seed')),
self.set('proxy_request_timeout', N_("Max timeout for REST client requests to smart-proxy"), 60, N_('Proxy request timeout'))
].each { |s| self.create! s.update(:category => "Setting::General")}
end

Also available in: Unified diff