This repository was archived by the owner on Oct 22, 2020. It is now read-only.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a script in the
bindirectory to import translations for arbitrary objects in a casebox instance from a csv file:Where the
language_import.phpscripts 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:
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
configtable) and that you have createdtitle_$lgfields for each language in the templates to which the objects belong.