Re: [translate-pootle] Is possible Update languages from command line?

2008-02-29 Thread F Wolff
Op Vrydag 2008-02-29 skryf Normando Hall:
 I need to update all languages from templates through command line 
 because I have implemented svn access only for templates. So, when new 
 or modify template is added or commit to repository, I have a cron 
 script to make an update from svn to pootle templates dir. Then I want 
 to parse templates over all languages automatically (may be cron) 
 through command line.
 
 Regards, Normando

Hallo Normando

You can easily script updating with either msgmerge from the gettext
package, or with pot2po from the Translate Toolkit:
http://translate.sourceforge.net/wiki/toolkit/pot2po

In this step you can also use a translation memory (compendium of old
translations) to update the files if you want. Pot2po will be slower
(especially if you don't have the python-Levenshtein package installed),
but gives slightly more useful fuzzy matches (in my opinion). Either
should be fine.

You might want to write to temporary output to make sure that it
completed without error before you overwrite the existing file in
Pootle's directory tree. Or you might want to review what changed before
you put it live. This allows all of that.

As long as the file existed there before, it shouldn't be necessary to
restart the server, as Pootle should detect that the file on the file
system is newer when it has been overwritten. It might be good if your
Pootle users know that you are doing this, in case they are working
offline, or using assignments. Mostly I don't think it should be a big
issue, though.

Groete
Friedel


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] Make commits from command line

2008-02-29 Thread Christian Perrier
Quoting Normando Hall ([EMAIL PROTECTED]):
 Hello again :)
 
 I want to make commit from command line. I can make commits through cron 
 scripts, but I want through pootle, because add a message about 
 translator and translated strings.
 
 Is this possible?


As far as I know, no.

This is something we also need for Debian's experimental Pootle
server.

If someone is able to work on this, that would rock.

The same stands for Pootle updates from the command-line which you
mentioend earlier.



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] Make commits from command line

2008-02-29 Thread Lars Kruse
Hi Normando,

 I want to make commit from command line. I can make commits through cron 
 scripts, but I want through pootle, because add a message about 
 translator and translated strings.

I am not sure, if you want to do the commits via command line or via pootle.

For command line: make sure, that you use the appropriate system user (e.g.
pootle) to avoid trouble with file permissions and ownership.

For commits via the pootle web interface take a look at:
http://translate.sourceforge.net/wiki/pootle/version_control
http://translate.sourceforge.net/wiki/pootle/permissions

I hope this helps,
Lars

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] Make commits from command line

2008-02-29 Thread Miklos Vajna
On Fri, Feb 29, 2008 at 07:19:05AM +0100, Christian Perrier [EMAIL PROTECTED] 
wrote:
  I want to make commit from command line. I can make commits through cron 
  scripts, but I want through pootle, because add a message about 
  translator and translated strings.
  
  Is this possible?
 
 
 As far as I know, no.
 
 This is something we also need for Debian's experimental Pootle
 server.

hmm. i think it's good to force users to commit manually, so that you
can run 'git blame' (or other similar command for other vcses) to see
who committed for example a mistake. if you do anonymous commits, then
you can't blame anybody when a bug is found.

- VMiklos


pgpNmJ6GjRosU.pgp
Description: PGP signature
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle


Re: [translate-pootle] Make commits from command line

2008-02-29 Thread F Wolff
Op Vrydag 2008-02-29 skryf Miklos Vajna:
 On Fri, Feb 29, 2008 at 07:19:05AM +0100, Christian Perrier [EMAIL 
 PROTECTED] wrote:
   I want to make commit from command line. I can make commits through cron 
   scripts, but I want through pootle, because add a message about 
   translator and translated strings.
   
   Is this possible?
  
  
  As far as I know, no.
  
  This is something we also need for Debian's experimental Pootle
  server.
 
 hmm. i think it's good to force users to commit manually, so that you
 can run 'git blame' (or other similar command for other vcses) to see
 who committed for example a mistake. if you do anonymous commits, then
 you can't blame anybody when a bug is found.


Well, the Last-Translator header field helps a little bit, and if people
commit manually, that can also help. In XLIFF files, you might be able
to store all sorts of interesting meta information (like who, when,
etc.), but the tool support is not really there yet.

I guess the support provided by Pootle is really meant for cases where
we want to give VCS access to more people that might not know or care
about the differences. And of course, no extra accounts necessary, as
the Pootle accounts are used.

It is not ideal for everything, but solves some problems for some
people. People who want to script commits from the server / cron can
still do that, and it won't interfere with Pootle as long as it was
working in the first place (non-interactive authentication).

Friedel


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle