Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03f6e25ca3 | ||
|
|
56b12b289f | ||
|
|
c99eef1aff | ||
|
|
ed891e2733 | ||
|
|
4620b8b8db | ||
|
|
98eb2edd25 | ||
|
|
ed7318fb8d | ||
|
|
5a1a2f5855 | ||
|
|
f1314278d5 | ||
|
|
3a8b872a09 | ||
|
|
56290979fc | ||
|
|
6e0fb415a7 |
@@ -147,15 +147,16 @@ class MyController < ApplicationController
|
|||||||
# params[:block] : id of the block to add
|
# params[:block] : id of the block to add
|
||||||
def add_block
|
def add_block
|
||||||
block = params[:block].to_s.underscore
|
block = params[:block].to_s.underscore
|
||||||
(render :nothing => true; return) unless block && (BLOCKS.keys.include? block)
|
if block.present? && BLOCKS.key?(block)
|
||||||
@user = User.current
|
@user = User.current
|
||||||
layout = @user.pref[:my_page_layout] || {}
|
layout = @user.pref[:my_page_layout] || {}
|
||||||
# remove if already present in a group
|
# remove if already present in a group
|
||||||
%w(top left right).each {|f| (layout[f] ||= []).delete block }
|
%w(top left right).each {|f| (layout[f] ||= []).delete block }
|
||||||
# add it on top
|
# add it on top
|
||||||
layout['top'].unshift block
|
layout['top'].unshift block
|
||||||
@user.pref[:my_page_layout] = layout
|
@user.pref[:my_page_layout] = layout
|
||||||
@user.pref.save
|
@user.pref.save
|
||||||
|
end
|
||||||
redirect_to :action => 'page_layout'
|
redirect_to :action => 'page_layout'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -597,8 +597,9 @@ module ApplicationHelper
|
|||||||
|
|
||||||
def parse_inline_attachments(text, project, obj, attr, only_path, options)
|
def parse_inline_attachments(text, project, obj, attr, only_path, options)
|
||||||
# when using an image link, try to use an attachment, if possible
|
# when using an image link, try to use an attachment, if possible
|
||||||
if options[:attachments] || (obj && obj.respond_to?(:attachments))
|
attachments = options[:attachments] || []
|
||||||
attachments = options[:attachments] || obj.attachments
|
attachments += obj.attachments if obj.respond_to?(:attachments)
|
||||||
|
if attachments.present?
|
||||||
text.gsub!(/src="([^\/"]+\.(bmp|gif|jpg|jpe|jpeg|png))"(\s+alt="([^"]*)")?/i) do |m|
|
text.gsub!(/src="([^\/"]+\.(bmp|gif|jpg|jpe|jpeg|png))"(\s+alt="([^"]*)")?/i) do |m|
|
||||||
filename, ext, alt, alttext = $1.downcase, $2, $3, $4
|
filename, ext, alt, alttext = $1.downcase, $2, $3, $4
|
||||||
# search for the picture in attachments
|
# search for the picture in attachments
|
||||||
@@ -819,7 +820,7 @@ module ApplicationHelper
|
|||||||
end
|
end
|
||||||
when 'attachment'
|
when 'attachment'
|
||||||
attachments = options[:attachments] || (obj && obj.respond_to?(:attachments) ? obj.attachments : nil)
|
attachments = options[:attachments] || (obj && obj.respond_to?(:attachments) ? obj.attachments : nil)
|
||||||
if attachments && attachment = attachments.detect {|a| a.filename == name }
|
if attachments && attachment = Attachment.latest_attach(attachments, name)
|
||||||
link = link_to h(attachment.filename), {:only_path => only_path, :controller => 'attachments', :action => 'download', :id => attachment},
|
link = link_to h(attachment.filename), {:only_path => only_path, :controller => 'attachments', :action => 'download', :id => attachment},
|
||||||
:class => 'attachment'
|
:class => 'attachment'
|
||||||
end
|
end
|
||||||
|
|||||||
+1
-1
@@ -418,7 +418,7 @@ class Issue < ActiveRecord::Base
|
|||||||
|
|
||||||
if attrs['parent_issue_id'].present?
|
if attrs['parent_issue_id'].present?
|
||||||
s = attrs['parent_issue_id'].to_s
|
s = attrs['parent_issue_id'].to_s
|
||||||
unless (m = s.match(%r{\A#?(\d+)\z})) && Issue.visible(user).exists?(m[1])
|
unless (m = s.match(%r{\A#?(\d+)\z})) && (m[1] == parent_id.to_s || Issue.visible(user).exists?(m[1]))
|
||||||
@invalid_parent_issue_id = attrs.delete('parent_issue_id')
|
@invalid_parent_issue_id = attrs.delete('parent_issue_id')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if @issue.safe_attribute? 'subject' %>
|
<% if @issue.safe_attribute? 'subject' %>
|
||||||
<p><%= f.text_field :subject, :size => 80, :required => true %></p>
|
<p><%= f.text_field :subject, :size => 80, :maxlength => 255, :required => true %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if @issue.safe_attribute? 'description' %>
|
<% if @issue.safe_attribute? 'description' %>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<p><%= f.text_field :issue_id, :size => 6 %> <em><%= h("#{@time_entry.issue.tracker.name} ##{@time_entry.issue.id}: #{@time_entry.issue.subject}") if @time_entry.issue %></em></p>
|
<p><%= f.text_field :issue_id, :size => 6 %> <em><%= h("#{@time_entry.issue.tracker.name} ##{@time_entry.issue.id}: #{@time_entry.issue.subject}") if @time_entry.issue %></em></p>
|
||||||
<p><%= f.text_field :spent_on, :size => 10, :required => true %><%= calendar_for('time_entry_spent_on') %></p>
|
<p><%= f.text_field :spent_on, :size => 10, :required => true %><%= calendar_for('time_entry_spent_on') %></p>
|
||||||
<p><%= f.text_field :hours, :size => 6, :required => true %></p>
|
<p><%= f.text_field :hours, :size => 6, :required => true %></p>
|
||||||
<p><%= f.text_field :comments, :size => 100 %></p>
|
<p><%= f.text_field :comments, :size => 100, :maxlength => 255 %></p>
|
||||||
<p><%= f.select :activity_id, activity_collection_for_select_options(@time_entry), :required => true %></p>
|
<p><%= f.select :activity_id, activity_collection_for_select_options(@time_entry), :required => true %></p>
|
||||||
<% @time_entry.custom_field_values.each do |value| %>
|
<% @time_entry.custom_field_values.each do |value| %>
|
||||||
<p><%= custom_field_tag_with_label :time_entry, value %></p>
|
<p><%= custom_field_tag_with_label :time_entry, value %></p>
|
||||||
|
|||||||
+32
-32
@@ -923,47 +923,47 @@ sr-YU:
|
|||||||
project_module_calendar: Kalendar
|
project_module_calendar: Kalendar
|
||||||
button_edit_associated_wikipage: "Edit associated Wiki page: %{page_title}"
|
button_edit_associated_wikipage: "Edit associated Wiki page: %{page_title}"
|
||||||
field_text: Text field
|
field_text: Text field
|
||||||
label_user_mail_option_only_owner: Only for things I am the owner of
|
label_user_mail_option_only_owner: Samo za stvari koje posedujem
|
||||||
setting_default_notification_option: Default notification option
|
setting_default_notification_option: Podrazumevana opcija za notifikaciju
|
||||||
label_user_mail_option_only_my_events: Only for things I watch or I'm involved in
|
label_user_mail_option_only_my_events: Za dogadjaje koje pratim ili sam u njih uključen
|
||||||
label_user_mail_option_only_assigned: Only for things I am assigned to
|
label_user_mail_option_only_assigned: Za dogadjaje koji su mi dodeljeni lično
|
||||||
label_user_mail_option_none: No events
|
label_user_mail_option_none: Bez obaveštenja
|
||||||
field_member_of_group: Assignee's group
|
field_member_of_group: Assignee's group
|
||||||
field_assigned_to_role: Assignee's role
|
field_assigned_to_role: Assignee's role
|
||||||
notice_not_authorized_archived_project: The project you're trying to access has been archived.
|
notice_not_authorized_archived_project: Projekat kome pokušavate da pristupite je arhiviran
|
||||||
label_principal_search: "Search for user or group:"
|
label_principal_search: "Traži korisnike ili grupe:"
|
||||||
label_user_search: "Search for user:"
|
label_user_search: "Traži korisnike:"
|
||||||
field_visible: Visible
|
field_visible: Vidljivo
|
||||||
setting_emails_header: Emails header
|
setting_emails_header: Email zaglavlje
|
||||||
setting_commit_logtime_activity_id: Activity for logged time
|
setting_commit_logtime_activity_id: Activity for logged time
|
||||||
text_time_logged_by_changeset: Applied in changeset %{value}.
|
text_time_logged_by_changeset: Applied in changeset %{value}.
|
||||||
setting_commit_logtime_enabled: Enable time logging
|
setting_commit_logtime_enabled: Omogući praćenje vremena
|
||||||
notice_gantt_chart_truncated: The chart was truncated because it exceeds the maximum number of items that can be displayed (%{max})
|
notice_gantt_chart_truncated: The chart was truncated because it exceeds the maximum number of items that can be displayed (%{max})
|
||||||
setting_gantt_items_limit: Maximum number of items displayed on the gantt chart
|
setting_gantt_items_limit: Maksimalan broj stavki na gant grafiku
|
||||||
field_warn_on_leaving_unsaved: Warn me when leaving a page with unsaved text
|
field_warn_on_leaving_unsaved: Upozori me ako napuštam stranu sa tekstom koji nije snimljen
|
||||||
text_warn_on_leaving_unsaved: The current page contains unsaved text that will be lost if you leave this page.
|
text_warn_on_leaving_unsaved: Strana sadrži tekst koji nije snimljen i biće izgubljen ako je napustite.
|
||||||
label_my_queries: My custom queries
|
label_my_queries: My custom queries
|
||||||
text_journal_changed_no_detail: "%{label} updated"
|
text_journal_changed_no_detail: "%{label} ažuriran"
|
||||||
label_news_comment_added: Comment added to a news
|
label_news_comment_added: Komentar dodat u novosti
|
||||||
button_expand_all: Expand all
|
button_expand_all: Proširi sve
|
||||||
button_collapse_all: Collapse all
|
button_collapse_all: Zatvori sve
|
||||||
label_additional_workflow_transitions_for_assignee: Additional transitions allowed when the user is the assignee
|
label_additional_workflow_transitions_for_assignee: Additional transitions allowed when the user is the assignee
|
||||||
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
|
label_additional_workflow_transitions_for_author: Additional transitions allowed when the user is the author
|
||||||
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
|
label_bulk_edit_selected_time_entries: Bulk edit selected time entries
|
||||||
text_time_entries_destroy_confirmation: Are you sure you want to delete the selected time entr(y/ies)?
|
text_time_entries_destroy_confirmation: Da li ste sigurni da želite da obrišete selektovane stavke ?
|
||||||
label_role_anonymous: Anonymous
|
label_role_anonymous: Anonimus
|
||||||
label_role_non_member: Non member
|
label_role_non_member: Nije član
|
||||||
label_issue_note_added: Note added
|
label_issue_note_added: Nota dodana
|
||||||
label_issue_status_updated: Status updated
|
label_issue_status_updated: Status ažuriran
|
||||||
label_issue_priority_updated: Priority updated
|
label_issue_priority_updated: Prioritet ažuriran
|
||||||
label_issues_visibility_own: Issues created by or assigned to the user
|
label_issues_visibility_own: Problem kreiran od strane ili je dodeljen korisniku
|
||||||
field_issues_visibility: Issues visibility
|
field_issues_visibility: Vidljivost problema
|
||||||
label_issues_visibility_all: All issues
|
label_issues_visibility_all: Svi problemi
|
||||||
permission_set_own_issues_private: Set own issues public or private
|
permission_set_own_issues_private: Podesi sopstveni problem kao privatan ili javan
|
||||||
field_is_private: Private
|
field_is_private: Privatno
|
||||||
permission_set_issues_private: Set issues public or private
|
permission_set_issues_private: Podesi problem kao privatan ili javan
|
||||||
label_issues_visibility_public: All non private issues
|
label_issues_visibility_public: Svi javni problemi
|
||||||
text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
|
text_issues_destroy_descendants_confirmation: Ova operacija će takođe obrisati %{count} podzadataka.
|
||||||
field_commit_logs_encoding: Kodiranje izvršnih poruka
|
field_commit_logs_encoding: Kodiranje izvršnih poruka
|
||||||
field_scm_path_encoding: Path encoding
|
field_scm_path_encoding: Path encoding
|
||||||
text_scm_path_encoding_note: "Default: UTF-8"
|
text_scm_path_encoding_note: "Default: UTF-8"
|
||||||
|
|||||||
+45
-44
@@ -79,8 +79,8 @@ sv:
|
|||||||
one: "ungefär en timme"
|
one: "ungefär en timme"
|
||||||
other: "ungefär %{count} timmar"
|
other: "ungefär %{count} timmar"
|
||||||
x_hours:
|
x_hours:
|
||||||
one: "1 hour"
|
one: "1 timme"
|
||||||
other: "%{count} hours"
|
other: "%{count} timmar"
|
||||||
x_days:
|
x_days:
|
||||||
one: "en dag"
|
one: "en dag"
|
||||||
other: "%{count} dagar"
|
other: "%{count} dagar"
|
||||||
@@ -219,6 +219,7 @@ sv:
|
|||||||
notice_issue_successful_create: Ärende %{id} skapades.
|
notice_issue_successful_create: Ärende %{id} skapades.
|
||||||
notice_issue_update_conflict: Detta ärende har uppdaterats av en annan användare samtidigt som du redigerade det.
|
notice_issue_update_conflict: Detta ärende har uppdaterats av en annan användare samtidigt som du redigerade det.
|
||||||
notice_account_deleted: Ditt konto har avslutats permanent.
|
notice_account_deleted: Ditt konto har avslutats permanent.
|
||||||
|
notice_user_successful_create: "Användare %{id} skapad."
|
||||||
|
|
||||||
error_can_t_load_default_data: "Standardkonfiguration gick inte att läsa in: %{value}"
|
error_can_t_load_default_data: "Standardkonfiguration gick inte att läsa in: %{value}"
|
||||||
error_scm_not_found: "Inlägg och/eller revision finns inte i detta versionsarkiv."
|
error_scm_not_found: "Inlägg och/eller revision finns inte i detta versionsarkiv."
|
||||||
@@ -239,6 +240,7 @@ sv:
|
|||||||
error_unable_delete_issue_status: 'Ärendestatus kunde inte tas bort'
|
error_unable_delete_issue_status: 'Ärendestatus kunde inte tas bort'
|
||||||
error_unable_to_connect: "Kan inte ansluta (%{value})"
|
error_unable_to_connect: "Kan inte ansluta (%{value})"
|
||||||
error_attachment_too_big: Denna fil kan inte laddas upp eftersom den överstiger maximalt tillåten filstorlek (%{max_size})
|
error_attachment_too_big: Denna fil kan inte laddas upp eftersom den överstiger maximalt tillåten filstorlek (%{max_size})
|
||||||
|
error_session_expired: "Din session har gått ut. Vänligen logga in på nytt."
|
||||||
warning_attachments_not_saved: "%{count} fil(er) kunde inte sparas."
|
warning_attachments_not_saved: "%{count} fil(er) kunde inte sparas."
|
||||||
|
|
||||||
mail_subject_lost_password: "Ditt %{value} lösenord"
|
mail_subject_lost_password: "Ditt %{value} lösenord"
|
||||||
@@ -368,6 +370,10 @@ sv:
|
|||||||
field_repository_is_default: Huvudarkiv
|
field_repository_is_default: Huvudarkiv
|
||||||
field_multiple: Flera värden
|
field_multiple: Flera värden
|
||||||
field_auth_source_ldap_filter: LDAP-filter
|
field_auth_source_ldap_filter: LDAP-filter
|
||||||
|
field_core_fields: Standardfält
|
||||||
|
field_timeout: "Timeout (i sekunder)"
|
||||||
|
field_board_parent: Förälderforum
|
||||||
|
field_private_notes: Privata anteckningar
|
||||||
|
|
||||||
setting_app_title: Applikationsrubrik
|
setting_app_title: Applikationsrubrik
|
||||||
setting_app_subtitle: Applikationsunderrubrik
|
setting_app_subtitle: Applikationsunderrubrik
|
||||||
@@ -392,6 +398,7 @@ sv:
|
|||||||
setting_autologin: Automatisk inloggning
|
setting_autologin: Automatisk inloggning
|
||||||
setting_date_format: Datumformat
|
setting_date_format: Datumformat
|
||||||
setting_time_format: Tidsformat
|
setting_time_format: Tidsformat
|
||||||
|
setting_cross_project_subtasks: Tillåt underaktiviteter mellan projekt
|
||||||
setting_cross_project_issue_relations: Tillåt ärenderelationer mellan projekt
|
setting_cross_project_issue_relations: Tillåt ärenderelationer mellan projekt
|
||||||
setting_issue_list_default_columns: Standardkolumner i ärendelistan
|
setting_issue_list_default_columns: Standardkolumner i ärendelistan
|
||||||
setting_repositories_encodings: Encoding för bilagor och versionsarkiv
|
setting_repositories_encodings: Encoding för bilagor och versionsarkiv
|
||||||
@@ -430,10 +437,16 @@ sv:
|
|||||||
setting_default_issue_start_date_to_creation_date: Använd dagens datum som startdatum för nya ärenden
|
setting_default_issue_start_date_to_creation_date: Använd dagens datum som startdatum för nya ärenden
|
||||||
setting_commit_cross_project_ref: Tillåt ärende i alla de andra projekten att bli refererade och fixade
|
setting_commit_cross_project_ref: Tillåt ärende i alla de andra projekten att bli refererade och fixade
|
||||||
setting_unsubscribe: Tillåt användare att avsluta prenumereration
|
setting_unsubscribe: Tillåt användare att avsluta prenumereration
|
||||||
|
setting_session_lifetime: Maximal sessionslivslängd
|
||||||
|
setting_session_timeout: Tidsgräns för sessionsinaktivitet
|
||||||
|
setting_thumbnails_enabled: Visa miniatyrbilder av bilagor
|
||||||
|
setting_thumbnails_size: Storlek på miniatyrbilder (i pixlar)
|
||||||
|
setting_non_working_week_days: Lediga dagar
|
||||||
|
|
||||||
permission_add_project: Skapa projekt
|
permission_add_project: Skapa projekt
|
||||||
permission_add_subprojects: Skapa underprojekt
|
permission_add_subprojects: Skapa underprojekt
|
||||||
permission_edit_project: Ändra projekt
|
permission_edit_project: Ändra projekt
|
||||||
|
permission_close_project: Stänga / återöppna projektet
|
||||||
permission_select_project_modules: Välja projektmoduler
|
permission_select_project_modules: Välja projektmoduler
|
||||||
permission_manage_members: Hantera medlemmar
|
permission_manage_members: Hantera medlemmar
|
||||||
permission_manage_project_activities: Hantera projektaktiviteter
|
permission_manage_project_activities: Hantera projektaktiviteter
|
||||||
@@ -448,6 +461,8 @@ sv:
|
|||||||
permission_add_issue_notes: Lägga till ärendenotering
|
permission_add_issue_notes: Lägga till ärendenotering
|
||||||
permission_edit_issue_notes: Ändra ärendenoteringar
|
permission_edit_issue_notes: Ändra ärendenoteringar
|
||||||
permission_edit_own_issue_notes: Ändra egna ärendenoteringar
|
permission_edit_own_issue_notes: Ändra egna ärendenoteringar
|
||||||
|
permission_view_private_notes: Visa privata anteckningar
|
||||||
|
permission_set_notes_private: Ställa in anteckningar som privata
|
||||||
permission_move_issues: Flytta ärenden
|
permission_move_issues: Flytta ärenden
|
||||||
permission_delete_issues: Ta bort ärenden
|
permission_delete_issues: Ta bort ärenden
|
||||||
permission_manage_public_queries: Hantera publika frågor
|
permission_manage_public_queries: Hantera publika frågor
|
||||||
@@ -682,6 +697,8 @@ sv:
|
|||||||
label_not_equals: är inte
|
label_not_equals: är inte
|
||||||
label_in_less_than: om mindre än
|
label_in_less_than: om mindre än
|
||||||
label_in_more_than: om mer än
|
label_in_more_than: om mer än
|
||||||
|
label_in_the_next_days: under kommande
|
||||||
|
label_in_the_past_days: under föregående
|
||||||
label_greater_or_equal: '>='
|
label_greater_or_equal: '>='
|
||||||
label_less_or_equal: '<='
|
label_less_or_equal: '<='
|
||||||
label_between: mellan
|
label_between: mellan
|
||||||
@@ -691,6 +708,7 @@ sv:
|
|||||||
label_yesterday: igår
|
label_yesterday: igår
|
||||||
label_this_week: denna vecka
|
label_this_week: denna vecka
|
||||||
label_last_week: senaste veckan
|
label_last_week: senaste veckan
|
||||||
|
label_last_n_weeks: "senaste %{count} veckorna"
|
||||||
label_last_n_days: "senaste %{count} dagarna"
|
label_last_n_days: "senaste %{count} dagarna"
|
||||||
label_this_month: denna månad
|
label_this_month: denna månad
|
||||||
label_last_month: senaste månaden
|
label_last_month: senaste månaden
|
||||||
@@ -701,6 +719,9 @@ sv:
|
|||||||
label_ago: dagar sedan
|
label_ago: dagar sedan
|
||||||
label_contains: innehåller
|
label_contains: innehåller
|
||||||
label_not_contains: innehåller inte
|
label_not_contains: innehåller inte
|
||||||
|
label_any_issues_in_project: några ärenden i projektet
|
||||||
|
label_any_issues_not_in_project: några ärenden utanför projektet
|
||||||
|
label_no_issues_in_project: inga ärenden i projektet
|
||||||
label_day_plural: dagar
|
label_day_plural: dagar
|
||||||
label_repository: Versionsarkiv
|
label_repository: Versionsarkiv
|
||||||
label_repository_new: Nytt versionsarkiv
|
label_repository_new: Nytt versionsarkiv
|
||||||
@@ -776,6 +797,8 @@ sv:
|
|||||||
label_blocked_by: blockerad av
|
label_blocked_by: blockerad av
|
||||||
label_precedes: kommer före
|
label_precedes: kommer före
|
||||||
label_follows: följer
|
label_follows: följer
|
||||||
|
label_copied_to: Kopierad till
|
||||||
|
label_copied_from: Kopierad från
|
||||||
label_end_to_start: slut till start
|
label_end_to_start: slut till start
|
||||||
label_end_to_end: slut till slut
|
label_end_to_end: slut till slut
|
||||||
label_start_to_start: start till start
|
label_start_to_start: start till start
|
||||||
@@ -889,9 +912,20 @@ sv:
|
|||||||
label_child_revision: Barn
|
label_child_revision: Barn
|
||||||
label_export_options: "%{export_format} exportalternativ"
|
label_export_options: "%{export_format} exportalternativ"
|
||||||
label_copy_attachments: Kopiera bilagor
|
label_copy_attachments: Kopiera bilagor
|
||||||
|
label_copy_subtasks: Kopiera underaktiviteter
|
||||||
label_item_position: "%{position}/%{count}"
|
label_item_position: "%{position}/%{count}"
|
||||||
label_completed_versions: Klara versioner
|
label_completed_versions: Klara versioner
|
||||||
label_search_for_watchers: Sök efter bevakare att lägga till
|
label_search_for_watchers: Sök efter bevakare att lägga till
|
||||||
|
label_session_expiration: Sessionsutgång
|
||||||
|
label_show_closed_projects: Visa stängda projekt
|
||||||
|
label_status_transitions: Statusövergångar
|
||||||
|
label_fields_permissions: Fältbehörigheter
|
||||||
|
label_readonly: Skrivskyddad
|
||||||
|
label_required: Nödvändig
|
||||||
|
label_attribute_of_project: Projektets %{name}
|
||||||
|
label_attribute_of_author: Författarens %{name}
|
||||||
|
label_attribute_of_assigned_to: Tilldelads %{name}
|
||||||
|
label_attribute_of_fixed_version: Målversionens %{name}
|
||||||
|
|
||||||
button_login: Logga in
|
button_login: Logga in
|
||||||
button_submit: Skicka
|
button_submit: Skicka
|
||||||
@@ -939,14 +973,21 @@ sv:
|
|||||||
button_quote: Citera
|
button_quote: Citera
|
||||||
button_duplicate: Duplicera
|
button_duplicate: Duplicera
|
||||||
button_show: Visa
|
button_show: Visa
|
||||||
|
button_hide: Göm
|
||||||
button_edit_section: Redigera denna sektion
|
button_edit_section: Redigera denna sektion
|
||||||
button_export: Exportera
|
button_export: Exportera
|
||||||
button_delete_my_account: Ta bort mitt konto
|
button_delete_my_account: Ta bort mitt konto
|
||||||
|
button_close: Stäng
|
||||||
|
button_reopen: Återöppna
|
||||||
|
|
||||||
status_active: aktiv
|
status_active: aktiv
|
||||||
status_registered: registrerad
|
status_registered: registrerad
|
||||||
status_locked: låst
|
status_locked: låst
|
||||||
|
|
||||||
|
project_status_active: aktiv
|
||||||
|
project_status_closed: stängd
|
||||||
|
project_status_archived: arkiverad
|
||||||
|
|
||||||
version_status_open: öppen
|
version_status_open: öppen
|
||||||
version_status_locked: låst
|
version_status_locked: låst
|
||||||
version_status_closed: stängd
|
version_status_closed: stängd
|
||||||
@@ -1026,6 +1067,8 @@ sv:
|
|||||||
text_issue_conflict_resolution_add_notes: Lägg till mina anteckningar och kasta mina andra ändringar
|
text_issue_conflict_resolution_add_notes: Lägg till mina anteckningar och kasta mina andra ändringar
|
||||||
text_issue_conflict_resolution_cancel: Kasta alla mina ändringar och visa igen %{link}
|
text_issue_conflict_resolution_cancel: Kasta alla mina ändringar och visa igen %{link}
|
||||||
text_account_destroy_confirmation: "Är du säker på att du vill fortsätta?\nDitt konto kommer tas bort permanent, utan möjlighet att återaktivera det."
|
text_account_destroy_confirmation: "Är du säker på att du vill fortsätta?\nDitt konto kommer tas bort permanent, utan möjlighet att återaktivera det."
|
||||||
|
text_session_expiration_settings: "Varning: ändring av dessa inställningar kan få alla nuvarande sessioner, inklusive din egen, att gå ut."
|
||||||
|
text_project_closed: Detta projekt är stängt och skrivskyddat.
|
||||||
|
|
||||||
default_role_manager: Projektledare
|
default_role_manager: Projektledare
|
||||||
default_role_developer: Utvecklare
|
default_role_developer: Utvecklare
|
||||||
@@ -1071,51 +1114,9 @@ sv:
|
|||||||
description_date_range_interval: Ange intervall genom att välja start- och slutdatum
|
description_date_range_interval: Ange intervall genom att välja start- och slutdatum
|
||||||
description_date_from: Ange startdatum
|
description_date_from: Ange startdatum
|
||||||
description_date_to: Ange slutdatum
|
description_date_to: Ange slutdatum
|
||||||
error_session_expired: Your session has expired. Please login again.
|
|
||||||
text_session_expiration_settings: "Warning: changing these settings may expire the current sessions including yours."
|
|
||||||
setting_session_lifetime: Session maximum lifetime
|
|
||||||
setting_session_timeout: Session inactivity timeout
|
|
||||||
label_session_expiration: Session expiration
|
|
||||||
permission_close_project: Close / reopen the project
|
|
||||||
label_show_closed_projects: View closed projects
|
|
||||||
button_close: Close
|
|
||||||
button_reopen: Reopen
|
|
||||||
project_status_active: active
|
|
||||||
project_status_closed: closed
|
|
||||||
project_status_archived: archived
|
|
||||||
text_project_closed: This project is closed and read-only.
|
|
||||||
notice_user_successful_create: User %{id} created.
|
|
||||||
field_core_fields: Standard fields
|
|
||||||
field_timeout: Timeout (in seconds)
|
|
||||||
setting_thumbnails_enabled: Display attachment thumbnails
|
|
||||||
setting_thumbnails_size: Thumbnails size (in pixels)
|
|
||||||
label_status_transitions: Status transitions
|
|
||||||
label_fields_permissions: Fields permissions
|
|
||||||
label_readonly: Read-only
|
|
||||||
label_required: Required
|
|
||||||
text_repository_identifier_info: Ändast gemener (a-z), siffror, streck och understreck är tillåtna.<br />När identifieraren sparats kan den inte ändras.
|
text_repository_identifier_info: Ändast gemener (a-z), siffror, streck och understreck är tillåtna.<br />När identifieraren sparats kan den inte ändras.
|
||||||
field_board_parent: Parent forum
|
|
||||||
label_attribute_of_project: Project's %{name}
|
|
||||||
label_attribute_of_author: Author's %{name}
|
|
||||||
label_attribute_of_assigned_to: Assignee's %{name}
|
|
||||||
label_attribute_of_fixed_version: Target version's %{name}
|
|
||||||
label_copy_subtasks: Copy subtasks
|
|
||||||
label_copied_to: copied to
|
|
||||||
label_copied_from: copied from
|
|
||||||
label_any_issues_in_project: any issues in project
|
|
||||||
label_any_issues_not_in_project: any issues not in project
|
|
||||||
field_private_notes: Private notes
|
|
||||||
permission_view_private_notes: View private notes
|
|
||||||
permission_set_notes_private: Set notes as private
|
|
||||||
label_no_issues_in_project: no issues in project
|
|
||||||
label_any: alla
|
label_any: alla
|
||||||
label_last_n_weeks: last %{count} weeks
|
|
||||||
setting_cross_project_subtasks: Allow cross-project subtasks
|
|
||||||
label_cross_project_descendants: Med underprojekt
|
label_cross_project_descendants: Med underprojekt
|
||||||
label_cross_project_tree: Med projektträd
|
label_cross_project_tree: Med projektträd
|
||||||
label_cross_project_hierarchy: Med projekthierarki
|
label_cross_project_hierarchy: Med projekthierarki
|
||||||
label_cross_project_system: Med alla projekt
|
label_cross_project_system: Med alla projekt
|
||||||
button_hide: Hide
|
|
||||||
setting_non_working_week_days: Non-working days
|
|
||||||
label_in_the_next_days: in the next
|
|
||||||
label_in_the_past_days: in the past
|
|
||||||
|
|||||||
@@ -4,6 +4,20 @@ Redmine - project management software
|
|||||||
Copyright (C) 2006-2012 Jean-Philippe Lang
|
Copyright (C) 2006-2012 Jean-Philippe Lang
|
||||||
http://www.redmine.org/
|
http://www.redmine.org/
|
||||||
|
|
||||||
|
== 2013-01-20 v2.2.2
|
||||||
|
|
||||||
|
* Defect #7510: Link to attachment should return latest attachment
|
||||||
|
* Defect #9842: {{toc}} is not replaced by table of content when exporting wiki page to pdf
|
||||||
|
* Defect #12749: Plugins cannot route wiki page sub-path
|
||||||
|
* Defect #12799: Cannot edit a wiki section which title starts with a tab
|
||||||
|
* Defect #12801: Viewing the history of a wiki page with attachments raises an error
|
||||||
|
* Defect #12833: Input fields restricted on length should have maxlength parameter set
|
||||||
|
* Defect #12838: Blank page when clicking Add with no block selected on my page layout
|
||||||
|
* Defect #12851: "Parent task is invalid" while editing child issues by Role with restricted Issues Visibility
|
||||||
|
* Patch #12800: Serbian Latin translation patch (sr-YU.yml)
|
||||||
|
* Patch #12809: Swedish Translation for r11162
|
||||||
|
* Patch #12818: Minor swedish translation fix
|
||||||
|
|
||||||
== 2013-01-09 v2.2.1
|
== 2013-01-09 v2.2.1
|
||||||
|
|
||||||
* Upgrade to Rails 3.2.11
|
* Upgrade to Rails 3.2.11
|
||||||
|
|||||||
@@ -109,6 +109,13 @@ module Redmine
|
|||||||
RDMPdfEncoding::rdm_from_utf8(txt, l(:general_pdf_encoding))
|
RDMPdfEncoding::rdm_from_utf8(txt, l(:general_pdf_encoding))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def formatted_text(text)
|
||||||
|
html = Redmine::WikiFormatting.to_html(Setting.text_formatting, text)
|
||||||
|
# Strip {{toc}} tags
|
||||||
|
html.gsub!(/<p>\{\{([<>]?)toc\}\}<\/p>/i, '')
|
||||||
|
html
|
||||||
|
end
|
||||||
|
|
||||||
def RDMCell(w ,h=0, txt='', border=0, ln=0, align='', fill=0, link='')
|
def RDMCell(w ,h=0, txt='', border=0, ln=0, align='', fill=0, link='')
|
||||||
Cell(w, h, fix_text_encoding(txt), border, ln, align, fill, link)
|
Cell(w, h, fix_text_encoding(txt), border, ln, align, fill, link)
|
||||||
end
|
end
|
||||||
@@ -120,8 +127,7 @@ module Redmine
|
|||||||
def RDMwriteHTMLCell(w, h, x, y, txt='', attachments=[], border=0, ln=1, fill=0)
|
def RDMwriteHTMLCell(w, h, x, y, txt='', attachments=[], border=0, ln=1, fill=0)
|
||||||
@attachments = attachments
|
@attachments = attachments
|
||||||
writeHTMLCell(w, h, x, y,
|
writeHTMLCell(w, h, x, y,
|
||||||
fix_text_encoding(
|
fix_text_encoding(formatted_text(txt)),
|
||||||
Redmine::WikiFormatting.to_html(Setting.text_formatting, txt)),
|
|
||||||
border, ln, fill)
|
border, ln, fill)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ module Redmine
|
|||||||
module VERSION #:nodoc:
|
module VERSION #:nodoc:
|
||||||
MAJOR = 2
|
MAJOR = 2
|
||||||
MINOR = 2
|
MINOR = 2
|
||||||
TINY = 1
|
TINY = 2
|
||||||
|
|
||||||
# Branch values:
|
# Branch values:
|
||||||
# * official release: nil
|
# * official release: nil
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ module Redmine
|
|||||||
l = 1
|
l = 1
|
||||||
started = false
|
started = false
|
||||||
ended = false
|
ended = false
|
||||||
text.scan(/(((?:.*?)(\A|\r?\n\s*\r?\n))(h(\d+)(#{A}#{C})\.(?::(\S+))? (.*?)$)|.*)/m).each do |all, content, lf, heading, level|
|
text.scan(/(((?:.*?)(\A|\r?\n\s*\r?\n))(h(\d+)(#{A}#{C})\.(?::(\S+))?[ \t](.*?)$)|.*)/m).each do |all, content, lf, heading, level|
|
||||||
if heading.nil?
|
if heading.nil?
|
||||||
if ended
|
if ended
|
||||||
after << all
|
after << all
|
||||||
|
|||||||
+14
@@ -99,4 +99,18 @@ wiki_content_versions_006:
|
|||||||
version: 3
|
version: 3
|
||||||
author_id: 1
|
author_id: 1
|
||||||
comments:
|
comments:
|
||||||
|
wiki_content_versions_007:
|
||||||
|
data: |-
|
||||||
|
h1. Page with an inline image
|
||||||
|
|
||||||
|
This is an inline image:
|
||||||
|
|
||||||
|
!logo.gif!
|
||||||
|
updated_on: 2007-03-08 00:18:07 +01:00
|
||||||
|
page_id: 4
|
||||||
|
wiki_content_id: 4
|
||||||
|
id: 7
|
||||||
|
version: 1
|
||||||
|
author_id: 1
|
||||||
|
comments:
|
||||||
|
|
||||||
|
|||||||
@@ -2914,6 +2914,20 @@ class IssuesControllerTest < ActionController::TestCase
|
|||||||
assert_equal spent_hours_before + 2.5, issue.spent_hours
|
assert_equal spent_hours_before + 2.5, issue.spent_hours
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_put_update_should_preserve_parent_issue_even_if_not_visible
|
||||||
|
parent = Issue.generate!(:project_id => 1, :is_private => true)
|
||||||
|
issue = Issue.generate!(:parent_issue_id => parent.id)
|
||||||
|
assert !parent.visible?(User.find(3))
|
||||||
|
@request.session[:user_id] = 3
|
||||||
|
|
||||||
|
get :edit, :id => issue.id
|
||||||
|
assert_select 'input[name=?][value=?]', 'issue[parent_issue_id]', parent.id.to_s
|
||||||
|
|
||||||
|
put :update, :id => issue.id, :issue => {:subject => 'New subject', :parent_issue_id => parent.id.to_s}
|
||||||
|
assert_response 302
|
||||||
|
assert_equal parent, issue.parent
|
||||||
|
end
|
||||||
|
|
||||||
def test_put_update_with_attachment_only
|
def test_put_update_with_attachment_only
|
||||||
set_tmp_attachments_directory
|
set_tmp_attachments_directory
|
||||||
|
|
||||||
|
|||||||
@@ -187,6 +187,11 @@ class MyControllerTest < ActionController::TestCase
|
|||||||
assert User.find(2).pref[:my_page_layout]['top'].include?('issuesreportedbyme')
|
assert User.find(2).pref[:my_page_layout]['top'].include?('issuesreportedbyme')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_add_invalid_block_should_redirect
|
||||||
|
post :add_block, :block => 'invalid'
|
||||||
|
assert_redirected_to '/my/page_layout'
|
||||||
|
end
|
||||||
|
|
||||||
def test_remove_block
|
def test_remove_block
|
||||||
post :remove_block, :block => 'issuesassignedtome'
|
post :remove_block, :block => 'issuesassignedtome'
|
||||||
assert_redirected_to '/my/page_layout'
|
assert_redirected_to '/my/page_layout'
|
||||||
|
|||||||
@@ -75,6 +75,19 @@ class WikiControllerTest < ActionController::TestCase
|
|||||||
assert_select 'a[href=?]', '/projects/ecookbook/wiki/CookBook_documentation', :text => /Current version/
|
assert_select 'a[href=?]', '/projects/ecookbook/wiki/CookBook_documentation', :text => /Current version/
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_show_old_version_with_attachments
|
||||||
|
page = WikiPage.find(4)
|
||||||
|
assert page.attachments.any?
|
||||||
|
content = page.content
|
||||||
|
content.text = "update"
|
||||||
|
content.save!
|
||||||
|
|
||||||
|
get :show, :project_id => 'ecookbook', :id => page.title, :version => '1'
|
||||||
|
assert_kind_of WikiContent::Version, assigns(:content)
|
||||||
|
assert_response :success
|
||||||
|
assert_template 'show'
|
||||||
|
end
|
||||||
|
|
||||||
def test_show_old_version_without_permission_should_be_denied
|
def test_show_old_version_without_permission_should_be_denied
|
||||||
Role.anonymous.remove_permission! :view_wiki_edits
|
Role.anonymous.remove_permission! :view_wiki_edits
|
||||||
|
|
||||||
|
|||||||
@@ -118,4 +118,16 @@ module ObjectHelpers
|
|||||||
board.save!
|
board.save!
|
||||||
board
|
board
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def Attachment.generate!(attributes={})
|
||||||
|
@generated_filename ||= 'testfile0'
|
||||||
|
@generated_filename.succ!
|
||||||
|
attributes = attributes.dup
|
||||||
|
attachment = Attachment.new(attributes)
|
||||||
|
attachment.container ||= Issue.find(1)
|
||||||
|
attachment.author ||= User.find(2)
|
||||||
|
attachment.filename = @generated_filename if attachment.filename.blank?
|
||||||
|
attachment.save!
|
||||||
|
attachment
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -551,6 +551,15 @@ RAW
|
|||||||
to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text, :attachments => Issue.find(3).attachments), "#{text} failed" }
|
to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text, :attachments => Issue.find(3).attachments), "#{text} failed" }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_attachment_link_should_link_to_latest_attachment
|
||||||
|
set_tmp_attachments_directory
|
||||||
|
a1 = Attachment.generate!(:filename => "test.txt", :created_on => 1.hour.ago)
|
||||||
|
a2 = Attachment.generate!(:filename => "test.txt")
|
||||||
|
|
||||||
|
assert_equal %(<p><a href="/attachments/download/#{a2.id}" class="attachment">test.txt</a></p>),
|
||||||
|
textilizable('attachment:test.txt', :attachments => [a1, a2])
|
||||||
|
end
|
||||||
|
|
||||||
def test_wiki_links
|
def test_wiki_links
|
||||||
to_test = {
|
to_test = {
|
||||||
'[[CookBook documentation]]' => '<a href="/projects/ecookbook/wiki/CookBook_documentation" class="wiki-page">CookBook documentation</a>',
|
'[[CookBook documentation]]' => '<a href="/projects/ecookbook/wiki/CookBook_documentation" class="wiki-page">CookBook documentation</a>',
|
||||||
|
|||||||
@@ -419,6 +419,20 @@ STR
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_get_section_should_support_headings_starting_with_a_tab
|
||||||
|
text = <<-STR
|
||||||
|
h1.\tHeading 1
|
||||||
|
|
||||||
|
Content 1
|
||||||
|
|
||||||
|
h1. Heading 2
|
||||||
|
|
||||||
|
Content 2
|
||||||
|
STR
|
||||||
|
|
||||||
|
assert_match /\Ah1.\tHeading 1\s+Content 1\z/, @formatter.new(text).get_section(1).first
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def assert_html_output(to_test, expect_paragraph = true)
|
def assert_html_output(to_test, expect_paragraph = true)
|
||||||
|
|||||||
Reference in New Issue
Block a user