Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using complete 100% translation from Launchpad with 0.10 some tags that should be translated are not translated #404

Closed
pychess opened this issue Feb 3, 2015 · 54 comments
Labels

Comments

@pychess
Copy link
Collaborator

pychess commented Feb 3, 2015

Original issue 404 reported by igor2x 2009-03-03

Hi,
today I have transleded 100% of text PyChess into Slovenian language using
Launchpad: https://translations.launchpad.net/pychess/trunk/+pots/pychess

Then I have done the following:

  1. after I had completed translation I have downloaded .mo file from
    Launchpad to my Ubuntu 8.10 notebook
  2. renamed downloaded .mo file to pychess.mo
  3. copied pychess.mo to locale directory:
    sudo cp pychess.mo /usr/share/locale/sl/LC_MESSAGES/
  4. set privileges to file:
    sudo chmod +r /usr/share/locale/sl/LC_MESSAGES/pychess.mo
  5. started the PyChess program by using: pychess command from Terminal

What I see this version of translation is most likely for 0.8 version of
PyChess, but I have installed 0.10 Alpha 2 PyChess on my notebook, because
official 0.8.2 from Ubuntu repository had some bug that prevented me to
play on-line chess with black figures. This bug is solved by 0.10 version
downloaded from http://code.google.com/p/pychess/downloads/list and
installed by deb file.

What I have found out that 0.10 does not show correctly all tags (it shows
English version instead of my translated version) with some translations
like in Action menu, there are the following items not translated at all
despite I have translated them in Launchpad:

  1. in Action menu Offer Pause
  2. in Action menu: Offer Resume
  3. in Action menu: Offer Undo
  4. in Action menu: Resign
  5. in Action menu: Ask to move
  6. in View menu: Fullscreen (this is probably new tag in 0.10 version,
    because I can't find it on Launchpad).
  7. in View menu: Show Sidepanels (probably new tab)
  8. Settings menu is in English (can't find in Launchpad, probably new in 0.10)
  9. in Game menu | New game window has the following not translated options:
    a) White player
    b) Black player
    c) Time control
    d) No controls
    e) Rapid (it looks new in 0.10)
    f) Chess Variant
    g) Play Normal chess
    h) Play Fischer Random chess (it looks new in 0.10)
    i) Play Losers chess
  10. When closing all tabs there are two windows at top there is: Opponent
    not translated
  11. At the same window but bottom (internet game) there is no translation
    with Handle and Password.
  12. At the same window there are both bottons "Start Game" and "Connect to
    FICS" are not translated.

Can you please fix all translations that was already available in 0.8 and
are now broken in 0.10 version.
Regards

@pychess pychess added the task label Feb 3, 2015
@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 1. posted by gbtami 2009-03-04

The general rule about translations is upadting template.po at first RC phase only.
This is because in alpha/beta phase strings and dialogs can change, maybe new
features can land in the code etc. But if you want to work on your translations right
now for svn head, you can read about it in the PyChess's README file.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 6. posted by igor2x 2009-03-04

@gbtami, I was just surprised to see the same name translation strings from 0.8 does
not work in 0.10. That is little bit strange. Can't figure it out why? I think that
same name translation strings should work in next version. If this is true, a lot of
strings would already be translated. So this is why I have reported a bug - the same
translation string names from one version to next one should be working.

Can any developer check out why for example Action menu | "Offer Pause" is not the
same string in 0.8 and 0.10? The same is for all other suggested strings. If this
strings works I would be perfectly satisfied.

Is there a much work to check out and if possible repair name strings in 0.10 that
would have the same name as in 0.8? It would be backward compatible and it would make
this 0.10 version very useful for my family and my chess friends which are not very
familiar with English

Thanks a lot

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 7. posted by gbtami 2009-03-06

You are right. Seems we did last time modifications in .glade files after generating
.po files. grrr. We will fix this in 0.10 of course.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 12. posted by igor2x 2009-03-07

@gbtami, thanks for looking into this problem.

By the way, I have done the following on Ubuntu 8.10:

  1. I installed subversion program and then downloaded development version from
    googlecode subversion using command:
    svn checkout http://pychess.googlecode.com/svn/trunk/ pychess-read-only
  2. cd pychess-read-only/
  3. run PyChess development version using: PYTHONPATH=lib/ ./pychess
  4. I see there is no Slovenian language available in 0.10. I translated PyChess into
    Slovenian using Launchpad few days ago and it looks Slovenian language hasn't been
    taken into synchronization yet. So I did the following to include Slovenian language
    manually:
  5. I downloaded po file from Launchpad from
    http://launchpadlibrarian.net/23572596/pychess\_pychess-sl.po
  6. I created two subdirectories sl/LC_MESSAGES into pychess-read-only/lang/
  7. I copied pychess_pychess-sl.po file into
    pychess-read-only/lang/sl/LC_MESSAGES/pychess.po
  8. I run PyChess again: PYTHONPATH=lib/ ./pychess
    But still Slovenian language is not accepted. I get PyChess in English. Any idea how
    to get Slovenian language which is at the moment not included into PyChess? Could you
    please include Slovenian language into subversion development version from Launchpad.

One more question. How can I easily merge template.po from 0.10 version with my
pychess_pychess-sl.po from 0.8 version to get new version of Slovenian language that
would work for 0.10 version?

Regards

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 13. posted by gbtami 2009-03-07

The programs using gettext read from .mo files, not from .po files when they run.

From our README:

To create po files from glade and python files, use
$ sh create_template.po.sh

To merge to files for like to update your old translation to a new PyChess
version, use
$ msgmerge oldtranslation.po newtemplate.po -o tobetranslated.po

To compile the po file to an mo file (machine readable file) use
$ msgfmt mytranslation.po -o mytranslation.mo

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 15. posted by igor2x 2009-03-09

@gbtami, I have read this file, but I couldn't understand why should be generating
python files... Now I understand template.po file can be an old file...

Now I have followed you tips and successfully translated development version. Thanks
a lot for help.

One more question:
Is there any location (URL) where I could upload this 0.10 development translation.
What I would like is to give info to my friends and post info to my country chess
forum, something like:

  1. download 0.10 deb file from URL...
  2. install deb package
  3. download .mo translation file from URL... (THIS LOCATION I NEED)
  4. copy .mo file to...
    etc

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 16. posted by gbtami 2009-03-11

I think the best place for translations is our svn. But we dont't store generated
files there (like .mo files). So the best i can suggest is to register at some public
file sharing place, and upload the .mo file there. At least until your translations
will go into our next release.
You just have to ask lobais to give you svn access.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 18. posted by igor2x 2009-03-16

I was just wondering... why am I having such a questions where to load. I will just
load to this bug tracker. :)

See attachment at bottom of this post.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 19. posted by gbtami 2009-03-17

Committed the 0.10 version for trunk. I'm not sure about 0.8. I hope we can release
0.10 without releasing any new 0.8.x :)
Thank your very much working on translating PyChess!

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 20. posted by gbtami 2009-03-17

  • changed status to: Accepted

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 21. posted by gbtami 2009-03-19

  • added label: Task

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 22. posted by gbtami 2009-03-19

  • changed status to: Started

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 23. posted by igor2x 2009-03-19

gbtami, I have downloaded new version from subversion and I see Slovenian language is
included into PyChess. Thanks a lot. You can close this problem as solved.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 24. posted by gbtami 2009-03-19

  • changed status to: Fixed

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 25. posted by igor2x 2009-03-19

I have attached new translation (version 2). Please see attachment.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 26. posted by gbtami 2009-03-19

committed to svn

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 27. posted by igor2x 2009-03-20

I have attached new translation (version 3). Please see attachment.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 28. posted by gbtami 2009-03-21

Committed to svn.
Some named_argument was missing in %(named_argument)s formulas.
They are necessary to avoid "TypeError: not enough arguments for format string", so
i'v fixed them.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 29. posted by igor2x 2009-03-21

Gbtami, thank you very much for repairing strings.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 30. posted by igor2x 2009-03-21

New translation version.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 31. posted by gbtami 2009-03-22

committed

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 32. posted by igor2x 2009-03-23

New translation version.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 33. posted by gbtami 2009-03-23

committed

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 34. posted by igor2x 2009-03-24

New translation version.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 35. posted by igor2x 2009-07-28

I have added new translation for 0.10 version (see 0.10 folder in tar file).
Translation is updated to 0.10 version 1510 svn release.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 36. posted by gbtami 2009-07-28

committed

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 37. posted by igor2x 2009-08-10

Hi,
I have downloaded the latest svn 1512. And if I understand correctly above
translation is not included. Am I right?
Regards

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 38. posted by gbtami 2009-08-10

As i see the the sl po file from ...7.tar.gz is the same as in svn trunk.
Where can i see the difference?

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 39. posted by igor2x 2009-09-29

I have added new Slovenian translation for 0.10 version svn 1522.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 40. posted by gbtami 2009-09-29

committed

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 41. posted by igor2x 2010-02-04

I have added new Slovenian translation for 0.10 revision svn 1605.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 42. posted by gbtami 2010-02-04

committed

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 43. posted by igor2x 2010-02-17

I have added new Slovenian translation.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 44. posted by gbtami 2010-02-17

committed, thx.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 45. posted by igor2x 2010-04-07

I have added new Slovenian translation.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 46. posted by gbtami 2010-04-09

committed, thx.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 47. posted by igor2x 2010-07-10

I have added new Slovenian translation.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 48. posted by gbtami 2010-07-11

committed, thx.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 49. posted by igor2x 2010-07-12

Today there was a seek dialog added and I have translated this new strings to Slovenian. I have added new Slovenian translation.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 50. posted by gbtami 2010-07-12

This seems identical to version_12.
Btw. do you know we have a #pychess channell in irc.freenode.net ?

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 51. posted by igor2x 2010-07-13

Sorry, you are correct I have attached old translation file. It looks unlucky number 13. :)

Now I have attached new translation file.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 52. posted by gbtami 2010-07-13

committed, thx.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 53. posted by igor2x 2010-08-17

I have updated Slovenian translation for the latest hg.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 54. posted by gbtami 2010-08-17

There is something wrong with this .tar.gz file. Can you please check it again?

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 56. posted by igor2x 2010-08-18

I have executed "history" command and I see I have done:
mv pychess.po PyChess_slovenian_translation_version_15.tar.gz

So actually this file should be a .po file and not .tar.gz. I should be more careful.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 57. posted by gbtami 2010-08-18

Ok, committed. Thx.!

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 58. posted by igor2x 2010-08-20

I have fixed some translation errors and updated translation to the latest hg.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 59. posted by gbtami 2010-08-20

committed, thx.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 60. posted by igor2x 2010-08-30

I have fixed multiple bugs in translation and upgraded translation to the latest hg.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 61. posted by gbtami 2010-08-30

committed, thx.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 62. posted by igor2x 2010-09-02

I have fixed some bugs in translation and upgraded translation to the latest hg.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 63. posted by gbtami 2010-09-02

committed, thx.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 64. posted by igor2x 2010-09-03

Few minutes ago I have pushed translation directly into hg according to Lobais instructions. I can see changes in https://code.google.com/p/pychess/source/list with revision number 822bbdbe8d. Can someone please check if everything is OK or should I do something else. If everything is OK, I think this bug report will finally be closed for ever (I will commit translation changes directly to repository).
Thanks for help.

@pychess
Copy link
Collaborator Author

pychess commented Feb 3, 2015

Original comment 65. posted by gbtami 2010-09-03

Everything is OK.
Welcome aboard! :)

@pychess pychess closed this as completed Feb 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants