~elementary-pantheon/contractor/master

« back to all changes in this revision

Viewing changes to src/Translations.vala

  • Committer: RabbitBot
  • Author(s): Florian R. A. Angermeier
  • Date: 2015-09-21 13:31:07 UTC
  • mfrom: (136.1.11)
  • Revision ID: git-v1:4a5e95794024146bc89ee39053530c11e4977103
Implement filter functions based on file size:
* Get the max file size (int64, size in bytes) from a .contract file (optional key MaxFileSize)
* Add methods to the D-Bus service:
  - get_contracts_by_file_size
  - get_contracts_by_mime_and_file_size
  - get_contracts_by_mimelist_and_file_size

Add documentation

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    }
37
37
 
38
38
    private static void add_domain (string domain) {
39
 
        if (domains.contains (domain))
 
39
        if (domains.contains (domain)) {
40
40
            return;
 
41
        }
41
42
 
42
43
        domains.add (domain);
43
44
        Intl.textdomain (domain);