From bugzilla-daemon@bugs.koha-community.org Mon Feb 27 16:22:13 2023
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject:
[Koha-bugs] [Bug 33077] New: Improve ease of translating template title tags
Date: Mon, 27 Feb 2023 15:22:12 +0000
Message-ID:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============3768645813040078255=="
--===============3768645813040078255==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=3D33077
Bug ID: 33077
Summary: Improve ease of translating template title tags
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: ASSIGNED
Severity: enhancement
Priority: P5 - low
Component: I18N/L10N
Assignee: koha-bugs@lists.koha-community.org
Reporter: oleonard@myacpl.org
QA Contact: testopia@bugs.koha-community.org
CC: frederic@tamil.fr
Depends on: 15395
Title tags (
) in templates present an especially difficult case for
translators because we can't use our usual trick of wrapping text elements wi=
th
. This results in strings like this waiting for translation:
#: koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt:6
#, c-format
msgid ""
"%s %s Modify city %s New city %s › %s %s Confirm deletion of city "
"› %s %s Cities › Administration › Koha "
We can instead use the i18n template plugin introduced by Bug 15395 to wrap
individual title tag elements like so:
[% t("Modify city") | html %]
Referenced Bugs:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=3D15395
[Bug 15395] Internationalization: plural forms, context, and more
--=20
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
--===============3768645813040078255==--
From bugzilla-daemon@bugs.koha-community.org Mon Feb 27 16:22:34 2023
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject:
[Koha-bugs] [Bug 33077] Improve ease of translating template title tags
Date: Mon, 27 Feb 2023 15:22:22 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============3635254467399894878=="
--===============3635254467399894878==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33077
Owen Leonard changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|koha-bugs@lists.koha-commun |oleonard@myacpl.org
|ity.org |
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
--===============3635254467399894878==--
From bugzilla-daemon@bugs.koha-community.org Mon Feb 27 19:34:44 2023
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject:
[Koha-bugs] [Bug 33077] Improve ease of translating template title tags
Date: Mon, 27 Feb 2023 18:34:43 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============4978616190488879637=="
--===============4978616190488879637==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33077
Owen Leonard changed:
What |Removed |Added
----------------------------------------------------------------------------
Patch complexity|--- |Small patch
Status|ASSIGNED |Needs Signoff
--
You are receiving this mail because:
You are watching all bug changes.
--===============4978616190488879637==--
From bugzilla-daemon@bugs.koha-community.org Mon Feb 27 19:34:54 2023
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject:
[Koha-bugs] [Bug 33077] Improve ease of translating template title tags
Date: Mon, 27 Feb 2023 18:34:45 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============3343977033659303267=="
--===============3343977033659303267==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33077
--- Comment #1 from Owen Leonard ---
Created attachment 147465
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=147465&action=edit
Bug 33077: Improve ease of translating template title tags
This patch uses the cities administration page as a proof-of-concept for
using the [% t() %] construction to wrap translatable string in template
tags. This should result in a significant improvement in
translatability.
To test, apply the patch and run the translation script to update the
.po files, e.g.
perl misc/translator/translate update fr-FR
Check the updated .po files:
- In fr-FR-staff-prog.po you should no longer see a reference to
cities.tt line 6, "#:
koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt:6"
- In fr-FR-messages.po you should see several strings which have been
pulled individually from the tag:
- cities.tt:9, msgid "Modify city"
- cities.tt:11, msgid "New city"
- cities.tt:15, msgid "Confirm deletion of city"
- cities.tt:19, msgid "Administration", msgid "Cities", msgid "Koha",
and msgid "Administration"
Translate the strings in fr-FR-messages.po and install the updated
translation:
perl misc/translator/translate install fr-FR
Swith to the update language in the staff interface and confirm that the
Cities page title is translated correctly.
--
You are receiving this mail because:
You are watching all bug changes.
--===============3343977033659303267==--
From bugzilla-daemon@bugs.koha-community.org Mon Mar 6 18:27:04 2023
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject:
[Koha-bugs] [Bug 33077] Improve ease of translating template title tags
Date: Mon, 06 Mar 2023 17:27:03 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0680302056287747012=="
--===============0680302056287747012==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33077
Caroline Cyr La Rose changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Needs Signoff |Signed Off
--
You are receiving this mail because:
You are watching all bug changes.
--===============0680302056287747012==--
From bugzilla-daemon@bugs.koha-community.org Mon Mar 6 18:27:14 2023
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject:
[Koha-bugs] [Bug 33077] Improve ease of translating template title tags
Date: Mon, 06 Mar 2023 17:27:05 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1893432456257973764=="
--===============1893432456257973764==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=3D33077
Caroline Cyr La Rose changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #147465|0 |1
is obsolete| |
--- Comment #2 from Caroline Cyr La Rose -=
--
Created attachment 147794
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=3D147794&action=
=3Dedit
Bug 33077: Improve ease of translating template title tags
This patch uses the cities administration page as a proof-of-concept for
using the [% t() %] construction to wrap translatable string in template
tags. This should result in a significant improvement in
translatability.
To test, apply the patch and run the translation script to update the
.po files, e.g.
perl misc/translator/translate update fr-FR
Check the updated .po files:
- In fr-FR-staff-prog.po you should no longer see a reference to
cities.tt line 6, "#:
koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt:6"
- In fr-FR-messages.po you should see several strings which have been
pulled individually from the tag:
- cities.tt:9, msgid "Modify city"
- cities.tt:11, msgid "New city"
- cities.tt:15, msgid "Confirm deletion of city"
- cities.tt:19, msgid "Administration", msgid "Cities", msgid "Koha",
and msgid "Administration"
Translate the strings in fr-FR-messages.po and install the updated
translation:
perl misc/translator/translate install fr-FR
Swith to the update language in the staff interface and confirm that the
Cities page title is translated correctly.
Signed-off-by: Caroline Cyr La Rose
--=20
You are receiving this mail because:
You are watching all bug changes.
--===============1893432456257973764==--
From bugzilla-daemon@bugs.koha-community.org Mon Mar 6 18:31:44 2023
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject:
[Koha-bugs] [Bug 33077] Improve ease of translating template title tags
Date: Mon, 06 Mar 2023 17:31:44 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============6045864814913482319=="
--===============6045864814913482319==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=3D33077
Caroline Cyr La Rose changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |caroline.cyr-la-rose@inlibr
| |o.com
--- Comment #3 from Caroline Cyr La Rose -=
--
Sorry for my confusion! It works well for cities!
Will this also work with titles with variables in them? For example on
moremember.pl the title is "Patron details for name (cardnumber)..."
--=20
You are receiving this mail because:
You are watching all bug changes.
--===============6045864814913482319==--
From bugzilla-daemon@bugs.koha-community.org Sun Apr 9 00:50:24 2023
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject:
[Koha-bugs] [Bug 33077] Improve ease of translating template title tags
Date: Sat, 08 Apr 2023 22:50:23 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============4729221855081196612=="
--===============4729221855081196612==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33077
Katrin Fischer changed:
What |Removed |Added
----------------------------------------------------------------------------
QA Contact|testopia@bugs.koha-communit |katrin.fischer@bsz-bw.de
|y.org |
--
You are receiving this mail because:
You are watching all bug changes.
--===============4729221855081196612==--
From bugzilla-daemon@bugs.koha-community.org Sun Apr 9 00:58:20 2023
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject:
[Koha-bugs] [Bug 33077] Improve ease of translating template title tags
Date: Sat, 08 Apr 2023 22:58:19 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============3262520023765819210=="
--===============3262520023765819210==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33077
Katrin Fischer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Signed Off |Passed QA
--
You are receiving this mail because:
You are watching all bug changes.
--===============3262520023765819210==--
From bugzilla-daemon@bugs.koha-community.org Sun Apr 9 00:58:30 2023
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject:
[Koha-bugs] [Bug 33077] Improve ease of translating template title tags
Date: Sat, 08 Apr 2023 22:58:22 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============3115421826504217458=="
--===============3115421826504217458==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33077
Katrin Fischer changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #147794|0 |1
is obsolete| |
--- Comment #4 from Katrin Fischer ---
Created attachment 149333
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=149333&action=edit
Bug 33077: Improve ease of translating template title tags
This patch uses the cities administration page as a proof-of-concept for
using the [% t() %] construction to wrap translatable string in template
tags. This should result in a significant improvement in
translatability.
To test, apply the patch and run the translation script to update the
.po files, e.g.
perl misc/translator/translate update fr-FR
Check the updated .po files:
- In fr-FR-staff-prog.po you should no longer see a reference to
cities.tt line 6, "#:
koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt:6"
- In fr-FR-messages.po you should see several strings which have been
pulled individually from the tag:
- cities.tt:9, msgid "Modify city"
- cities.tt:11, msgid "New city"
- cities.tt:15, msgid "Confirm deletion of city"
- cities.tt:19, msgid "Administration", msgid "Cities", msgid "Koha",
and msgid "Administration"
Translate the strings in fr-FR-messages.po and install the updated
translation:
perl misc/translator/translate install fr-FR
Swith to the update language in the staff interface and confirm that the
Cities page title is translated correctly.
Signed-off-by: Caroline Cyr La Rose
Signed-off-by: Katrin Fischer
--
You are receiving this mail because:
You are watching all bug changes.
--===============3115421826504217458==--
From bugzilla-daemon@bugs.koha-community.org Wed Apr 12 16:44:49 2023
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject:
[Koha-bugs] [Bug 33077] Improve ease of translating template title tags
Date: Wed, 12 Apr 2023 14:44:14 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============4939221732283805718=="
--===============4939221732283805718==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33077
Tomás Cohen Arazi changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Passed QA |Pushed to master
Version(s)| |23.05.00
released in| |
--
You are receiving this mail because:
You are watching all bug changes.
--===============4939221732283805718==--
From bugzilla-daemon@bugs.koha-community.org Wed Apr 12 16:44:59 2023
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject:
[Koha-bugs] [Bug 33077] Improve ease of translating template title tags
Date: Wed, 12 Apr 2023 14:44:16 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0001030795061066454=="
--===============0001030795061066454==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33077
--- Comment #5 from Tomás Cohen Arazi ---
Pushed to master for 23.05.
Nice work everyone, thanks!
--
You are receiving this mail because:
You are watching all bug changes.
--===============0001030795061066454==--
From bugzilla-daemon@bugs.koha-community.org Mon Apr 17 11:11:12 2023
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject:
[Koha-bugs] [Bug 33077] Improve ease of translating template title tags
Date: Mon, 17 Apr 2023 09:11:11 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============5615436197988445858=="
--===============5615436197988445858==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33077
Matt Blenkinsop changed:
What |Removed |Added
----------------------------------------------------------------------------
Version(s)|23.05.00 |23.05.00,22.11.05
released in| |
Status|Pushed to master |Pushed to stable
--
You are receiving this mail because:
You are watching all bug changes.
--===============5615436197988445858==--
From bugzilla-daemon@bugs.koha-community.org Mon Apr 17 11:11:22 2023
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject:
[Koha-bugs] [Bug 33077] Improve ease of translating template title tags
Date: Mon, 17 Apr 2023 09:11:13 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============6147385834497765876=="
--===============6147385834497765876==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33077
--- Comment #6 from Matt Blenkinsop ---
Nice work everyone!
Pushed to stable for 22.11.x
--
You are receiving this mail because:
You are watching all bug changes.
--===============6147385834497765876==--
From bugzilla-daemon@bugs.koha-community.org Mon Apr 17 22:53:51 2023
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject:
[Koha-bugs] [Bug 33077] Improve ease of translating template title tags
Date: Mon, 17 Apr 2023 20:53:40 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============7543237083186945911=="
--===============7543237083186945911==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33077
Caroline Cyr La Rose changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://bugs.koha-community
| |.org/bugzilla3/show_bug.cgi
| |?id=33551
--
You are receiving this mail because:
You are watching all bug changes.
--===============7543237083186945911==--
From bugzilla-daemon@bugs.koha-community.org Sat May 6 00:06:51 2023
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject:
[Koha-bugs] [Bug 33077] Improve ease of translating template title tags
Date: Fri, 05 May 2023 22:06:51 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============8319769119070699803=="
--===============8319769119070699803==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33077
Lucas Gass changed:
What |Removed |Added
----------------------------------------------------------------------------
Version(s)|23.05.00,22.11.05 |23.05.00,22.11.05,22.05.13
released in| |
Status|Pushed to stable |Pushed to oldstable
CC| |lucas@bywatersolutions.com
--- Comment #7 from Lucas Gass ---
Backported to 22.05.x for upcoming 22.05.13.
--
You are receiving this mail because:
You are watching all bug changes.
--===============8319769119070699803==--
From bugzilla-daemon@bugs.koha-community.org Thu May 18 17:07:41 2023
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject:
[Koha-bugs] [Bug 33077] Improve ease of translating template title tags
Date: Thu, 18 May 2023 15:07:40 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1888200285403983105=="
--===============1888200285403983105==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33077
Katrin Fischer changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|I18N/L10N |Templates
--
You are receiving this mail because:
You are watching all bug changes.
--===============1888200285403983105==--
From bugzilla-daemon@bugs.koha-community.org Tue May 23 11:56:23 2023
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject:
[Koha-bugs] [Bug 33077] Improve ease of translating template title tags
Date: Tue, 23 May 2023 09:56:22 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============9186164773802081060=="
--===============9186164773802081060==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33077
Arthur Suzuki changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |arthur.suzuki@biblibre.com
Version(s)|23.05.00,22.11.05,22.05.13 |23.05.00,22.11.05,22.05.13,
released in| |21.11.21
--- Comment #8 from Arthur Suzuki ---
applied to 21.11 for 21.11.21
--
You are receiving this mail because:
You are watching all bug changes.
--===============9186164773802081060==--