question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

doc: better explain internationalization

See original GitHub issue

The concise information in skeleton/locale/README.md is not helping me much. Can you provide a working example? I have a couple of questions:

  1. how many languages can I set in config.json? One is working, but if I try to set an array with two values I get an error when I run cactus messages:make (TypeError: unhashable type: ‘list’):

    "locale"   : ["en", "fr"]
    

    The config file is meant to be one per website? I should use one config file for each different language?

  2. How should the block look like? I tried this but no po file is generated:

    <p>{% trans %} Esempio di traduzione {% endtrans %}</p>
    

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
good-llycommented, Aug 9, 2016

When i run: cactus messages:make -c config.json -c en.json or cactus messages:make -c config.json -c it.json

it generates file directories e, n and i, t ---- somebody had a similar experience?

1reaction
m-thielencommented, Feb 19, 2017

The ‘e’, ‘n’, ‘i’ ,‘t’ subdirectories are apparently due to a bug in Django 1.6.11, which is used by Cactus. I have not investigated this in depth, the bug might be in Cactus, too, but changing one line of code in Django did it for me. Unfortunately, cactus does not work with later Django versions.

Forget what I just wrote… the bug is in Cactus. Leave your Django installation alone. There is an easy workaround, though. In your project directory, just run

django-admin.py makemessages -l en

where ‘en’ is of course the locale you want to build a PO file for.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Localization vs. Internationalization - W3C
Internationalization is the design and development of a product, application or document content that enables easy localization for target ...
Read more >
What is internationalization? - Technitrad
Globalization increases interdependence of countries, whereas internationalization retains a country's identity. Globalization is inevitable ...
Read more >
What Is The Difference Between Internationalization ... - Localize
Localization is the adaptation of a specific product or service to a unique local market. Let's explore internationalization and localization in more depth....
Read more >
Compare Globalization and Internationalization - MotaWord
Internationalization allows for the sourcing, production, and sale of materials from one or more countries. It also lets companies set up ...
Read more >
Internationalization vs. localization (i18n vs l10n) - Lokalise
As we defined above, internationalization is essentially changing and removing any hardwiring so that your product is language- and culture- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found