]> git.koha-community.org Git - koha.git/commit
Bug 5506 Shorten .po file comment lines
authorFrédéric Demians <f.demians@tamil.fr>
Tue, 21 Dec 2010 20:42:41 +0000 (21:42 +0100)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Tue, 21 Dec 2010 22:02:37 +0000 (17:02 -0500)
commit403eea2c1c46994e6d4462cf52a2ded4d6bee363
treefbf2c7e4f72ac5fab10a4b5e2acd885255f4fdb9
parent228695c7fe397915abd7ca013812cc740ec7e108
Bug 5506 Shorten .po file comment lines

In opac/staff templates .po files, we have comment lines contextualizing
extracted text in templates. Path to template are absolute. For example, we can
have:

  #: /home/katrin/kohaclone/koha-tmpl/intranet-tmpl/prog/en/...
     modules/cataloguing/addbiblio.tmpl:585

The first part of the pathname is useless. With this patch, we just keep
relative path to tempalte from Koha template main directory. The above example
becomes:

  #: intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl:585

To be applied on [3.2]

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit f460afbad6566e68bdbaddb5577f13f77a86a877)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
misc/translator/xgettext.pl