diff options
author | Go MAEDA <maeda@farend.jp> | 2020-09-11 00:42:49 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-09-11 00:42:49 +0000 |
commit | e84ab8fcb60e71ce8826a30188e2c876d2630771 (patch) | |
tree | 7b1746a5fbc7bb37a274a432b4b3307a94872993 /lib | |
parent | fb22773f84b402a34538e61b535022104504aac6 (diff) | |
download | redmine-e84ab8fcb60e71ce8826a30188e2c876d2630771.tar.gz redmine-e84ab8fcb60e71ce8826a30188e2c876d2630771.zip |
Don't internationalize error messages used when defining a macro (#33426).
git-svn-id: http://svn.redmine.org/redmine/trunk@20015 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/wiki_formatting/macros.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/wiki_formatting/macros.rb b/lib/redmine/wiki_formatting/macros.rb index 03eeecde9..db0a5ae01 100644 --- a/lib/redmine/wiki_formatting/macros.rb +++ b/lib/redmine/wiki_formatting/macros.rb @@ -152,10 +152,10 @@ module Redmine def macro(name, options={}, &block) options.assert_valid_keys(:desc, :parse_args) unless /\A\w+\z/.match?(name.to_s) - raise t(:error_invalid_macro_name, :name => name) + raise "Invalid macro name: #{name} (only 0-9, A-Z, a-z and _ characters are accepted)" end unless block_given? - raise t(:error_can_not_create_macro_without_block) + raise "Can not create a macro without a block!" end name = name.to_s.downcase.to_sym available_macros[name] = {:desc => @@desc || ''}.merge(options) |