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: Do you have any plan for including localization file in your project?

2012-05-21 Thread Po-Chien Lin
I have replied in your post.
已回覆�o您了 :)

-linpc

Brant於 2012年5月19日星期六UTC+8下午11�r03分22秒��道:


 Hi Lin,

 我遇到一个设置ReviewBoard显示中文的问题,您能帮我看一下吗?
 具体的描述是这里:
  https://groups.google.com/d/topic/reviewboard/pXLe06MW5eU/discussion
 没有人帮我
 谢谢您先:)

 Best Regards,
 Brant.


-- 
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

Re: Do you have any plan for including localization file in your project?

2012-05-12 Thread Po-Chien Lin
Dears,

I just created an 
issue: http://code.google.com/p/reviewboard/issues/detail?id=2599
for submit my translation files. :-)

Thanks again,
linpc

David Trowbridge於 2012年5月10日星期四UTC+8下午2時52分38秒寫道:

 If we get some help with it, I'm sure we'd be happy to ship 
 localization. In the absence 
 of contributions (especially for the translations themselves), we have 
 other priorities. 

 -David 


 On Wed, May 9, 2012 at 11:13 PM, Po-Chien Lin li...@cs.nctu.edu.tw 
 wrote: 
  Thanks for response. 
  
  So I would like to know if the localization plan is put into schedule in 
 the 
  upcoming release? like 1.7 or somewhat. 
  
  btw, I notice that the string at 
  
 https://github.com/reviewboard/reviewboard/blob/master/reviewboard/reviews/views.py#L211
  
  should be prefixed an under line, so that it can be translated. 
  e.g. 
  'summary': _('Summary'), 
  
  
  Sincerely, 
  linpc 
  
  David Trowbridge於 2012年5月10日星期四UTC+8下午2時03分24秒寫道: 
  
  We'd love to have localization for Review Board. It's part of the way 
  there, but needs 
  some additional work. We've been careful to try to mark strings for 
  localization, but 
  there are some things (such as those that come from JavaScript) that 
  wouldn't be 
  included in that. 
  
  -David 
  
  
  On Wed, May 9, 2012 at 8:33 PM, Po-Chien Lin wrote: 
   I'm a Reviewboard user in Chinese environment. 
   
   I create a django.po (and django.mo) file under the 
   reviewboard/locale/zh_TW/LC_MESSAGES/ directory, 
   so that our work team can use the Reviewboard in Chinese happier :-D 
   
   Reviewboard has many specific terminology that are not supported by 
 the 
   original Django localization library, 
   so I think it's a good idea to maintain a Reviewboard-specific 
   localization 
   library. 
   
   Do you have any plans about create a locale/ directory under the 
   Reviewboard 
   project, 
   collect (accept user's submit) different language files in it, and 
 the 
   release tarball will have localization support! 
   
   Thanks for taking time to read this, 
   
   Sincerely, 
   linpc 
   
  
  -- 
  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: Do you have any plan for including localization file in your project?

2012-05-10 Thread Po-Chien Lin
Thanks for response.

So I would like to know if the localization plan is put into schedule in 
the upcoming release? like 1.7 or somewhat.

btw, I notice that the string at
https://github.com/reviewboard/reviewboard/blob/master/reviewboard/reviews/views.py#L211
 
should be prefixed an under line, so that it can be translated.
e.g.
'summary': _('Summary'), 


Sincerely,
linpc

David Trowbridge於 2012年5月10日星期四UTC+8下午2時03分24秒寫道:

 We'd love to have localization for Review Board. It's part of the way 
 there, but needs 
 some additional work. We've been careful to try to mark strings for 
 localization, but 
 there are some things (such as those that come from JavaScript) that 
 wouldn't be 
 included in that. 

 -David 


 On Wed, May 9, 2012 at 8:33 PM, Po-Chien Lin wrote: 
  I'm a Reviewboard user in Chinese environment. 
  
  I create a django.po (and django.mo) file under the 
  reviewboard/locale/zh_TW/LC_MESSAGES/ directory, 
  so that our work team can use the Reviewboard in Chinese happier :-D 
  
  Reviewboard has many specific terminology that are not supported by the 
  original Django localization library, 
  so I think it's a good idea to maintain a Reviewboard-specific 
 localization 
  library. 
  
  Do you have any plans about create a locale/ directory under the 
 Reviewboard 
  project, 
  collect (accept user's submit) different language files in it, and the 
  release tarball will have localization support! 
  
  Thanks for taking time to read this, 
  
  Sincerely, 
  linpc 
  


-- 
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: Do you have any plan for including localization file in your project?

2012-05-10 Thread Po-Chien Lin
Thanks!

I will re-check my translation, and submit it to you (ASAP) :-)

-linpc

David Trowbridge於 2012年5月10日星期四UTC+8下午2時52分38秒寫道:

 If we get some help with it, I'm sure we'd be happy to ship 
 localization. In the absence 
 of contributions (especially for the translations themselves), we have 
 other priorities. 

 -David 


 On Wed, May 9, 2012 at 11:13 PM, Po-Chien Lin li...@cs.nctu.edu.tw 
 wrote: 
  Thanks for response. 
  
  So I would like to know if the localization plan is put into schedule in 
 the 
  upcoming release? like 1.7 or somewhat. 
  
  btw, I notice that the string at 
  
 https://github.com/reviewboard/reviewboard/blob/master/reviewboard/reviews/views.py#L211
  
  should be prefixed an under line, so that it can be translated. 
  e.g. 
  'summary': _('Summary'), 
  
  
  Sincerely, 
  linpc 
  
  David Trowbridge於 2012年5月10日星期四UTC+8下午2時03分24秒寫道: 
  
  We'd love to have localization for Review Board. It's part of the way 
  there, but needs 
  some additional work. We've been careful to try to mark strings for 
  localization, but 
  there are some things (such as those that come from JavaScript) that 
  wouldn't be 
  included in that. 
  
  -David 
  
  
  On Wed, May 9, 2012 at 8:33 PM, Po-Chien Lin wrote: 
   I'm a Reviewboard user in Chinese environment. 
   
   I create a django.po (and django.mo) file under the 
   reviewboard/locale/zh_TW/LC_MESSAGES/ directory, 
   so that our work team can use the Reviewboard in Chinese happier :-D 
   
   Reviewboard has many specific terminology that are not supported by 
 the 
   original Django localization library, 
   so I think it's a good idea to maintain a Reviewboard-specific 
   localization 
   library. 
   
   Do you have any plans about create a locale/ directory under the 
   Reviewboard 
   project, 
   collect (accept user's submit) different language files in it, and 
 the 
   release tarball will have localization support! 
   
   Thanks for taking time to read this, 
   
   Sincerely, 
   linpc 
   
  
  -- 
  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

Do you have any plan for including localization file in your project?

2012-05-09 Thread Po-Chien Lin
I'm a Reviewboard user in Chinese environment.

I create a django.po (and django.mo) file under the 
reviewboard/locale/zh_TW/LC_MESSAGES/ directory,
so that our work team can use the Reviewboard in Chinese happier :-D

Reviewboard has many specific terminology that are not supported by the 
original Django localization library,
so I think it's a good idea to maintain a Reviewboard-specific localization 
library.

Do you have any plans about create a locale/ directory under the 
Reviewboard project,
collect (accept user's submit) different language files in it, and the 
release tarball will have localization support!

Thanks for taking time to read this,

Sincerely,
linpc

-- 
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: Review Board 1.6.6 released

2012-04-29 Thread Po-Chien Lin
Thanks for your efforts. :-)

But if there is any reason why some patches has been commit into git master 
branch still don't merge into the newest release? :!

In my case, I mean this 
one: https://github.com/reviewboard/reviewboard/commit/b0d0228
which cause an installation error on FreeBSD machine.

I wish it will be fixed as soon :-)
Thanks again.

Sincerely,
linpc


Hey everyone,


 Review Board 1.6.6 is out, and adds support for getting GitHub API tokens 
 for private repos.

 See the news post and release notes at 
 http://www.reviewboard.org/news/2012/04/25/review-board-166-released/

 Christian

 -- 
 Christian Hammond - chip...@chipx86.com
 Review Board - http://www.reviewboard.org
 VMware, Inc. - http://www.vmware.com


-- 
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