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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:13:24+00:00 2026-06-10T23:13:24+00:00

For a website with a large amount of fixed strings (labels, announcements and etc),

  • 0

For a website with a large amount of fixed strings (labels, announcements and etc), I’m going to add internationalization to the project and I want to know your experiences about using keywords vs real phrases in the original codes? Which one is better to use?

Check this example – in django:

Real phrase:

<p>
    {% trans "Welcome to my website" %}
</p>

Keyword:

<p>
    {% trans "WELCOME_MESSAGE" %}
</p>

Of course using real phrases is easier, but I have some bad experiences. Consider a general word, {% trans "contacts" %} used as title of a page and somewhere else used in a phrase like {{selected_contacts_count}}{% trans "contacts" %}, translation of contacts as title of a page can be different with translation of contacts as a word in a phrase, so this is a conflict.

  • 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-10T23:13:26+00:00Added an answer on June 10, 2026 at 11:13 pm

    Keywords.

    Somewhere , sometime, someplace, you’ll need to have a translation table. It might be flat file, it might be a db store, but it’ll probably look like this:

    field | language | message
    

    it’ll be much easier to build and maintain a keyword based system :

    WELCOME_MESSAGE | EN | Welcome to our online h ome
    WELCOME_MESSAGE | FR | bienvenue chez nous en ligne
    WELCOME_MESSAGE | SW | kuwakaribisha nyumbani kwetu online
    

    If you’re interpolating data into these translation, the one issue that you’ll likely encounter is having to deal with pluralizations:

    There is one item.  
    There are four items.
    
    You have one new message.
    You have four new messages.
    

    So keep that in mind as you move forward.

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

Sidebar

Related Questions

I am working on a project involving large amount of data from the delicious
I am running a website where we are serving a large amount of files
I Have website I need to save a large amount of pages from. The
I am building a small website that has a fairly large amount of pictures
I have a large website at www.mydomain.com. There are 1000 new documents per month
When building a relatively large website, the CSS structure ought to be properly scoped
I am using Nutch to crawl a large website. The webpages are generated by
I am doing some testing for a very large website, created many different developers.
I got a large PHP website which I'm now about to take care of.
What technologies should I use when designing for a large social website (with a

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.