error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_not_allowed_to_log_time_for_other_users: "You are not allowed to log time for other users"
error_can_not_execute_macro_html: "Error executing the <strong>%{name}</strong> macro (%{error})"
error_macro_does_not_accept_block: "This macro does not accept a block of text"
- error_invalid_macro_name: "Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters are accepted)"
- error_can_not_create_macro_without_block: "Can not create a macro without a block!"
error_childpages_macro_no_argument: "With no argument, this macro can be called from wiki pages only"
error_circular_inclusion: "Circular inclusion detected"
error_page_not_found: "Page not found"
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
error_can_not_execute_macro_html: Error executing the <strong>%{name}</strong> macro
(%{error})
error_macro_does_not_accept_block: This macro does not accept a block of text
- error_invalid_macro_name: 'Invalid macro name: %{name} (only 0-9, A-Z, a-z and _ characters
- are accepted)'
- error_can_not_create_macro_without_block: Can not create a macro without a block!
error_childpages_macro_no_argument: With no argument, this macro can be called from
wiki pages only
error_circular_inclusion: Circular inclusion detected
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)