[Ap-python-commits] python/aptk language.py,NONE,1.1
Status: Beta
Brought to you by:
sjah
From: <sj...@us...> - 2002-08-16 05:43:11
|
Update of /cvsroot/ap-python/python/aptk In directory usw-pr-cvs1:/tmp/cvs-serv25336 Added Files: language.py Log Message: add language.py --- NEW FILE: language.py --- # language.py # Copyright (C) 2002 Evgeny Chukreev <co...@ec...> # # 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. # # $Id: language.py,v 1.1 2002/08/16 05:43:08 sjah Exp $ # # XXX XXX XXX XXX XXX XXX XXX XXX XXX XXX XXX # XXX This is UTF8 encoded file. Be careful XXX # XXX XXX XXX XXX XXX XXX XXX XXX XXX XXX XXX __author__ = "Evgeny Chukreev <co...@ec...>" __date__ = "$Date: 2002/08/16 05:43:08 $" __version__ = "$Revision: 1.1 $" __license__ = "GNU" import locale language, charset = locale.getlocale () # All translations translations = { # Russian 'ru_RU' : { 'Sorting field' : "Ðоле ÑоÑÑиÑовки", 'Add' : "ÐобавиÑÑ", 'Remove' : "УдалиÑÑ", 'Playtime' : "ÐлиÑелÑноÑÑÑ", 'Year' : "Ðод", 'Track' : "ÐомеÑ", 'Title' : "Ðаголовок", 'Album' : "ÐлÑбом", 'Artist' : "ÐÑполниÑелÑ", 'Genre' : "ÐанÑ", 'Comment' : "ÐоменÑаÑий", 'Filename' : "ÐÐ¼Ñ Ñайла", 'Clear' : "ÐÑиÑÑиÑÑ", 'Do you want to clear playlist?' : "ÐÑ Ñ Ð¾ÑиÑе оÑиÑÑиÑÑ Ð¿Ð»ÑйлиÑÑ?", 'Do you want to remove selected items from the playlist?' : "ÐÑ Ñ Ð¾ÑиÑе ÑдалиÑÑ Ð²ÑделеннÑе композиÑии из плÑйлиÑÑа?", 'Sort' : "СоÑÑиÑоваÑÑ", 'Sorting priorities' : "ÐÑиоÑиÑеÑÑ ÑоÑÑиÑовки" } } # Select only one translation which is good for a current language translation = translations [language] del translations def tr (sentence): return translation.get (sentence, sentence) |