Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport] Make budgets translatable #3296

Merged
merged 12 commits into from
Feb 13, 2019
Merged

Conversation

microweb10
Copy link
Member

@microweb10 microweb10 commented Feb 13, 2019

References

This is a backport of 2 PRs AyuntamientoMadrid#1842 and AyuntamientoMadrid#1875

Objectives

Make participatory budgets translatable.

Visual Changes

BUDGETS

budgets

BUDGET PHASES

budget_phases

BUDGET GROUPS

budget_groups

BUDGET HEADINGS

budget_headings

Notes

closes #2737

Sluggable models can update the slug when updating new translations,
so we make sure the path is correct before using it.
Sometimes when updating a resource you are not redirected to the same
resource, you are maybe redirected to the parent resource and the
translations can be different. This condition will be checked after
visiting the edit_path again.
When more than one ckeditor field this line was raising the error:
"Ambiguous match, found 2 elements matching visible css"
spec/features/admin/budgets_spec.rb Show resolved Hide resolved
spec/features/admin/budget_groups_spec.rb Show resolved Hide resolved
spec/features/admin/budget_headings_spec.rb Show resolved Hide resolved
spec/models/budget/group_spec.rb Outdated Show resolved Hide resolved
@microweb10 microweb10 added this to Review in Roadmap Feb 13, 2019
spec/features/budgets/investments_spec.rb Outdated Show resolved Hide resolved
spec/features/budgets/investments_spec.rb Outdated Show resolved Hide resolved
spec/features/budgets/investments_spec.rb Outdated Show resolved Hide resolved
end

def name_exists_in_budget_headings
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this method cause it wasn´t being used along the project.

@microweb10 microweb10 merged commit 4a12425 into master Feb 13, 2019
@microweb10 microweb10 deleted the make_budgets_translatable branch February 13, 2019 18:01
@microweb10 microweb10 moved this from Review to Release 0.19 in Roadmap Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make participatory budgets translatable
4 participants