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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:50:56+00:00 2026-05-28T01:50:56+00:00

I have a quick question regarding translation in django. I am planing to redesign

  • 0

I have a quick question regarding translation in django.

I am planing to redesign an existing company website from the ground up, this site is served in Danish (da-dk) with the option to switch to English. And i want a similar setup for my django site, ive read through the internationalization documentation a few times. But i am still left with one question:

How do i tell django that my translation strings are written in Danish?

My guess would be to use LANGUAGE_CODE=’da-dk’, but the django documentation is fuzzy at best as to how one should do this.

  • 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-28T01:50:56+00:00Added an answer on May 28, 2026 at 1:50 am

    Django uses the GNU gettext library.

    Django has a django/conf/locale/en, even if English is the base transation language.

    GNU gettext does not care which the base language is; English is a good choice because it is easier to find someone that translates from English to Portuguese than from Danish to Portuguese. Your en/LC_MESSAGES/*.po file will have:

    msgid "nogle danske sætning"
    msgstr "some Danish phrase"
    

    and your da_dk/LC_MESSAGES/*.po file will have:

    msgid "nogle danske sætning"
    msgstr ""
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have a quick question regarding json responses from the web services, I
I have this quick question, i have got the username variable from a form
I have this quick question regarding cost estimation using Function Points. We are doing
this is my very first post! I have a quick question in regarding inheritance
I have a quick question regarding to mobile development, I'm new at this, so
This is a fairly quick question regarding schema design for a Django project. Basically,
I have a quick question regarding getting a specific value from a data grid,
I have a question regarding launching an external application from an asp.net website. Now
I have a quick question regarding debug and release in VS 2008. I have
I am somewhat new to LINQ and have a quick question regarding deleting. Say,

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.