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

  • Home
  • SEARCH
  • 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 400571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:57:13+00:00 2026-05-12T16:57:13+00:00

Summary : I have a project using GNU Autotools. I have a pot file.

  • 0

Summary :

I have a project using GNU Autotools. I have a pot file. I need to update it. Is there a magical “make” task that run xgettext for me (I’m lazy ?)

Verbose version :

Hi

I am trying to setup a project using GNU autotools and gettext.

I’m trying to follow the ‘lazy’ path (that is, only writing configure.ac, Makefile.am, and such, and let tools generate the rest for me as much as possible).

I used gettextize once on my package, so I got a package.pot file created, and I derived a fr.po file (I’m trying to translate in french).

I never managed to get my code translated, but I figured out it might be because the code was not in the proper place. The translated string is in a lib instead of a main, and the documentation is quite unclear about what I must do in this case. If my main call a function in a lib, and the function from the lib is using _(). Should I use gettext of dgettext in this case ? My lib is just here for organisation purpose, so I’m okay with using the same domain (only one package.pot file for the whole app).

So, to try something simpler, I moved my string to the main (it’s really just a hello world, for the moment). So I need to update the package.pot file, at least, to realize that the string position changed, need I ? In this case, would I use xgettext manually (painfully passing it the list of all interesting cpp files, which will be a pain in the ass when I have more than one file), or is there a ‘make whatever’ task somewhere that I can run ?

This may look stupid, but I’ve not been able to find it.

Also, any help on finding why my code is not translated, (anything not in http://www.gnu.org/software/gettext/FAQ.html#integrating_noop) is welcome !

Thanks

PH

  • 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-05-12T16:57:13+00:00Added an answer on May 12, 2026 at 4:57 pm

    Ok, it turns out that :

    • there is a update-po task in the generated Makefile of the po/ folder, that does just what I want ;
    • this tasks looks to file referenced in the POTFILES.in file, which I had forgotten to update.

    So it was something stupid.

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

Sidebar

Ask A Question

Stats

  • Questions 223k
  • Answers 223k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer That's a typo, you forgot the class name : big_int… May 13, 2026 at 12:39 am
  • Editorial Team
    Editorial Team added an answer I am unable to select anything at all based on… May 13, 2026 at 12:39 am
  • Editorial Team
    Editorial Team added an answer You have may have mixed up which part does what.… May 13, 2026 at 12:39 am

Related Questions

Summary: I want to take advantage of compiler optimizations and processor instruction sets, but
I have an Infopath 2007 form with several views, meant to be used in
I have a winforms project which allows future developers to create plugins for the
I am moving 1 project, just the data tier, the project is using MVC

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.