Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8277319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:39:41+00:00 2026-06-08T08:39:41+00:00

I am busy writing an app that needs to be localized properly but the

  • 0

I am busy writing an app that needs to be localized properly but the act of manually creating the portable object templates all the time is tedious.

Can anyone tell me why this piece of code:

<?php
exec("xgettext -d templates/base -s -j -o default.pot templates/base/view.php", $output);
?>

is not doing anything but when I run that in the command line it actually populates the default.pot file with the entries it found?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T08:39:43+00:00Added an answer on June 8, 2026 at 8:39 am

    I find most often problems like this are due to paths. The user php/apache runs as on your machine (normally ‘nobody’ or ‘www-data’) likely does not have the PATH environment variable set, and if it is, it probably doesn’t have the path that contains xgettext. If that variable isn’t set, then when executing that command bash (as that user) won’t be able to find the binary.

    The best way to confirm this is the problem is to put in the full path to xgettext which if you don’t know you can execute which xgettext in bash to get the path and hard code it. If it works, you can either leave that path in, or if the code needs to be portable find another solution such as adding the path to the PATH environment variable for the apache user.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm busy writing a PHP app that gets data from a database, but I
I'm busy writing a app that automacally defines a domain on a server and
To all, Busy writing my first Android app, using ADT/Eclipse. I use my phone
I am busy writing an dynamic AND filter on a IQueryable Linq object, so
I'm busy writing a application that refreshes a IFrame completely using javascript, now my
I am busy creating a less complicated version of NinePatchDrawable that tiles the inner
i'm writing a delphi app that communicates with excel. one thing i noticed is
I'm writing a latency sensitive app that in effect wants to wait on multiple
I am writing an application that is hidden most of the time but sometimes
I'm busy writing a BHO(Browser Helper Object) in C# and I need to attach

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.