Open fatgeekuk opened 6 years ago
I have da same problem with locale pt-BR:
Not sure how to actually fix this, but I came up with a workaround. Not my proudest moment, but it at least does the trick. Add this to the bottom of active_admin.css.scss:
#active_admin_content {
a#diplay-filter {
// Hide button
visibility: hidden;
position: relative;
margin-bottom: 2em;
&::after {
// Custom CSS to create a new div on top
content: 'Attach filters' !important;
visibility: visible;
position: absolute;
left: 0;
// Inherited from theme
background-color: $skinActiveColor;
padding: 7px 10px !important;
font-weight: normal;
text-shadow: none;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 1px 0 0 rgba(255, 255, 255, 0.8);
line-height: 12px;
margin-right: 3px;
display: inline-block;
border: solid 1px #fb003d;
font-size: 0.9em;
text-decoration: none;
color: #fff;
}
}
}
I hit on the same problem here.
Actually, the issue has been fixed with 5a53d305d31563b7c9320a0cb53c0f4d457d6521, it's just not released.
So, the simplest solution for now would be using master branch of this repo, change the line in Gemfile like this:
gem 'active_admin_flat_skin', github: 'ayann/active_admin_flat_skin'
Seems that no matter what the locale setting, the text for the filters button is displayed with a french legend.