Bug 21715 - Ease translation of account and account offset type descriptions
Summary: Ease translation of account and account offset type descriptions
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Tomás Cohen Arazi (tcohen)
QA Contact: Katrin Fischer
URL:
Keywords:
Depends on: 21584
Blocks:
  Show dependency treegraph
 
Reported: 2018-10-29 15:12 UTC by Tomás Cohen Arazi (tcohen)
Modified: 2019-10-14 19:58 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Small patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 21715: Ease translation of account and account offset type descriptions (12.33 KB, patch)
2018-10-29 15:18 UTC, Tomás Cohen Arazi (tcohen)
Details | Diff | Splinter Review
Bug 21715: Ease translation of account and account offset type descriptions (12.31 KB, patch)
2018-10-29 15:38 UTC, Tomás Cohen Arazi (tcohen)
Details | Diff | Splinter Review
Bug 21715: Ease translation of account and account offset type descriptions (12.36 KB, patch)
2018-10-29 20:40 UTC, Josef Moravec
Details | Diff | Splinter Review
Bug 21715: Ease translation of account and account offset type descriptions (12.47 KB, patch)
2018-10-31 07:15 UTC, Katrin Fischer
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Tomás Cohen Arazi (tcohen) 2018-10-29 15:12:44 UTC
Both are now on separate files and descriptions are not enclosed by <span> tags, making it more error prone on the translation step.
Comment 1 Tomás Cohen Arazi (tcohen) 2018-10-29 15:18:50 UTC Comment hidden (obsolete)
Comment 2 Tomás Cohen Arazi (tcohen) 2018-10-29 15:38:49 UTC
Created attachment 81524 [details] [review]
Bug 21715: Ease translation of account and account offset type descriptions

This patch moves accounts-related descriptions into a single file to
ease finding them, and also encloses descriptions inside <span> tags to
make it easier to translate.

To test:
- Apply this patch
- Verify the templates work as expected
=> SUCCESS: No behaviour change
- Sign off :-D

Bonus: there were two cases in which the INCLUDE line used 'accountline'
as parameter, making it fail to pick the right account type!
Comment 3 Josef Moravec 2018-10-29 20:40:19 UTC
Created attachment 81544 [details] [review]
Bug 21715: Ease translation of account and account offset type descriptions

This patch moves accounts-related descriptions into a single file to
ease finding them, and also encloses descriptions inside <span> tags to
make it easier to translate.

To test:
- Apply this patch
- Verify the templates work as expected
=> SUCCESS: No behaviour change
- Sign off :-D

Bonus: there were two cases in which the INCLUDE line used 'accountline'
as parameter, making it fail to pick the right account type!

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Comment 4 Katrin Fischer 2018-10-31 07:15:08 UTC
btw, we should get rigt of the "thanks" :)
Comment 5 Katrin Fischer 2018-10-31 07:15:57 UTC
Created attachment 81651 [details] [review]
Bug 21715: Ease translation of account and account offset type descriptions

This patch moves accounts-related descriptions into a single file to
ease finding them, and also encloses descriptions inside <span> tags to
make it easier to translate.

To test:
- Apply this patch
- Verify the templates work as expected
=> SUCCESS: No behaviour change
- Sign off :-D

Bonus: there were two cases in which the INCLUDE line used 'accountline'
as parameter, making it fail to pick the right account type!

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 6 Katrin Fischer 2018-10-31 07:16:43 UTC
I guess you could argue which is easier. At the moment it's easy to make a typo, but you have all strings together in one entry which gives you context. With this patch they will all appear separately and out of order.
Comment 7 Katrin Fischer 2018-10-31 07:17:30 UTC
What I wanted to say too: But it follows an existing pattern and will be less error-prone.
Comment 8 Nick Clemens (kidclamp) 2018-11-08 02:27:59 UTC
Awesome work all!

Pushed to master for 18.11
Comment 9 Martin Renvoize (ashimema) 2018-11-16 13:01:34 UTC
Causation not in 18.05.x series.