Re: Could you please check the steps to enable reviewboard to display other language?

2012-05-30 Thread Brant Chen
Thank you Po-Chien!
我发现zh_CN也可以。
我之前的错误在于:
我翻译了mo里面的某一句话,并找到显示那句话的页面,结果发现编译后那就话的页面仍然是英文。
后来我才发现原因所在:我找到显示那句话的页面错了

非常感谢您的帮助!


BR/Brant.



2012/5/21 Po-Chien Lin li...@cs.nctu.edu.tw

 Oh,

 I forgot that ``LANGUAGES'' item need also be modified to be the same with
 your ``LANGUAGE_CODE'' setting

 LANGUAGE_CODE = 'zh-cn'
 USE_I18N = True
 LANGUAGES = (
  ('zh-cn', _('Chinese')),
 )

 But keep your django.po file under ``locale/zh_CN/**LC_MESSAGES/'' as you
 already did.

 -linpc

 Po-Chien Lin於 2012年5月21日星期一UTC+8下午3�r45分35秒��道:

 Hi Brant,

 The  LANGUAGE_CODE should be in the form: (It is also mentioned in
 settings.py)
 http://www.w3.org/TR/REC-**html40/struct/dirlang.html#h-**8.1.1http://www.w3.org/TR/REC-html40/struct/dirlang.html#h-8.1.1

 In your case, I think it should be:
 LANGUAGE_CODE = 'zh-cn'

 Try it, Good luck :)

 - linpc

 Brant於 2012年5月17日星期四UTC+**8下午3�r11分20秒��道:

 Could anyone please check the steps to enable reviewboard to display
 other language?

 Could anyone please check my steps to enable reviewboard to display
 other language?
 It doesn't work.
 Thank you in advanced.

 Environment:
 Ubuntu 12.04 LTS
 python 2.7
 ReviewBoard: 1.6.6
 Installed by easy_install
 English language show well.
 System default locale: zh_CN.UTF-8

 My steps to enable it to show zh_CN language:
 1. Modify following places in /usr/local/lib/python2.7/**dist-packages/

 ReviewBoard-1.6.6-py2.7.egg/**reviewboard/settings.py:
   (1) LANGUAGE_CODE = 'zh_CN'
   (2) USE_I18N = True
LANGUAGES = (
  ('zh', _('Chinese')),
 )
 2. Compile settings.py by a python script:
 import py_compile

 py_compile.compile(r'/usr/**local/lib/python2.7/dist-**packages/
 ReviewBoard-1.6.6-py2.7.egg/**reviewboard/settings.py')

 3. Under /usr/local/lib/python2.7/dist-**packages/ReviewBoard-1.6.6-
 py2.7.egg/reviewboard ,run:
 mkdir -p locale/zh_CN/LC_MESSAGES/
 django-admin.py makemessages -l zh_CN

 Now we got django.po.

 4. Fill out locale/zh_CN/LC_MESSAGES/**django.po with my Chinese
 translation.

 5. Under /usr/local/lib/python2.7/dist-**packages/ReviewBoard-1.6.6-
 py2.7.egg/reviewboard ,run:
 django-admin.py compilemessages -l zh_CN

 Now we got django.mo.

 6. Restart apatch2:
 apachectl  -k restart

 7. Refresh ReviewBoard portal.

 Unfortunately, Nothing happened :(

 Question 1:
 1. Could you please point me what should I do with above steps?

 2. I tried copying /usr/local/lib/python2.7/dist-**packages/Sphinx-1.1.3-

 py2.7.egg/sphinx/locale/zh_CN/**LC_MESSAGES/sphinx.mo
  to
  /usr/local/lib/python2.7/**dist-packages/ReviewBoard-1.6.**6-py2.7.egg/

 reviewboard/locale/zh_CN/LC_**MESSAGES/django.mo
 Then restart apache, now it works partly
 But after I refresh portal again, it went back to English
 Do you know why?

 Thank you very much ~~

  --
 Want to help the Review Board project? Donate today at
 http://www.reviewboard.org/donate/
 Happy user? Let us know at http://www.reviewboard.org/users/
 -~--~~~~--~~--~--~---
 To unsubscribe from this group, send email to
 reviewboard+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/reviewboard?hl=en


-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Re: Could you please check the steps to enable reviewboard to display other language?

2012-05-21 Thread Po-Chien Lin
Hi Brant,

The  LANGUAGE_CODE should be in the form: (It is also mentioned in 
settings.py)
http://www.w3.org/TR/REC-html40/struct/dirlang.html#h-8.1.1

In your case, I think it should be:
LANGUAGE_CODE = 'zh-cn' 

Try it, Good luck :)

- linpc

Brant於 2012年5月17日星期四UTC+8下午3時11分20秒寫道:

 Could anyone please check the steps to enable reviewboard to display 
 other language? 

 Could anyone please check my steps to enable reviewboard to display 
 other language? 
 It doesn't work. 
 Thank you in advanced. 

 Environment: 
 Ubuntu 12.04 LTS 
 python 2.7 
 ReviewBoard: 1.6.6 
 Installed by easy_install 
 English language show well. 
 System default locale: zh_CN.UTF-8 

 My steps to enable it to show zh_CN language: 
 1. Modify following places in /usr/local/lib/python2.7/dist-packages/ 
 ReviewBoard-1.6.6-py2.7.egg/reviewboard/settings.py: 
   (1) LANGUAGE_CODE = 'zh_CN' 
   (2) USE_I18N = True 
LANGUAGES = ( 
  ('zh', _('Chinese')), 
 ) 
 2. Compile settings.py by a python script: 
 import py_compile 

 py_compile.compile(r'/usr/local/lib/python2.7/dist-packages/ 
 ReviewBoard-1.6.6-py2.7.egg/reviewboard/settings.py') 

 3. Under /usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.6- 
 py2.7.egg/reviewboard ,run: 
 mkdir -p locale/zh_CN/LC_MESSAGES/ 
 django-admin.py makemessages -l zh_CN 

 Now we got django.po. 

 4. Fill out locale/zh_CN/LC_MESSAGES/django.po with my Chinese 
 translation. 

 5. Under /usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.6- 
 py2.7.egg/reviewboard ,run: 
 django-admin.py compilemessages -l zh_CN 

 Now we got django.mo. 

 6. Restart apatch2: 
 apachectl  -k restart 

 7. Refresh ReviewBoard portal. 

 Unfortunately, Nothing happened :( 

 Question 1: 
 1. Could you please point me what should I do with above steps? 

 2. I tried copying /usr/local/lib/python2.7/dist-packages/Sphinx-1.1.3- 
 py2.7.egg/sphinx/locale/zh_CN/LC_MESSAGES/sphinx.mo 
  to 
  /usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.6-py2.7.egg/ 
 reviewboard/locale/zh_CN/LC_MESSAGES/django.mo 
 Then restart apache, now it works partly 
 But after I refresh portal again, it went back to English 
 Do you know why? 

 Thank you very much ~~ 


-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Re: Could you please check the steps to enable reviewboard to display other language?

2012-05-21 Thread Po-Chien Lin
Oh,

I forgot that ``LANGUAGES'' item need also be modified to be the same with 
your ``LANGUAGE_CODE'' setting

LANGUAGE_CODE = 'zh-cn'  
USE_I18N = True
LANGUAGES = ( 
 ('zh-cn', _('Chinese')), 
)  

-linpc

Po-Chien Lin於 2012年5月21日星期一UTC+8下午3時45分35秒寫道:

 Hi Brant,

 The  LANGUAGE_CODE should be in the form: (It is also mentioned in 
 settings.py)
 http://www.w3.org/TR/REC-html40/struct/dirlang.html#h-8.1.1

 In your case, I think it should be:
 LANGUAGE_CODE = 'zh-cn' 

 Try it, Good luck :)

 - linpc

 Brant於 2012年5月17日星期四UTC+8下午3時11分20秒寫道:

 Could anyone please check the steps to enable reviewboard to display 
 other language? 

 Could anyone please check my steps to enable reviewboard to display 
 other language? 
 It doesn't work. 
 Thank you in advanced. 

 Environment: 
 Ubuntu 12.04 LTS 
 python 2.7 
 ReviewBoard: 1.6.6 
 Installed by easy_install 
 English language show well. 
 System default locale: zh_CN.UTF-8 

 My steps to enable it to show zh_CN language: 
 1. Modify following places in /usr/local/lib/python2.7/dist-packages/ 
 ReviewBoard-1.6.6-py2.7.egg/reviewboard/settings.py: 
   (1) LANGUAGE_CODE = 'zh_CN' 
   (2) USE_I18N = True 
LANGUAGES = ( 
  ('zh', _('Chinese')), 
 ) 
 2. Compile settings.py by a python script: 
 import py_compile 

 py_compile.compile(r'/usr/local/lib/python2.7/dist-packages/ 
 ReviewBoard-1.6.6-py2.7.egg/reviewboard/settings.py') 

 3. Under /usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.6- 
 py2.7.egg/reviewboard ,run: 
 mkdir -p locale/zh_CN/LC_MESSAGES/ 
 django-admin.py makemessages -l zh_CN 

 Now we got django.po. 

 4. Fill out locale/zh_CN/LC_MESSAGES/django.po with my Chinese 
 translation. 

 5. Under /usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.6- 
 py2.7.egg/reviewboard ,run: 
 django-admin.py compilemessages -l zh_CN 

 Now we got django.mo. 

 6. Restart apatch2: 
 apachectl  -k restart 

 7. Refresh ReviewBoard portal. 

 Unfortunately, Nothing happened :( 

 Question 1: 
 1. Could you please point me what should I do with above steps? 

 2. I tried copying /usr/local/lib/python2.7/dist-packages/Sphinx-1.1.3- 
 py2.7.egg/sphinx/locale/zh_CN/LC_MESSAGES/sphinx.mo 
  to 
  /usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.6-py2.7.egg/ 
 reviewboard/locale/zh_CN/LC_MESSAGES/django.mo 
 Then restart apache, now it works partly 
 But after I refresh portal again, it went back to English 
 Do you know why? 

 Thank you very much ~~ 



-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Re: Could you please check the steps to enable reviewboard to display other language?

2012-05-21 Thread Po-Chien Lin
Oh,

I forgot that ``LANGUAGES'' item need also be modified to be the same with 
your ``LANGUAGE_CODE'' setting

LANGUAGE_CODE = 'zh-cn'  
USE_I18N = True
LANGUAGES = ( 
 ('zh-cn', _('Chinese')), 
)  

But keep your django.po file under ``locale/zh_CN/LC_MESSAGES/'' as you 
already did.

-linpc

Po-Chien Lin於 2012年5月21日星期一UTC+8下午3時45分35秒寫道:

 Hi Brant,

 The  LANGUAGE_CODE should be in the form: (It is also mentioned in 
 settings.py)
 http://www.w3.org/TR/REC-html40/struct/dirlang.html#h-8.1.1

 In your case, I think it should be:
 LANGUAGE_CODE = 'zh-cn' 

 Try it, Good luck :)

 - linpc

 Brant於 2012年5月17日星期四UTC+8下午3時11分20秒寫道:

 Could anyone please check the steps to enable reviewboard to display 
 other language? 

 Could anyone please check my steps to enable reviewboard to display 
 other language? 
 It doesn't work. 
 Thank you in advanced. 

 Environment: 
 Ubuntu 12.04 LTS 
 python 2.7 
 ReviewBoard: 1.6.6 
 Installed by easy_install 
 English language show well. 
 System default locale: zh_CN.UTF-8 

 My steps to enable it to show zh_CN language: 
 1. Modify following places in /usr/local/lib/python2.7/dist-packages/ 
 ReviewBoard-1.6.6-py2.7.egg/reviewboard/settings.py: 
   (1) LANGUAGE_CODE = 'zh_CN' 
   (2) USE_I18N = True 
LANGUAGES = ( 
  ('zh', _('Chinese')), 
 ) 
 2. Compile settings.py by a python script: 
 import py_compile 

 py_compile.compile(r'/usr/local/lib/python2.7/dist-packages/ 
 ReviewBoard-1.6.6-py2.7.egg/reviewboard/settings.py') 

 3. Under /usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.6- 
 py2.7.egg/reviewboard ,run: 
 mkdir -p locale/zh_CN/LC_MESSAGES/ 
 django-admin.py makemessages -l zh_CN 

 Now we got django.po. 

 4. Fill out locale/zh_CN/LC_MESSAGES/django.po with my Chinese 
 translation. 

 5. Under /usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.6- 
 py2.7.egg/reviewboard ,run: 
 django-admin.py compilemessages -l zh_CN 

 Now we got django.mo. 

 6. Restart apatch2: 
 apachectl  -k restart 

 7. Refresh ReviewBoard portal. 

 Unfortunately, Nothing happened :( 

 Question 1: 
 1. Could you please point me what should I do with above steps? 

 2. I tried copying /usr/local/lib/python2.7/dist-packages/Sphinx-1.1.3- 
 py2.7.egg/sphinx/locale/zh_CN/LC_MESSAGES/sphinx.mo 
  to 
  /usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.6-py2.7.egg/ 
 reviewboard/locale/zh_CN/LC_MESSAGES/django.mo 
 Then restart apache, now it works partly 
 But after I refresh portal again, it went back to English 
 Do you know why? 

 Thank you very much ~~ 



-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Could you please check the steps to enable reviewboard to display other language?

2012-05-17 Thread Brant
Could anyone please check the steps to enable reviewboard to display
other language?

Could anyone please check my steps to enable reviewboard to display
other language?
It doesn't work.
Thank you in advanced.

Environment:
Ubuntu 12.04 LTS
python 2.7
ReviewBoard: 1.6.6
Installed by easy_install
English language show well.
System default locale: zh_CN.UTF-8

My steps to enable it to show zh_CN language:
1. Modify following places in /usr/local/lib/python2.7/dist-packages/
ReviewBoard-1.6.6-py2.7.egg/reviewboard/settings.py:
  (1) LANGUAGE_CODE = 'zh_CN'
  (2) USE_I18N = True
   LANGUAGES = (
 ('zh', _('Chinese')),
)
2. Compile settings.py by a python script:
import py_compile

py_compile.compile(r'/usr/local/lib/python2.7/dist-packages/
ReviewBoard-1.6.6-py2.7.egg/reviewboard/settings.py')

3. Under /usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.6-
py2.7.egg/reviewboard ,run:
mkdir -p locale/zh_CN/LC_MESSAGES/
django-admin.py makemessages -l zh_CN

Now we got django.po.

4. Fill out locale/zh_CN/LC_MESSAGES/django.po with my Chinese
translation.

5. Under /usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.6-
py2.7.egg/reviewboard ,run:
django-admin.py compilemessages -l zh_CN

Now we got django.mo.

6. Restart apatch2:
apachectl  -k restart

7. Refresh ReviewBoard portal.

Unfortunately, Nothing happened :(

Question 1:
1. Could you please point me what should I do with above steps?

2. I tried copying /usr/local/lib/python2.7/dist-packages/Sphinx-1.1.3-
py2.7.egg/sphinx/locale/zh_CN/LC_MESSAGES/sphinx.mo
 to
 /usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.6-py2.7.egg/
reviewboard/locale/zh_CN/LC_MESSAGES/django.mo
Then restart apache, now it works partly
But after I refresh portal again, it went back to English
Do you know why?

Thank you very much ~~

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en