Commit Graph

687 Commits

Author SHA1 Message Date
Arthur Suzuki 4d36cc3458
Fix translations for 21.11.21
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-05-25 14:33:36 +02:00
Koha translators d4def6f9e2 Translation updates for Koha 21.11.21 2023-05-25 06:27:37 -03:00
Arthur Suzuki 70317e2f90
Fix translations for Koha 21.11.20
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-05-11 14:57:30 +02:00
Koha translators 3f7716a9ba Translation updates for Koha 21.11.20 2023-05-04 03:36:27 -03:00
Tomas Cohen Arazi 92ad549936 Bug 33341: Address some perlcritic errors in 5.36
Some old-style code is making our tests fail when run in Debian Testing.

This patch addresses this.

To test:
1. Launch bookworm KTD:
   $ KOHA_IMAGE=master-bookworm ktd up -d
2. Run:
   $ ktd --shell
  k$ prove t/00-testcritic.t
=> FAIL: It fails!
3. Apply the patch
4. Repeat 2
=> SUCCESS: Tests now pass!
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 10d12f999f)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
(cherry picked from commit c1c5420afa)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 548a3325ba)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-05-03 21:03:35 +02:00
Arthur Suzuki 968a026972
Fix translation errors for 21.11.19
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-04-03 11:56:43 +02:00
Koha translators 1ec3563cad Translation updates for Koha 21.11.19 2023-03-30 06:13:05 -03:00
Arthur Suzuki d2bc6f537b
Fix translations for Koha 21.11.18
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-03-06 11:26:20 +01:00
Koha translators a70eac989f Translation updates for Koha 21.11.18 2023-03-06 05:10:33 -03:00
Jonathan Druart 0d73f1b9a2 Bug 32356: Install installer translated files on update
If the installer files exist for a given language, the translate script
won't update it.
We should get a confirmation from Bernardo (author of bug 24262), but I
don't understand why it could be needed (side-effects?)

Test plan:
Installer several times the same language, drop the DB and run the
installer+onboarding process.
Check files installed by the installer (yaml for notice templates,
biblio frameworks) have inserted the data properly in DB.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit aa3444505f)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
(cherry picked from commit 27d128c3ab)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 1c19bb0532)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-02-17 14:08:10 +01:00
Arthur Suzuki 2d46616524
Fix translations for Koha 21.11.16
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-01-27 11:06:33 +01:00
Koha translators 2e7b38917a
Translation updates for Koha 21.11.16 2023-01-27 11:06:33 +01:00
Koha translators f9db6902bf Translation updates for Koha 21.11.15 2022-12-23 13:01:13 +01:00
Arthur Suzuki e9a0e89de1 Fix translations for Koha 21.11.14
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2022-11-21 16:56:33 +01:00
Koha translators 7b3df5d5f0 Translation updates for Koha 21.11.14 2022-11-21 06:46:04 -03:00
Arthur Suzuki 0da0497860 Fix translations for Koha 21.11.13
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2022-10-22 12:02:55 +02:00
Koha translators 79beb058ba Translation updates for Koha 21.11.13 2022-10-21 19:34:42 -03:00
Bernardo Gonzalez Kriegel c2a14da3e2 Bug 31292: Untranslatable string in sample_notices.yaml
This patch removes a regex that discard lines in multiline YAML values
On close inspection, there is no need for it.

To test:
1) go to misc translator, update some language
    ./translate update fr-CA

2) check missing string

    egrep "You may pick up your article" po/fr-CA-installer.po

   from sample_notices.yaml

3) apply the patch, repeat 1)

4) repeat 2), verify the string is present in the translation file

5) translate the new string, install the language,
   verify string is present in the translated file
    ./translate install fr-CA

   check fr-CA/mandatory/sample_notices.yml

There are three new strings
msgid "%sDear %s %s,%s"
msgid "%s%s%sTitle: %s"
msgid "%sYou may pick up your article at %s.%sYou can download the scanned materials via the following url(s): %s.%s"

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 99790c6c38)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 314595d9ac)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2022-10-12 15:46:28 +02:00
Bernardo Gonzalez Kriegel 0f6093ed99 Bug 28707: Translate RECEIPT notice
There is a badly crafted regex used when extracting
strings in multiline fields in yaml files
The regex is my own, introduced in Bug 24262, sorry.

This patch correct it a little. Better eyes are welcome.

To test:
1) go to misc translator, update some language
    ./translate update fr-CA

2) check missing strings

    egrep "Total out|Operator ID|August 31" po/fr-CA-installer.po

   first two are from sample notices, third from sample creator data

3) apply the patch, repeat 1)

4) repeat 2), verify the strings are present in the translation file

5) translate some of the new strings, install the language,
   verify strings are present in the translated files
    ./translate install fr-CA
   check fr-CA/optional/sample_creator_data.yml and
   fr-CA/mandatory/sample_notices.yml

There are some 60+ new strings.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 160d96e176)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 577eed32b5)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2022-10-12 12:12:39 +02:00
Arthur Suzuki e32ff33d14 Fix translations for Koha 21.11.12
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2022-10-03 23:21:06 +02:00
Koha translators e09e35ef73 Translation updates for Koha 21.11.12 2022-10-03 23:21:05 +02:00
Arthur Suzuki 93b10e8904 Fix translations for Koha 21.11.11
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2022-08-22 10:31:41 +02:00
Koha translators 66012fa9c8 Translation updates for Koha 21.11.11 2022-08-21 21:11:13 -03:00
Arthur Suzuki 21d7bf47a5 Fix translations for Koha 21.11.10
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2022-07-22 13:02:10 +02:00
Koha translators bedc79fae7 Translation updates for Koha 21.11.10 2022-07-22 13:01:30 +02:00
Arthur Suzuki 4dda5f0a75 Fix translations for Koha 21.11.07
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2022-06-21 17:31:38 +02:00
Koha translators b27ec87e11 Translation updates for Koha 21.11.07 2022-06-21 04:18:37 -03:00
Kyle Hall b6e3c442d8 Fix translations for Koha 21.11.06
Signed-off-by: Kyle Hall <kyle@bywatersolutions.com>
2022-05-25 11:18:28 -04:00
Koha translators 63a7bc2869 Translation updates for Koha 21.11.06 2022-05-25 11:02:04 -03:00
Jonathan Druart 12920fcdac Fix translations for Koha 21.11.05
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2022-04-26 11:05:01 -04:00
Koha translators 46c7eab73b Translation updates for Koha 21.11.05 2022-04-26 10:25:38 -03:00
Kyle Hall 9ac7971ac0 Fix translations for Koha 21.11.04
Signed-off-by: Kyle Hall <kyle@bywatersolutions.com>
2022-03-24 13:52:29 -04:00
Koha translators 610771d8f0 Translation updates for Koha 21.11.04 2022-03-24 13:15:45 -03:00
Kyle M Hall 83a67275f9 Fix translations for Koha 21.11.03
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2022-02-25 13:34:10 -05:00
Koha translators 4cd5997464 Translation updates for Koha 21.11.03 2022-02-25 13:21:47 -03:00
Kyle Hall 145c416f99 Fix translations for Koha 21.11.02
Signed-off-by: Kyle Hall <kyle@bywatersolutions.com>
2022-01-31 10:43:51 -05:00
Koha translators 9ebfc2f4c3 Translation updates for Koha 21.11.02 2022-01-31 11:37:23 -03:00
Kyle Hall ac904f94a4 Fix translations for Koha 21.11.01
Signed-off-by: Kyle Hall <kyle@bywatersolutions.com>
2021-12-22 13:15:22 +00:00
Koha translators b98b873c12 Translation updates for Koha 21.11.01 2021-12-22 13:15:22 +00:00
Jonathan Druart 1e52c2a2fc 21.11.00 - Fix translation issues
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-11-26 12:26:48 +01:00
Koha translators bb1bcc411e Translation updates for Koha 21.11.00
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-11-26 12:26:48 +01:00
Jonathan Druart e975ed4e3e Bug 18984: Remove *-NORMARC.po files
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-10-07 15:37:34 +02:00
Jonathan Druart 08c03af2ae Bug 18984: Remove NORMARC support
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-10-07 15:36:40 +02:00
Jonathan Druart d587341d34 Bug 17600: Remove wrong C4::Context imports
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-09-20 14:44:27 +02:00
Jonathan Druart 903f50b6f0 Bug 17600: Fix POSIX imports
it fixes xgettext and (maybe) friends

[12:22:29] Error: Command failed: misc/translator/xgettext.pl --charset=UTF-8 -s -o /tmp/koha-Jaa9rf/Koha-marc-NORMARC.pot -f /tmp/koha-Jaa9rf/files
/tmp/koha-Jaa9rf/Koha-marc-NORMARC.pot at misc/translator/xgettext.pl line 387.
Use of uninitialized value in subroutine entry at misc/translator/xgettext.pl line 388.
Argument ">:encoding(utf-8)" isn't numeric in subroutine entry at misc/translator/xgettext.pl line 388.
Argument "/tmp/koha-Jaa9rf/Koha-marc-NORMARC.pot" isn't numeric in subroutine entry at misc/translator/xgettext.pl line 388.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-07-29 14:37:26 +02:00
Jonathan Druart f5bf73f722 Bug 17600: Fix tests
No idea why UpdateStats in C4::Circulation needs the fully qualified
namespace!

I kept getting
Undefined subroutine &C4::Circulation::UpdateStats called at /kohadevbox/koha/C4/Circulation.pm line 1643.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-07-16 09:47:01 +02:00
Jonathan Druart 9d6d641d1f Bug 17600: Standardize our EXPORT_OK
On bug 17591 we discovered that there was something weird going on with
the way we export and use subroutines/modules.
This patch tries to standardize our EXPORT to use EXPORT_OK only.

That way we will need to explicitely define the subroutine we want to
use from a module.

This patch is a squashed version of:
Bug 17600: After export.pl
Bug 17600: After perlimport
Bug 17600: Manual changes
Bug 17600: Other manual changes after second perlimports run
Bug 17600: Fix tests

And a lot of other manual changes.

export.pl is a dirty script that can be found on bug 17600.

"perlimport" is:
git clone https://github.com/oalders/App-perlimports.git
cd App-perlimports/
cpanm --installdeps .
export PERL5LIB="$PERL5LIB:/kohadevbox/koha/App-perlimports/lib"
find . \( -name "*.pl" -o -name "*.pm" \) -exec perl App-perlimports/script/perlimports --inplace-edit --no-preserve-unused --filename {} \;

The ideas of this patch are to:
* use EXPORT_OK instead of EXPORT
* perltidy the EXPORT_OK list
* remove '&' before the subroutine names
* remove some uneeded use statements
* explicitely import the subroutines we need within the controllers or
modules

Note that the private subroutines (starting with _) should not be
exported (and not used from outside of the module except from tests).

EXPORT vs EXPORT_OK (from
https://www.thegeekstuff.com/2010/06/perl-exporter-examples/)
"""
Export allows to export the functions and variables of modules to user’s namespace using the standard import method. This way, we don’t need to create the objects for the modules to access it’s members.

@EXPORT and @EXPORT_OK are the two main variables used during export operation.

@EXPORT contains list of symbols (subroutines and variables) of the module to be exported into the caller namespace.

@EXPORT_OK does export of symbols on demand basis.
"""

If this patch caused a conflict with a patch you wrote prior to its
push:
* Make sure you are not reintroducing a "use" statement that has been
removed
* "$subroutine" is not exported by the C4::$MODULE module
means that you need to add the subroutine to the @EXPORT_OK list
* Bareword "$subroutine" not allowed while "strict subs"
means that you didn't imported the subroutine from the module:
  - use $MODULE qw( $subroutine list );
You can also use the fully qualified namespace: C4::$MODULE::$subroutine

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-07-16 08:58:47 +02:00
Andrew Nugged a93f45ecc9 Add and fix few messages in second plural form for pl, be, ru languages
Fixed missed "singular" message which had word "one" instead of "{count}" for uk and ru because it should be used not only for "1" but also for "21, 31, ...".

Add formula for 2/3 form for Russian (Plural-Forms:...)
and Belarusian and Ukrainian formulas normalized to be the same for all three languages
2021-05-28 13:18:18 +02:00
Jonathan Druart 152733f66c Fix translation issues
sudo apt-get install translate-toolkit
    junitmsgfmt misc/translator/po/*.po
2021-05-28 13:18:15 +02:00
Koha translators 1f80ab7f62 Translation updates for Koha 21.05.00 2021-05-28 09:34:45 +02:00