我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在Symfony2 Admin Generator上自定义消息

I have my admin generator on Symfony 2.6 and i need to customize the messages, principally the error message on delete option.

Actually I have done things like:

delete:
    params:
        messages:
            error: The object cludn't be deleted.

How can I customize the message?

You should be able to override the translation in AdmingeneratorGeneratorBundle/Resources/translations/Admingenerator.en.yml by adding the new message in directory app/Resources/translations

Source

Docs

近期文章

  • 第二次访问时刷新网站[重复]
  • 获取默认用户图片drupal 6
  • 使用PHP从我的DB保存文本创建链接
  • PHP调整HTTP_RAW_POST_DATA的大小以保存图像
  • 带有嵌套select语句的MySQL Trigger
  • PHP-MySQL:使用特定字符限制数据
  • 查询内部while循环只显示1个结果
  • 在另一个数组中索引为1的数组中的行索引1
  • PHP preg_replace SVG宽度和高度值
  • 从同一页面中抓取两个HTML表单中的数据
  • AngularJS下载PHP文件而不是显示它们,缺少什么?
  • Wordpress - 在wp-includes / comments-template.php中更改表单操作URL
  • 如何避免在php中转义双引号和单引号
  • 如何合并2个数组,但将它们组合在日期很常见的地方
  • 选择一个不同的列,I.E Finetuning选择查询
  • PHP时区列表不一致
  • 使用Unique Key更新sql字段
  • JQuery Ajax - 文件和数据上传
  • 编辑书籍记录PHP
  • 尝试根据网址重定向

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华