Changes between Version 65 and Version 66 of BluePrint/Internationalisation
- Timestamp:
- 01/05/15 14:51:51 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrint/Internationalisation
v65 v66 132 132 * Retrieval of strings from currently active template : Currently, we don’t have an option to check which strings are present in the active template. This can be done as follows: 133 133 * Use the parse tree approach to parse out the currently active template from 000_config.py 134 * Next, we parse the eden/ private/templates/<current-template>/config.py to get the active modules of that template134 * Next, we parse the eden/modules/templates/<current-template>/config.py to get the active modules of that template 135 135 * So, only these modules will be checked by default (when showing the module selection page) 136 136 * Hence, we know which modules correspond to the current template and this can be used to extract only the relevant strings. 137 137 138 138 * Including database variables : We need to extract the strings in database variables so that they too can be translated. Currently, these variables are excluded from translation. Hence, one approach to extract these strings is as follows: 139 * Use the prepop csv files in privates/templates/<current-template> and mark them to be considered for translation.139 * Use the prepop csv files in modules/templates/<current-template> and mark them to be considered for translation. 140 140 * Provide a “Select all templates” option on the module selection page (similar to select all modules) to specify if all prepop files are to be considered. This option will be helpful when introducing new variables and discarding deprecated strings using the overwrite option as mentioned earlier. 141 141