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 326591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:19:25+00:00 2026-05-12T09:19:25+00:00

I have a PO file with a content like: msgid or msgstr or-translation msgid

  • 0

I have a PO file with a content like:

msgid "or"
msgstr "or-translation"

msgid "orand"
msgstr "orand-translation"

I need to obtain the translation of a given msgid. Using the command “msggrep -K -e ‘orand’ template2.pot” I get the translation for ‘orand’, and this is ok.

But when I use “msggrep -K -e ‘or’ template2.pot” if returns both translation (‘or’ and ‘orand’). The command “msggrep -K -e ‘^or’ template2.pot” work as expected, returning both translations, but “msggrep -K -e ‘^or$’ template2.pot” just fail becouse it returns nothing. Seems like the ‘$’ character breaks msggrep regular-expression parser.

I have tried with other msggrep flags (like -F, -E…) but all of them reads testing patterns from a file, and it is unacceptable for my actual needs. I’m using msggrep 0.14.6 (and I can’t update to a more recent library).

Does someone knows how can I get the translation for ‘orand’ using msggrep?

  • 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-12T09:19:25+00:00Added an answer on May 12, 2026 at 9:19 am

    You can use an end-of-word check instead:

    msggrep -K -e 'or\b' template2.pot
    

    Which makes sure there is a word boundary after 'or', so it won’t match 'orand'.

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

Sidebar

Related Questions

I am a beginner in using Linux, I have an input file with content
In my spring application context file, I have something like: <util:map id="someMap" map-class="java.util.HashMap" key-type="java.lang.String"
I have some content that i have to render as a excel file in
I have a xml file with content <ul> <li><info>Some text here</info></li> </ul> I have
I have a master page that has two content sections like this (left some
I have a winforms application that presently ships with a chm file for context-sensitive
I have a file. I want to get its contents into a blob column
I have a byte[] array, the contents of which represent a TIFF file (as
In the filesystem I have /file.aspx /directory/default.aspx I want to configure IIS so that
I have a file in the following format: Data Data Data [Start] Data I

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.