1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-05 03:50:07 +00:00

Refactored some TRANS strings to make them more amenable to translation. Added the NEEDS_TRANS macro.

This commit is contained in:
jules 2013-05-05 17:13:53 +01:00
parent ffc9200ea7
commit 4d61bfd8a3
13 changed files with 101 additions and 89 deletions

View file

@ -209,12 +209,13 @@ void FileChooserDialogBox::okButtonPressed()
&& content->chooserComponent.getSelectedFile(0).exists())
{
AlertWindow::showOkCancelBox (AlertWindow::WarningIcon,
TRANS("File already exists"),
TRANS("There's already a file called:")
+ "\n\n" + content->chooserComponent.getSelectedFile(0).getFullPathName()
+ "\n\n" + TRANS("Are you sure you want to overwrite it?"),
TRANS("overwrite"),
TRANS("cancel"),
TRANS("File already exists"),
TRANS("There's already a file called: FLMN")
.replace ("FLNM", content->chooserComponent.getSelectedFile(0).getFullPathName())
+ "\n\n"
+ TRANS("Are you sure you want to overwrite it?"),
TRANS("Overwrite"),
TRANS("Cancel"),
this,
ModalCallbackFunction::forComponent (okToOverwriteFileCallback, this));
}