|
From: Chris L. <cjl...@gm...> - 2011-12-16 21:54:02
|
On Fri, Dec 16, 2011 at 4:16 PM, Mason Leung <rhy...@gm...> wrote: > Hi Chris, > > Couple more questions > > 1) you mentioned about placing the pot file in /po. I have pootle installed > in /usr/local/pootle, where do I place that pot file for my install? If I > put the lang specific .po file in /usr/local/pootle/po/<proj name>/<lang> > and do a 'rescan project files' I can see it show up. But I have not been > able to generate the .po uses using the .pot. The developer places the .POT file in the /po directory of git (the code repo). In our situation, the developer never touches Pootle themselves. If you already have completed lang-specific PO files, you generate the blank lang-specific PO file (from Templates) first, then you do a language-specific "upload with overwrite" or an "upload with merge" to populate it. > 2) In the pootle UI, under the 'files' tab for each project, it has a > 'update files from templates' button, where does it read the .pot from? I > assume this creates .po from .pot POT files in Pootle go into a special language project called "Templates". The can get there by and 'Update from VCS or by the potgenerator scripts (run as a cron job). It is from the Poolte Templates "language" that 'Update from Templates" works to merge in new / changed strings. > 3) Did you guys have something that hookup git and pootle? I don't see > there is a 'commit to vcs' link anywhere. The user I use has the permission > to 'can commit to version control', but I just don't see how to enable it in > pootle I did not do the initial install of the system, but yes, our git and Pootle talk to each other. For us, "Commit to VCS" pushes the Pootle PO to the git /po directory with the lang-code as it's name. Read this section http://wiki.sugarlabs.org/go/Service/translate#Files and look at our project_list.ini file http://git.sugarlabs.org/pootle-helpers/mainline/trees/master/potupdater cjl |