~lubuntu-dev/juffed/trunk

« back to all changes in this revision

Viewing changes to src/lib/Document.cpp

  • Committer: Mezomish
  • Date: 2014-07-22 00:05:57 UTC
  • mfrom: (1054.1.3)
  • Revision ID: git-v1:5902d3e8b6037d54decec7dec15be6bb2b4f1eed
Merge pull request #66 from volkov0aa/fix-translations

Make more strings translatable and load Qt's translations

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
//, clone_(NULL)
61
61
{
62
62
        if (fileName.isEmpty()) {
63
 
                fileName_ = QString("Untitled %1").arg(sCount_++);
 
63
                fileName_ = QString(tr("Untitled %1")).arg(sCount_++);
64
64
        }
65
65
        else {
66
66
                fileName_ = fileName;
131
131
                }
132
132
                return true;
133
133
        }
134
 
        return fileName.startsWith("Untitled");
 
134
        return fileName.startsWith(tr("Untitled"));
135
135
}
136
136
 
137
137
bool Document::isNoname() const {