named_scope:has_module,lambda{|mod|{:conditions=>["#{Project.table_name}.id IN (SELECT em.project_id FROM #{EnabledModule.table_name} em WHERE em.name=?)",mod.to_s]}}
@ -148,24 +147,31 @@ class Project < ActiveRecord::Base
project_statement<<" OR (#{Project.table_name}.lft > #{options[:project].lft} AND #{Project.table_name}.rgt < #{options[:project].rgt})"ifoptions[:with_subprojects]
base_statement="(#{project_statement}) AND (#{base_statement})"
{:conditions=>["#{User.table_name}.id IN (SELECT gu.user_id FROM #{table_name_prefix}groups_users#{table_name_suffix} gu WHERE gu.group_id = ?)",group_id]}
}
named_scope:not_in_group,lambda{|group|
group_id=group.is_a?(Group)?group.id:group.to_i
{:conditions=>["#{User.table_name}.id NOT IN (SELECT gu.user_id FROM #{table_name_prefix}groups_users#{table_name_suffix} gu WHERE gu.group_id = ?)",group_id]}
<div id="div_values_<%= field %>" style="display:none;">
<% case options[:type]
when :list, :list_optional, :list_status, :list_subprojects %>
<select <%= "multiple=true" if query.values_for(field) and query.values_for(field).length > 1 %> name="values[<%= field %>][]" id="values_<%= field %>" class="select-small" style="vertical-align: top;">
<select <%= "multiple=true" if query.values_for(field) and query.values_for(field).length > 1 %> name="v[<%= field %>][]" id="values_<%= field %>" class="select-small" style="vertical-align: top;">
# TODO: Hack to support i18n 4.x on Rails 2.3.5. Remove post 2.3.6.
# See http://www.redmine.org/issues/6428 and http://www.redmine.org/issues/5608
moduleI18n
moduleBackend
moduleBase
defwarn_syntax_deprecation!(*args)
returnif@skip_syntax_deprecation
ActiveSupport::Deprecation.warn"The {{key}} interpolation syntax in I18n messages is deprecated and will be removed in ChiliProject 2.0. Please use %{key} instead. See the notice at https://www.chiliproject.org/boards/2/topics/243 for more information."
@skip_syntax_deprecation=true
end
# TMail::Unquoter.convert_to_with_fallback_on_iso_8859_1 introduced in TMail 1.2.7
# triggers a test failure in test_add_issue_with_japanese_keywords(MailHandlerTest)
text_journal_set_to:"%{label} установен на %{value}"
text_journal_deleted:"%{label} изтрит (%{old})"
text_journal_added:"Добавено %{label} %{value}"
@ -907,6 +911,7 @@ bg:
text_own_membership_delete_confirmation:"Вие сте на път да премахнете някои или всички ваши разрешения и е възможно след това да не можете да редактирате този проект.\nСигурен ли сте, че искате да продължите?"
text_zoom_in:Увеличаване
text_zoom_out:Намаляване
text_warn_on_leaving_unsaved:Страницата съдържа незаписано съдържание, което може да бъде загубено, ако я напуснете.
default_role_manager:Мениджър
default_role_developer:Разработчик
@ -945,3 +950,8 @@ bg:
label_cvs_path:CVSROOT
label_git_path:Path to .git directory
label_mercurial_path:Root directory
label_additional_workflow_transitions_for_assignee:Additional transitions allowed when the user is the assignee
button_expand_all:Expand all
button_collapse_all:Collapse all
label_additional_workflow_transitions_for_author:Additional transitions allowed when the user is the author