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

Thursday, September 1, 2022

[FIXED] how to get poedit working?

 September 01, 2022     php, poedit     No comments   

Issue

i have followed the instructions in http://www.bunchacode.com/programming/internationalization-and-localization-in-cakephp/

but i keep getting this error xgettext: language `php' unknown

i have googled like crazy. i cannot find it.


Solution

To solve this you need to tell xgettext to use PHP as language for your files (when using file extensions like .phtml or similar.

In Poedit open the settings, go to the parser tab, select PHP and then click edit. In the parser line with xgettext add --language=PHP so it looks like this:

xgettext --language=PHP --force-po -o %o %C %K %F

Maybe you need to add some extensions of PHP files to the extension input field above that occur in your project, for example:

*.php;*.phtml

This should be enough.



Answered By - acme
Answer Checked By - Katrina (PHPFixing Volunteer)
  • 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