https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24712

--- Comment #9 from Caroline Cyr La Rose <[email protected]> ---
I tested this a little bit. Here are my comments so far :

- If you don't use --force, it doesn't do anything

- Check TranslateNotices syspref, set language to 'default' if syspref is off

- Make help a bit more helpful, with all the options described and examples
like the one in Comment 7

- For the --table option, maybe split it in --file (for the file name) and
--table (for the table name) ? This is just a suggestion to alleviate the
confusion :)

- Add --letter_code flag (repeatable) to specify which letter code to update


NOTE : My TranslateNotices is OFF. Most of my clients don't use it and only
communicate with their patrons in French, so there is no need to have the
notices in many languages, only French. Some of my clients have
TranslateNotices ON, but I haven't tested this scenario yet.




Test plan for KTD

1. Start KTD

ktd up

2. Install a language (fr-CA in the example)

ktd --shell
gulp po:update --lang fr-CA
./misc/translator/translate install fr-CA

3. Drop the database and restart (this step is necessary to have KTD use the
installer files in the other language)
koha-mysql kohadev
drop database koha_kohadev;
create database koha_kohadev;
Ctrl+D (or exit?)
restart_all

4. Go to the staff interface (http://localhost:8081) and do the Web installer
steps **making sure to choose the other language in the first step** (this step
is necessary to have KTD use the installer files in the other language)
(the username is koha_kohadev and pw is password)

* Note the username and password you set for the admin user... it will probably
be different from the usual

5. Copy the test24712.pl file into installer/data/mysql/atomicupdate/

cp ~/Documents/test24712.pl installer/data/mysql/atomicupdate/

6. Copy the updated sample_notices.yaml file in in
installer/data/mysql/en/mandatory/

cp ~/Documents/sample_notices.yml installer/data/mysql/en/mandatory/

7. Run updatedatabase.pl 

./installer/data/mysql/updatedatabase.pl

--> This should insert a letter in English

8. Log in to the staff interface (with credentials set in step 4)

9. Set the StaffInterfaceLanguages and OPACLanguages sysprefs to the other
language, put it in first position in both prefs

10. Go to Tools > Notices and slips

--> There should be a new letter "TEST_24712" in English among the letters in
French (Current problem!)

11. Edit one of the other letters (like PREDUE) with custom text

12. Update the translation strings

ktd --shell
gulp po:update --lang fr-CA

13. View the strings in fr-CA-installer.po and translate them
- English name 24712
- English title 24712
- This is an English message sent to patrons

14. Install the new translations

./misc/translator/translate install fr-CA

--> The installer/data/mysql/fr-CA/mandatory/sample_notices.yml file should
have the translated strings

15. In the staff interface, you should be able to see the default text in
French (this is great, but we don't want to have to do this manually for each
notice)

16. Apply patch 

17. Run the script

./misc/maintenance/load_installer_data.pl --table letter --lang fr-CA

--> This should only translate the new letter (TEST_24712) and not touch the
modified letter (PREDUE) -- This does not work currently

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to