Skip to content

Translation domain #752

Closed
Closed

Description

@clubdesarrolladores

There is translations domains like grid.es.yml?

Activity

  1. modified the milestone: 2.3 on Dec 13, 2015
  2. hmert commented on Dec 14, 2015

    @hmert
    Contributor

    could you explain it for me? I didn't understand

  3. giovkanata commented on Dec 14, 2015

    @giovkanata

    @hmert Maybe he is referring to the possibility to add a translation domain for the properties of an entity related to a grid. For example when you add a translation key for a title like:

    /**
      * @var \DateTime
      *
      * @ORM\Column(type="date", nullable=true)
      * @GRID\Column(title="user.birth_date", filterable=false)
      */
       protected $birthDate;
    

    you are forced to put the translated string only in message.yml and would be nice if we could customize it.

  4. clubdesarrolladores commented on Dec 14, 2015

    @clubdesarrolladores
    ContributorAuthor

    Exactly, is a good practice for bundles keep separated domain translations files. But to do this, we need rewrite a lot of templates. I propose this for the next milestone.

  5. modified the milestones: , 2.3 on Dec 14, 2015
  6. qferr commented on Dec 18, 2015

    @qferr
    Contributor

    @APY/collaborators We could add a translation_domain property to options of the column.

  7. hmert commented on Dec 18, 2015

    @hmert
    Contributor

    👍

  8. qferr commented on Dec 22, 2015

    @qferr
    Contributor

    Duplicate #329

  9. qferr commented on Mar 12, 2016

    @qferr
    Contributor

    Done. See the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions