Changes between Version 41 and Version 42 of BluePrint/Translation
- 01/05/15 15:04:09 (7 years ago)
v41 v42 29 29 * 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: 30 30 * Use the parse tree approach to parse out the currently active template from 000_config.py 31 * Next, we parse the eden/ private/templates/<current-template>/config.py to get the active modules of that template 31 * Next, we parse the eden//templates/<current-template>/config.py to get the active modules of that template 32 32 * So, only these modules will be checked by default (when showing the module selection page) 33 33 * Hence, we know which modules correspond to the current template and this can be used to extract only the relevant strings. … … 35 35 36 36 * 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: 37 * Use the prepop csv files in privates/templates/<current-template> and mark them to be considered for translation. 37 * Use the prepop csv files in es/templates/<current-template> and mark them to be considered for translation. 38 38 * Use S3BulkImporter to get list of csv files from tasks.cfg file in the template folder. 39 39 * Use S3Represent to see which all csv files are to be considered for translation.