Quoting David García Granda (dgra...@gmail.com): > Hi again, > > Deadline for releasing pytrainer 1.10.0 is getting closer (by the end > of current week) and localizations are ready to get updated. PO files > are already available in our repository (see > https://github.com/pytrainer/pytrainer/tree/master/locale) so no need > to execute complicated commands to start localization work. > > So far only ES and GL ones are 100% up to date, don't miss the chance > to get yours done!:
May I suggest an improvement in some messages. Maybe several are concerned, indeed. new messages include: Activity selected was already present in DB %d selected activities were already present in DB I haven't looked at the code, but it seems that this message is indeed meant for a case where one tries to import 1or more activity in the database. Then, you included in the code a case test in order to display a different message depending on the number : first message when there is exactly *one* activity et the other one when there is more than one. I'm afraid this is a too Latin-centric view...:-) In some languages (a good example are slavic languages), the form of plural can be different on the number, not only (like we have in Westerne-European languages) when the number is one or more. For instance, in slavic languages, the plural form is different for 11, 21, 31, etc. then 12, 22, 32, etc. Example for Polish where "plik" is the word for "file", when you count files you count like this: 1 plik 2,3,4 pliki 5-21 pliko'w 22-24 pliki 25-31 pliko'w In some others, this can even be more complicated....or simple (most Asian languages do not have the concept of plural at all). That's why gettext plural forms were invented. See http://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html for details. I'm indeed sure it's possible to implement this in Python (http://docs.python.org/2/library/gettext.html seems to have good example with "gettext.ngettext()") ....and there are probably quite many places in Pytrainer where is could be used. Of course, I'd suggest leaving this for a later update..:-) ------------------------------------------------------------------------------ Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 _______________________________________________ Pytrainer-devel mailing list Pytrainer-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytrainer-devel