-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve handling of text translations #364
Comments
This commit changes the following: - Uses a YAML module to read the settings file to complete generation. - Allows any folder name to be used for different text types. - Stores the filename with and without the file extension in FileNodes. - Reorganises the YAML to not uses lists when a dictionary is preferred. - Removes the languages module, as the language code is set by the folder name, and the language name is not stored in the settings file. Related to #364.
The static text translations are now stored within the language file, however most HTML templates do not use these values yet. To do: - Use text from language file instead of hard coded text in templates - Use boolean values from structure sections instead of hard coded generation values Related to issue #364
Have organised the description of this issue to better show current progress. |
This issue will now be closed in a partially completed state. This issue has helped form cleaner and more logical generation, however we are now developing a new system (using existing systems) to replace this generation script. Settings are now stored for language in their text folder and can handle the translation text for that language. However there is currently no support for translations for interactives. |
Description
The generation system has several issues when trying to handle translations:
guide-settings.conf
configuration file requires the same output files for each language. This should be changed as each language should have it's own output (for example, there is no need for the NCEA curriculum guides to be translated to Polish).To do
To investigate
generator-settings.conf
must be moved to theguide-settings.conf
.IfDone.guide-settings.conf
can be stored within the language text folder (for example, astext/en/settings.conf
).If storing translations within a CSV for HTML generation is acceptable.Now storing text within language settings file.The text was updated successfully, but these errors were encountered: