Commits

Author Commit Message Labels Comments Date
Apostolis Bessas
Refactoring: Use general name (overridable in subclasses) for SugggestionFormat class.
Apostolis Bessas
Refactoring: Split saving translations to two methods. One method is for the source language and another one for the translations. This allows finer control, when saving translations.
Apostolis Bessas
Refactoring: Move core functionality of save2db o a separate function.
Apostolis Bessas
Refactoring: Factor out template update in save2db.
Apostolis Bessas
Refactoring: Factor out suggestions code from save2db.
Apostolis Bessas
refactor: Move save2db last actions (update stats and send notices) to separate functions.
Apostolis Bessas
Make StringSet and GenericTranslation classes new-style ones.
Apostolis Bessas
Use i18n_method in Resource model to encapsulate PO/POT type access.
Apostolis Bessas
Create function that serializes the occurrences field for a PO file.
Apostolis Bessas
Move functionality for creating a translation and a suggestion to specialized functions.
Apostolis Bessas
'Decorate' self._parse() with necessary and common arguments. Make self.stringset and self.suggestions available to self._parse(). Move the responsibility of generating the template to a separate function, so that subclasses can override just this one.
Apostolis Bessas
minor: Split cught exception to IOError and Exception.
Apostolis Bessas
Structure .desktop handler according to new resources.formats code.
Apostolis Bessas
Split POHandler to two classes: one for PO and one for POT files. PO and POT handling is different when compiling the file and with copyright handling. So, we split the handler to two handlers, inheriting the same class to share functionality.
Apostolis Bessas
minor:Use TX_ROOT instead of PROJECT_PATH to correctly locate the file in the test.
Apostolis Bessas
Remove PARSERS for formats list.
Apostolis Bessas
minor: Rename FormatsError to FormatError.
Apostolis Bessas
Save POT types as PO in database for resources.
Apostolis Bessas
Remove storage file dependency from resource.Resource model.
Apostolis Bessas
Move all i18n_methods related functionality to registry object. Gather all get_i18n_* functions into the _FormatsRegistry class and make them accessible through the registry object.
Apostolis Bessas
Remove parser_for function.
Apostolis Bessas
Remove get_file_extension_for_method
Apostolis Bessas
Add a registry for formats
Apostolis Bessas
minor: Small optimization in file extensions/mimetype splitting.
Apostolis Bessas
minor: Test fixes, whitespace removal.
Apostolis Bessas
minor: Test fixes.
Apostolis Bessas
Use i18n_type to choose a parser instead of the filename or the mimetype.
Apostolis Bessas
Don't pass an argument to is_content_valid calls to check the validity of a content. Use the already parsed content insted.
Apostolis Bessas
Improve _post_compile in po handler. Break _post_compile to separate functions. Also, reduce db calls in plurals updating.
Apostolis Bessas
Make parse_file use content instead of reading file.
  1. Prev
  2. Next