Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Task 563 (Import language translations for objects)#4

Merged
habbes merged 3 commits into
v1-develfrom
task_563
Jun 16, 2017
Merged

Task 563 (Import language translations for objects)#4
habbes merged 3 commits into
v1-develfrom
task_563

Conversation

@habbes
Copy link
Copy Markdown

@habbes habbes commented May 18, 2017

This adds a script in the bin directory to import translations for arbitrary objects in a casebox instance from a csv file:

php import_objects_translations.php -c mycore -f translations.csv

Where the language_import.php scripts imports new language translations for the general casebox UI, this script imports translations for objects in the tree of the casebox instance.

The CSV file should have a row for each object to be translated, the first column should be the object ID followed by a column for each language, for example:

ID,en,fr
1,Cheese,Fromage
2,Yes,Oui

After running the script you should reindex the solr core.

The script assumes you that you have already configured the languages in your casebox instance (the config table) and that you have created title_$lg fields for each language in the templates to which the objects belong.

@habbes habbes merged commit 9bb65d4 into v1-devel Jun 16, 2017
@habbes habbes deleted the task_563 branch July 6, 2017 11:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant