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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:47:36+00:00 2026-05-16T02:47:36+00:00

I use gettext to translate my web site. It would be nice to have

  • 0

I use gettext to translate my web site.

It would be nice to have link in text translated but I don’t want to write html tags in gettext files because these translations may be used elsewhere.

I could create text for web site only (with links) and text for all purpose.
I’ll have to maintain 2 versions. 🙁

I could also write a custom parser to insert links in text but it seems overkill and I’m affraid of The Danger of Naïveté

For those who had the same problem, how did you handle that ?

  • 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-16T02:47:37+00:00Added an answer on May 16, 2026 at 2:47 am

    I used to put links as parameters. Most of the time the whole <a> -tag is a parameter. Like Please see %s this link %s for more information. The first %s is passed the link tag, and the second one is passed the closing </a> tag.

    Now I use only whole phrases as links when a link text must be translated. So we have just text like ‘Please see this link for more information’, get it translated and put the link tags around it. It’s much easier to manage the translations, and you don’t have a confused translator, or need to spend time explaining what you’re trying to do.

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

Sidebar

Related Questions

I am using gettext to translate my site. In norwegian I need to use
I'm developing a web site which use gettext. Every thing work great in local.
Django's internationalization is very nice (gettext based, LocaleMiddleware), but what is the proper way
I want to translate my web page to 7 different languages and I'm curious
How does gettext translate string variables? It doesn't seem to want to do it..
I'm using gettext to write a multilingual php web app. Whats the best way
I use PHP Gettext extension for localizing a Web app. When you do: bindtextdomain(example,
I use the following code to set text to an AutoCompleteTextView field. But I
I have a situation where I must use Windows API to retrieve text from
Is it possible to use something like gettext to translate an R script. If

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.