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 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

Related Questions

In my project I have a method that creates a string from integers (using
Summary: Say I have a project in Django called devsite which will be deployed
In my Project, I have a customised @interface GraphView: UIView . Hence GraphView is
I'm using Entity Framework 4 in my project. The Framework has created its own
I have two file generated in visual studio c++ 2010 express. test2.cpp // test2.cpp
I have object Project in my entity. I create project by: public static void
I have multiple Linq2Sql Classes such as Article NewsItem Product. They all have a
There are not very many options for a virtualizing wrap panel for use in
In one of my personal project I am developing a basic SMTP server in
I am editing a c# WinForm solution and I do not understand the code

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.