PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, January 16, 2022

[FIXED] CakePHP 3 : How to prepare cakephp table paginate header for localization?

 January 16, 2022     cakephp, cakephp-3.0, cakephp-3.x     No comments   

Issue

My table header look below

<th scope="col"><?= $this->Paginator->sort('name')?></th>

After generate POT file 'name' has not generate 'msgid' and 'msgstr'.

I have tried like below code but result is same.

<th scope="col"><?= __($this->Paginator->sort('name')) ?></th>

How I will prepare it before POT file generate ?


Solution

You can write your label like

<th scope="col"><?= $this->Paginator->sort('name',__('Name')) ?></th>


Answered By - Alimon Karim
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing