Skip to content

Commit

Permalink
Merge pull request #177 from larriereguichet/bugfix/column-names
Browse files Browse the repository at this point in the history
Remove a bug when getting the translation for column names
  • Loading branch information
johnkrovitch authored Jul 7, 2020
2 parents ce6b7c9 + 18146ff commit 0909d25
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/Resources/views/Form/fields.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,3 @@
{% endif %}
</div>
{% endblock collection_widget %}

{% block collection_item_widget %}
lo ?
{% endblock collection_item_widget %}
3 changes: 0 additions & 3 deletions src/Utils/TranslationUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace LAG\AdminBundle\Utils;

use LAG\Component\StringUtils\StringUtils;

class TranslationUtils
{
/**
Expand All @@ -14,7 +12,6 @@ public static function getTranslationKey(
string $adminName,
string $key
): string {
$key = StringUtils::underscore($key);
$translationPattern = str_replace('{key}', $key, $translationPattern);
$translationPattern = str_replace('{admin}', $adminName, $translationPattern);

Expand Down

0 comments on commit 0909d25

Please sign in to comment.