Skip to content

97 Gettext translation declarator

Marco edited this page Jan 22, 2017 · 2 revisions
  • default.mo: module global, loaded on every request of current module
  • admin.mo: Admin area (admin and block)
  • block.mo: Module block

Use poedit to extract module language items:

  • _a(), t() => admin.mo
  • _b() => block.mo
  • __(), _e() and others => default.mo

Block Templates

  • just block templates ( phtml ) files should have _b ,

Front & Admin templates

  • Front and admin templates should have _e
  • but it's clearer to use for Admin _a

Admin & Block config

  • All codes on config files should have _a or _t
  • Even for block : must use _a
Clone this wiki locally