[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Iruka-devel] internationalisation & copyright
From: |
Erwan Loisant |
Subject: |
[Iruka-devel] internationalisation & copyright |
Date: |
Mon, 19 Aug 2002 15:21:10 +0900 |
User-agent: |
Mozilla/5.0 (Windows; U; WinNT; en; Preview) Gecko/20020603 Beonex/0.8-stable |
Other remarks:
1) For a good internationalisation, please use the python gettext
package. Basically, you should add in the top of each source :
import gettext
_ = gettext.gettext
And each string should call the gettext method:
_("This is my string !")
instead of:
"This is my string !"
2) Copyright: each source shoud start by:
############################################################################
## <name of the file>.py - <one line description of the file>
## Copyright (C) <starting year - current year> <Main author>,
<Contributors>
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License
## as published by the Free Software Foundation; either version 2
## of the License, or (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
02111-1307,USA.
##
############################################################################
Please add it to the files you created.
Thank you.
--
Erwan.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Iruka-devel] internationalisation & copyright,
Erwan Loisant <=