[Koha-bugs] [Bug 12061] New: tmpl_process3.pl new features

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 10 06:01:03 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12061

            Bug ID: 12061
           Summary: tmpl_process3.pl new features
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: I18N/L10N
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: bgkriegel at gmail.com
        QA Contact: testopia at bugs.koha-community.org
                CC: frederic at tamil.fr

New features on tmpl_process3.pl are needed to fulfill some tasks

a) Cleaning of PO files
-----------------------
When doing an update of translation files, old strings are preserved as
comments (^#~). As a normal part of update this are removed with a script, and
backup files removed.
Translators that use to do offline translations remove those comments

I propose a patch to remove obsoleted strings and backup files.
(see Bug 8257)

b) Multiple source dirs
-----------------------
Currently only files below one source dir are scanned for strings.

At this moment we have 3 opac files (prog/ccsr/bootstrap), but they share a lot
of common strings (this date on master):
bootstrap 2282 strings
prog      2274 strings
ccsr      109  strings

But there are only 382 different strings between bootstrap/prog, and only 8
between prog/ccsr

When we update translation files we need to do the same translation on each
file, not a big problem for near complete translations, but a big task for new
languages.

An hypothetical unified PO file for all opac themes would have 2476 strings,
and we need to translate only once each string. I know that prog is programmed
to be phased out soon, but each bugfix needs to be ported to each current
theme, so the need to translate each file.

I propose a patch to add the ability to scan multiple source dirs to build a
translation file, to make for example and unified opac PO file. This has not
been requested by nobody yet, but is in my mind every time I translate.

c) Include/Exclude scanned files by name
----------------------------------------
Currently we can exclude "dir" names, which was used for Bug 7934.
But certain requests needs the ability to include/exclude files, for example we
have a request to separate translations for each MARC dialect.

It's a valid request. Normally a language will only use one MARC dialect, and
only one will use NORMARC :)

To do that we need a way to select which files to scan, or not scan (and also
the previous feature, multiple source dirs)

I propose a patch to add this feature, choosing which files to include/exclude
given some strings to match with filenames

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list