4

I have installed the django-rosetta for translation, made .po and .mo files through django command

django-admin.py makemessages -l ar

and translate all words through django-rosetta,

now when i change my language to Arabic from English, it show some words in Arabic and some in English, although i have translated all these words in Arabic,

Seanny123
  • 8,776
  • 13
  • 68
  • 124
Ahsan
  • 11,516
  • 12
  • 52
  • 79

3 Answers3

1

What kind of server are you running?

I had the same problem with Apache2 and FastCGI. I had to restart the FastCGI Process to see the modifications.

Have you added the local path properly to your settings?

PROJECT_PATH = os.path.split(os.path.abspath(os.path.dirname(__file__)))[0]
LOCALE_PATHS = (
    os.path.join(PROJECT_PATH, "locale"),
)
welworx
  • 370
  • 2
  • 14
1

Have you restarted you web server?

This means your project's labels will be translated right away, unfortunately you'll still have to restart the webserver for the changes to take effect. (NEW: if your webserver supports it, you can force auto-reloading of the translated catalog whenever a change was saved. See the note regarding the ROSETTA_WSGI_AUTO_RELOAD variable in conf/settings.py.

-- http://code.google.com/p/django-rosetta/

Jakub Roztocil
  • 15,930
  • 5
  • 50
  • 52
  • Right now I am on django development server :-( but anyhow, I have restarted it as well – Ahsan Jun 10 '11 at 13:02
  • When you are in rossetta, do you see any of the translated strings marked as fuzzy? If yes, make sure that the translations are still correct and uncheck the fuzzy flag. – Jakub Roztocil Jun 10 '11 at 13:13
0

Do you have translations marked as fuzzy? (In Rosetta you can filter to display only fuzzy translations.) If some strings are fuzzy, make sure they are properly translated, uncheck the fuzzy flag and save the translations.

Another reason for translations not showing up could be that some python formatting strings (e.g. 'My %s apple') are not properly reproduced in the translated string. If formatting codes are unbalanced Rosetta should warn you, and the actual translation doesn't get written to the file.

Marco
  • 1,196
  • 9
  • 11