Mercurial > hg > octave-nkf
comparison libgui/src/files-dock-widget.cc @ 18276:0b5f669f5b03 stable
fix some translation issues (bug #41159)
* main-window.cc (news_reader::process): only use constant strings in tr ()
* libgui/languages/*.ts: update language files accordingly
* settings-dialog.cc (read_lexer_settings): added context comments in tr ()
for the use of b, i and u in the editor styles
* files-dock-widget.cc (process_new_dir): added a context comment for newline
author | Torsten <ttl@justmail.de> |
---|---|
date | Thu, 09 Jan 2014 21:48:34 +0100 |
parents | d62570cfbab9 |
children | cae24b7cfaf4 |
comparison
equal
deleted
inserted
replaced
18275:0da2e7051778 | 18276:0b5f669f5b03 |
---|---|
812 files_dock_widget::process_new_file (const QString &parent_dir) | 812 files_dock_widget::process_new_file (const QString &parent_dir) |
813 { | 813 { |
814 bool ok; | 814 bool ok; |
815 | 815 |
816 QString name = QInputDialog::getText (this, tr ("Create File"), | 816 QString name = QInputDialog::getText (this, tr ("Create File"), |
817 tr ("Create file in\n") + parent_dir, | 817 tr ("Create file in\n","String ends with \\n!") + parent_dir, |
818 QLineEdit::Normal, "New File.txt", &ok); | 818 QLineEdit::Normal, "New File.txt", &ok); |
819 if (ok && name.length () > 0) | 819 if (ok && name.length () > 0) |
820 { | 820 { |
821 name = parent_dir + "/" + name; | 821 name = parent_dir + "/" + name; |
822 | 822 |
823 QFile file (name); | 823 QFile file (name); |
830 files_dock_widget::process_new_dir (const QString &parent_dir) | 830 files_dock_widget::process_new_dir (const QString &parent_dir) |
831 { | 831 { |
832 bool ok; | 832 bool ok; |
833 | 833 |
834 QString name = QInputDialog::getText (this, tr ("Create Directory"), | 834 QString name = QInputDialog::getText (this, tr ("Create Directory"), |
835 tr ("Create folder in\n") + parent_dir, | 835 tr ("Create folder in\n","String ends with \\n!") + parent_dir, |
836 QLineEdit::Normal, "New Directory", | 836 QLineEdit::Normal, "New Directory", &ok); |
837 &ok); | |
838 if (ok && name.length () > 0) | 837 if (ok && name.length () > 0) |
839 { | 838 { |
840 QDir dir (parent_dir); | 839 QDir dir (parent_dir); |
841 dir.mkdir (name); | 840 dir.mkdir (name); |
842 _file_system_model->revert (); | 841 _file_system_model->revert (); |