Poedit ‘ctp’ is unknown; will try C.

xgettext: warning: file ‘.ctp’ extension ‘ctp’ is unknown; will try C.

Need to force the PHP parser to be treated as text regardless of the extension.

Open Poedit’s preferences and navigating to the parsers section there. In the PHP parser under ?Parser command?  set the command to be:

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

REF:
G-ROC web applications

Bookmark and Share

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

Thank you!

this really works now i can get .ctp files translated too!

do you know any complete tutorial on how to user poedit?!

Hi Moe, I have to be honest no I don’t have one to hand I just played around with it to get it working…

Leave a comment

(required)

(required)