Bugzilla – Attachment 132502 Details for
Bug 24875
Remove extra punctuation from tools home page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24975: Add translation_key method example
Bug-24975-Add-translationkey-method-example.patch (text/plain), 1014 bytes, created by
Martin Renvoize
on 2022-03-30 06:32:47 UTC
(
hide
)
Description:
Bug 24975: Add translation_key method example
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2022-03-30 06:32:47 UTC
Size:
1014 bytes
patch
obsolete
>From 35558a2311560d222d546fbb5dab4c965d4e0fef Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 29 Sep 2020 10:14:04 +0100 >Subject: [PATCH] Bug 24975: Add translation_key method example > >https://bugs.koha-community.org/show_bug.cgi?id=24875 >--- > Koha/ItemType.pm | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) > >diff --git a/Koha/ItemType.pm b/Koha/ItemType.pm >index e0a5fd1535..9e66529671 100644 >--- a/Koha/ItemType.pm >+++ b/Koha/ItemType.pm >@@ -46,7 +46,20 @@ Returns a localized string for the Koha::ItemType description field. > > sub translated_description { > my ( $self ) = @_; >- return dt_t('itemtype', $self->itemtype); >+ return dt_t('itemtype', $self->translation_key); >+} >+ >+=head3 translation_key >+ >+ db_t('itemtype', $itemtype->translation_key); >+ >+Returns the translation key for this itemtype object. >+ >+=cut >+ >+sub translation_key { >+ my ( $self ) = @_; >+ return $self->itemtype; > } > > =head3 image_location >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24875
:
100720
|
100910
|
101351
|
101523
|
132495
|
132496
|
132497
|
132498
|
132499
|
132500
|
132501
|
132502
|
132503
|
132504
|
132505
|
132506
|
132507