Opened 7 years ago

Closed 7 years ago

#4593 closed task (fixed)

localization for Watch and listen

Reported by: kreneskyp Owned by: sayamindu
Priority: high Milestone: 8.2.0 (was Update.2)
Component: localization Version:
Keywords: Pootle helix localization release? Cc: sayamindu, walter, kreneskyp, hhardy
Blocked By: Blocking:
Deployments affected: Action Needed:
Verified: no

Description

Watch and listen activity has a small set of buttons and menus to be translated into other languages. We have noone on staff capable of doing translations.

Attachments (1)

1.pot (1.3 KB) - added by kreneskyp 7 years ago.
POT file for watch and listen (generated from version 10 of activity)

Download all attachments as: .zip

Change History (35)

comment:1 Changed 7 years ago by sayamindu

  • Milestone changed from Untriaged to Update.1
  • Priority changed from normal to high
  • Type changed from enhancement to task

Could you give me the URL where you are hosting the source code for this ? We can in that case add your repository to Pootle when it is open for translators.

comment:2 Changed 7 years ago by RafaelOrtiz

  • Owner changed from sayamindu to jirwin

reassign to jirwin to provide the link to the source code.

comment:3 Changed 7 years ago by kreneskyp

  • Owner changed from jirwin to sayamindu

The cvs repository only allows access if you have an account and a registered public/private key pair. this is required even to just check out the code. Let me know if this is an issue

here is detailed instructions for getting read access to the helix repositorys:
https://helixcommunity.org/developers/get_connected_to_cvs/quickstart.html

checkout using the command:
cvs -d :ext:your_user_name@cvs.helixcommunity.org/cvsroot/olpc-player co sugar

commit access is restricted but may be granted on a case by case basis.

also, please refer all questions to myself as i am the project lead for w&l.

comment:4 Changed 7 years ago by sayamindu

In the current situation, I would recommend that you attach the latest POT to this ticket. We will integrate it into our Pootle setup. When you have a newer POT, you can open a new ticket (under the component localization), and we will update the POT in Pootle.

comment:5 Changed 7 years ago by kreneskyp

  • Cc sayamindu added

We currently don't have a POT file to attach. Where are docs on how to make one?

comment:6 Changed 7 years ago by RafaelOrtiz

Hi, you can see this documentation:

http://wiki.laptop.org/go/Localization
http://wiki.laptop.org/go/Python_i18n

Hope this helps.

comment:7 Changed 7 years ago by kreneskyp

I get the following error when trying to generate the .POT from within the jhbuild shell. a .POT is created but it only has the activity name in it. All other strings are missing

peter@floyd:~/wrk/sugar/sugar-jhbuild/build/share/activities/Watch & Listen.activity$ ./setup.py genpot
WARNING: NEWS file is missing.
xgettext: no input file given
Try `xgettext --help' for more information.
ERROR - xgettext failed with return code 1.

comment:8 Changed 7 years ago by bemasc

See also #4841.

comment:9 Changed 7 years ago by sayamindu

Do you have a MANIFEST file ? The code looks into the MANIFEST file to check for files which contribute to the UI.

comment:10 Changed 7 years ago by kreneskyp

there is no MANIFEST file in the bundle

comment:11 Changed 7 years ago by kreneskyp

created a manifest file and tried again. The file does exist, i think it might be an issue with spaces in the directory name.

peter@floyd:~/wrk/sugar/sugar-jhbuild/build/share/activities/Watch & Listen.activity$ ./setup.py genpot
WARNING: NEWS file is missing.
xgettext: error while opening "Watch\ \&\ Listen.activity/setup.py" for reading: No such file or directory
ERROR - xgettext failed with return code 1.

comment:12 Changed 7 years ago by sayamindu

Hmm - could you point me to a tarball of the activity which I can download and try out ?

comment:13 Changed 7 years ago by kreneskyp

Just put together this new bundle with Manifest file added:
http://staff.osuosl.org/~peter/myfiles/helix/Watch%20&%20Listen-11.xo

I also tried changing the directory name to be "WatchAndListen" and received the same "no such file" error.

comment:14 Changed 7 years ago by sayamindu

Ahh - your MANIFEST file was referring to

Watch\ \&\ Listen.activity/foo
Watch\ \&\ Listen.activity/bar

while it should be

foo
bar

A simple find and replace in your MANIFEST file solves the issue. :-) Let me know if the thing works.

Changed 7 years ago by kreneskyp

POT file for watch and listen (generated from version 10 of activity)

comment:15 Changed 7 years ago by kreneskyp

ok the changes to the manifest worked. I thought it was a little odd to include the containing directory in the paths but thats what the wiki had said to do.

The pot file is attached

comment:16 Changed 7 years ago by sayamindu

Thanks - we'll put this in XO Extern (or whatever we name that category to) and put in Pootle (hopefully by the end of this week). Could you point me to the wiki page which says this ?

comment:17 Changed 7 years ago by kreneskyp

i was mistaken about the wiki page. I was looking at the Activity tutorial and right after it describes the manifest it show "your directory structure". I mistook it for an example of a manifest file.

comment:18 Changed 7 years ago by sayamindu

Is there a Update-1 branch for Watch & Listen? All translator energy is being directed for the Update 1 release now, and if you have an Update 1 branch (note that code freeze and string freeze is in effect now) - I can add it to the Update 1 project of Pootle. I will be sending you a tarball of the translated files on the 18th.

comment:19 Changed 7 years ago by kreneskyp

  • Cc walter kreneskyp added

The packages in joyride are horribly out of date. I have repeatedly asked for access to dev.laptop.org (#5036) and have not received it. There are updates beyond what is in joyride (we are on version 11) but I can't submit them.

sayamindu:
Where are the translations?

comment:20 Changed 7 years ago by Blaketh

  • Keywords release? added

comment:21 follow-up: Changed 7 years ago by sayamindu

  • Cc hhardy added

Currently it is very difficult to add any project in Pootle which is not hosted in Git - or which does not provide a straight forward way to retrieve the latest POT file (even a canonical http URL would do - as in the case of Record).

I have added Henry Hardy (our sysadmin) to CC - Henry, could you possibly set up a Git project for Watch and Listen ?

If this is a real emergency - I can include a POT from a recent .xo bundle in Pootle, but I would really really avoid setting a precedence here. Stale POT files are something I would like to avoid as much as possible.

comment:22 in reply to: ↑ 21 Changed 7 years ago by kreneskyp

Replying to sayamindu:

I have added Henry Hardy (our sysadmin) to CC - Henry, could you possibly set up a Git project for Watch and Listen ?

what needs to go into the GIT repo? The source or the package? we are already using CVS for the project. Personally i'd prefer GIT but im not sure we can make that change.

comment:23 follow-up: Changed 7 years ago by sayamindu

The source - if that is possible. If that is not possible - I would need a way to get the latest POT file (the latest POT file is downloaded on a daily basis). Do you use anything like CVSWeb or anything like that ?

For example, for Record, we grab the latest POT from the web interface to the SVN repository used by the Record team. A tarball of the record translations are done each night, and can be downloaded by the record developers whenever they want to make a new release.

comment:24 in reply to: ↑ 23 Changed 7 years ago by kreneskyp

Replying to sayamindu:

The source - if that is possible. If that is not possible - I would need a way to get the latest POT file (the latest POT file is downloaded on a daily basis). Do you use anything like CVSWeb or anything like that ?

For example, for Record, we grab the latest POT from the web interface to the SVN repository used by the Record team. A tarball of the record translations are done each night, and can be downloaded by the record developers whenever they want to make a new release.

I thought there was a CVSWeb for helixcommunity.org but i can't find it. It may require authentication to get to. The only reason for keeping it in helixcommunity.org's CVS is because thats where the rest of helix code is. There is no technical reason for keeping it there. I will bring up switch to GIT for the activity.

comment:25 follow-up: Changed 7 years ago by hhardy

Tree is set up with Sayamindu as owner:

root@crank:~# less /home/olpc-code/scripts/new-hosted-tree
root@crank:~# /home/olpc-code/scripts/new-hosted-tree watch-listen sayamindu
Adding git tree at /git/projects/watch-listen.
Initialized empty shared Git repository in /git/projects/watch-listen/
Enter short project description for gitweb:
Watch and Listen project
Finished.

--HH.

comment:26 in reply to: ↑ 25 Changed 7 years ago by kreneskyp

Replying to hhardy:

Tree is set up with Sayamindu as owner:

root@crank:~# less /home/olpc-code/scripts/new-hosted-tree
root@crank:~# /home/olpc-code/scripts/new-hosted-tree watch-listen sayamindu
Adding git tree at /git/projects/watch-listen.
Initialized empty shared Git repository in /git/projects/watch-listen/
Enter short project description for gitweb:
Watch and Listen project
Finished.

--HH.

what is the url to the git repo? and if sayamindu is the owner do i have commit access?

comment:27 Changed 7 years ago by hhardy

  • Owner changed from sayamindu to hhardy

Added sayamindu and krenesky to group watch-listen and made git files owned by group watch-listen just now. Are there any other committers which need to be added?

git+ssh://sayamindu@dev.laptop.org/git/projects/watch-listen
git+ssh://krenesky@dev.laptop.org/git/projects/watch-listen

--HH henry@…

comment:28 Changed 7 years ago by kreneskyp

schonstal will also need commit access but i do not believe he has an account yet.

comment:29 Changed 7 years ago by kreneskyp

Activity is checked in along with a newly generated POT file. The only change to the pot is the filename now matches the name of the activity.

comment:30 Changed 7 years ago by hhardy

  • Owner changed from hhardy to sayamindu

comment:31 Changed 7 years ago by sayamindu

  • Status changed from new to assigned

Thanks for this. I'll add Watch & Listen to Pootle by tomorrow. Henry, the Pootle user will also need write access to the repository.

comment:32 Changed 7 years ago by hhardy

The pootle user has been added to the watch-listen group on dev.

comment:33 Changed 7 years ago by sayamindu

watch and listen is on Pootle. Closing this.

comment:34 Changed 7 years ago by sayamindu

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.