~phablet-team/ubuntu-settings-components/printer-components

« back to all changes in this revision

Viewing changes to plugins/Ubuntu/Settings/Printers/backend/backend_cups.cpp

* Add support for translations in the printer components

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
#include "backend/backend_cups.h"
18
18
#include "backend/backend_pdf.h"
 
19
#include "i18n.h"
19
20
#include "utils.h"
20
21
 
21
22
#include <exception>
291
292
 
292
293
    // Cups allows a faux PDF printer.
293
294
    // TODO: Translate.
294
 
    list.append(new Printer(new PrinterPdfBackend("Create PDF")));
 
295
    list.append(new Printer(new PrinterPdfBackend(__("Create PDF"))));
295
296
 
296
297
    return list;
297
298
}