summaryrefslogtreecommitdiffstats
path: root/lib/redmine.rb
blob: 1d27dd420169a4ab05993d67dc1a5d288500d789 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
require 'redmine/access_control'
require 'redmine/menu_manager'
require 'redmine/mime_type'
require 'redmine/acts_as_watchable/init'
require 'redmine/acts_as_event/init'

begin
  require_library_or_gem 'rmagick' unless Object.const_defined?(:Magick)
rescue LoadError
  # RMagick is not available
end

REDMINE_SUPPORTED_SCM = %w( Subversion Darcs Mercurial Cvs )

# Permissions
Redmine::AccessControl.map do |map|
  # Project
  map.permission :view_project, {:projects => [:show, :activity, :changelog, :roadmap, :feeds]}, :public => true
  map.permission :search_project, {:search => :index}, :public => true
  map.permission :edit_project, {:projects => [:settings, :edit]}, :require => :member
  map.permission :manage_members, {:projects => [:settings, :add_member], :members => [:edit, :destroy]}, :require => :member
  map.permission :manage_versions, {:projects => [:settings, :add_version], :versions => [:edit, :destroy]}, :require => :member
  map.permission :manage_categories, {:projects => [:settings, :add_issue_category], :issue_categories => [:edit, :destroy]}, :require => :member
  
  # Issues
  map.permission :view_issues, {:projects => [:list_issues, :export_issues_csv, :export_issues_pdf], 
                                :issues => [:show, :export_pdf],
                                :queries => :index,
                                :reports => :issue_report}, :public => true                    
  map.permission :add_issues, {:projects => :add_issue}, :require => :loggedin
  map.permission :edit_issues, {:issues => [:edit, :destroy_attachment]}, :require => :loggedin
  map.permission :manage_issue_relations, {:issue_relations => [:new, :destroy]}, :require => :loggedin
  map.permission :add_issue_notes, {:issues => :add_note}, :require => :loggedin
  map.permission :change_issue_status, {:issues => :change_status}, :require => :loggedin
  map.permission :move_issues, {:projects => :move_issues}, :require => :loggedin
  map.permission :delete_issues, {:issues => :destroy}, :require => :member
  # Queries
  map.permission :manage_pulic_queries, {:queries => [:new, :edit, :destroy]}, :require => :member
  map.permission :save_queries, {:queries => [:new, :edit, :destroy]}, :require => :loggedin
  # Gantt & calendar
  map.permission :view_gantt, :projects => :gantt
  map.permission :view_calendar, :projects => :calendar
  # Time tracking
  map.permission :log_time, {:timelog => :edit}, :require => :loggedin
  map.permission :view_time_entries, :timelog => [:details, :report]
  # News
  map.permission :view_news, {:projects => :list_news, :news => :show}, :public => true
  map.permission :manage_news, {:projects => :add_news, :news => [:edit, :destroy, :destroy_comment]}, :require => :member
  map.permission :comment_news, {:news => :add_comment}, :require => :loggedin
  # Documents
  map.permission :view_documents, :projects => :list_documents, :documents => [:show, :download]
  map.permission :manage_documents, {:projects => :add_document, :documents => [:edit, :destroy, :add_attachment, :destroy_attachment]}, :require => :loggedin
  # Wiki
  map.permission :view_wiki_pages, :wiki => [:index, :history, :diff, :special]
  map.permission :edit_wiki_pages, :wiki => [:edit, :preview, :add_attachment, :destroy_attachment]
  map.permission :delete_wiki_pages, {:wiki => :destroy}, :require => :member
  # Message boards
  map.permission :view_messages, {:boards => [:index, :show], :messages => [:show]}, :public => true
  map.permission :add_messages, {:messages => [:new, :reply]}, :require => :loggedin
  map.permission :manage_boards, {:boards => [:new, :edit, :destroy]}, :require => :member
  # Files
  map.permission :view_files, :projects => :list_files, :versions => :download
  map.permission :manage_files, {:projects => :add_file, :versions => :destroy_file}, :require => :loggedin
  # Repository
  map.permission :browse_repository, :repositories => [:show, :browse, :entry, :changes, :diff, :stats, :graph]
  map.permission :view_changesets, :repositories => [:show, :revisions, :revision]
end

# Project menu configuration
Redmine::MenuManager.map :project_menu do |menu|
  menu.push :label_overview, :controller => 'projects', :action => 'show'
  menu.push :label_calendar, :controller => 'projects', :action => 'calendar'
  menu.push :label_gantt, :controller => 'projects', :action => 'gantt'
  menu.push :label_issue_plural, :controller => 'projects', :action => 'list_issues'
  menu.push :label_report_plural, :controller => 'reports', :action => 'issue_report'
  menu.push :label_activity, :controller => 'projects', :action => 'activity'
  menu.push :label_news_plural, :controller => 'projects', :action => 'list_news'
  menu.push :label_change_log, :controller => 'projects', :action => 'changelog'
  menu.push :label_roadmap, :controller => 'projects', :action => 'roadmap'
  menu.push :label_document_plural, :controller => 'projects', :action => 'list_documents'
  menu.push :label_wiki, { :controller => 'wiki', :action => 'index', :page => nil }, :if => Proc.new { |p| p.wiki && !p.wiki.new_record? }
  menu.push :label_board_plural, { :controller => 'boards', :action => 'index', :id => nil }, :param => :project_id, :if => Proc.new { |p| p.boards.any? }
  menu.push :label_attachment_plural, :controller => 'projects', :action => 'list_files'
  menu.push :label_search, :controller => 'search', :action => 'index'
  menu.push :label_repository, { :controller => 'repositories', :action => 'show' }, :if => Proc.new { |p| p.repository && !p.repository.new_record? }
  menu.push :label_settings, :controller => 'projects', :action => 'settings'
end
stable30'>backport/49581/stable30 Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
summaryrefslogtreecommitdiffstats
path: root/settings/l10n/lb.json
blob: 99510c775019edfeb998dcc38a7afbf133d4984b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{ "translations": {
    "Cron" : "Cron",
    "Log" : "Log",
    "Authentication error" : "Authentifikatioun's Fehler",
    "Language changed" : "Sprooch huet geännert",
    "Invalid request" : "Ongülteg Requête",
    "Admins can't remove themself from the admin group" : "Admins kennen sech selwer net aus enger Admin Group läschen.",
    "Unable to add user to group %s" : "Onmeiglech User an Grupp ze sätzen %s",
    "Wrong password" : "Falscht Passwuert",
    "Enabled" : "Aktivéiert",
    "Saved" : "Gespäichert",
    "Email sent" : "Email geschéckt",
    "Email saved" : "E-mail gespäichert",
    "All" : "All",
    "Disable" : "Ofschalten",
    "Enable" : "Aschalten",
    "Delete" : "Läschen",
    "Groups" : "Gruppen",
    "undo" : "réckgängeg man",
    "never" : "ni",
    "__language_name__" : "__language_name__",
    "Login" : "Login",
    "Open documentation" : "Dokumentatioun opmaachen",
    "Allow apps to use the Share API" : "Erlab Apps d'Share API ze benotzen",
    "Allow resharing" : "Resharing erlaben",
    "Authentication required" : "Authentifizéierung néideg",
    "Server address" : "Server Adress",
    "More" : "Méi",
    "Less" : "Manner",
    "by" : "vun",
    "Cheers!" : "Prost!",
    "Desktop client" : "Desktop-Programm",
    "Android app" : "Android-App",
    "iOS app" : "iOS-App",
    "Password" : "Passwuert",
    "Unable to change your password" : "Konnt däin Passwuert net änneren",
    "Current password" : "Momentan 't Passwuert",
    "New password" : "Neit Passwuert",
    "Change password" : "Passwuert änneren",
    "Email" : "Email",
    "Your email address" : "Deng Email Adress",
    "Cancel" : "Ofbriechen",
    "Language" : "Sprooch",
    "Help translate" : "Hëllef iwwersetzen",
    "Username" : "Benotzernumm",
    "Create" : "Erstellen",
    "Group" : "Grupp",
    "Default Quota" : "Standard Quota",
    "Other" : "Aner",
    "Quota" : "Quota"
},"pluralForm" :"nplurals=2; plural=(n != 1);"
}