mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-16 05:42:32 +00:00
Add strings alerts in recent files/folders to en.ini
This commit is contained in:
parent
0426582e0e
commit
8e6bd1a8dc
@ -111,6 +111,8 @@ Update Extension
|
|||||||
END
|
END
|
||||||
update_extension_downgrade = downgrade
|
update_extension_downgrade = downgrade
|
||||||
update_extension_upgrade = upgrade
|
update_extension_upgrade = upgrade
|
||||||
|
recent_file_doesnt_exist = Aseprite<<The selected file doesn't exist||&OK
|
||||||
|
recent_folder_doesnt_exist = Aseprite<<The selected folder doesn't exist||&OK
|
||||||
restart_by_preferences = <<<END
|
restart_by_preferences = <<<END
|
||||||
Aseprite
|
Aseprite
|
||||||
<<You must restart the program to see your changes to:{0}
|
<<You must restart the program to see your changes to:{0}
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
#include "app/app.h"
|
#include "app/app.h"
|
||||||
#include "app/commands/commands.h"
|
#include "app/commands/commands.h"
|
||||||
#include "app/commands/params.h"
|
#include "app/commands/params.h"
|
||||||
|
#include "app/i18n/strings.h"
|
||||||
#include "app/pref/preferences.h"
|
#include "app/pref/preferences.h"
|
||||||
#include "app/recent_files.h"
|
#include "app/recent_files.h"
|
||||||
#include "app/ui/skin/skin_theme.h"
|
#include "app/ui/skin/skin_theme.h"
|
||||||
@ -148,7 +149,7 @@ void RecentFilesListBox::onRebuildList()
|
|||||||
void RecentFilesListBox::onClick(const std::string& path)
|
void RecentFilesListBox::onClick(const std::string& path)
|
||||||
{
|
{
|
||||||
if (!base::is_file(path)) {
|
if (!base::is_file(path)) {
|
||||||
ui::Alert::show("Problem<<The selected file doesn't exist||&OK");
|
ui::Alert::show(Strings::alerts_recent_file_doesnt_exist());
|
||||||
App::instance()->recentFiles()->removeRecentFile(path);
|
App::instance()->recentFiles()->removeRecentFile(path);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -179,7 +180,7 @@ void RecentFoldersListBox::onRebuildList()
|
|||||||
void RecentFoldersListBox::onClick(const std::string& path)
|
void RecentFoldersListBox::onClick(const std::string& path)
|
||||||
{
|
{
|
||||||
if (!base::is_directory(path)) {
|
if (!base::is_directory(path)) {
|
||||||
ui::Alert::show("Problem<<The selected folder doesn't exist||&OK");
|
ui::Alert::show(Strings::alerts_recent_folder_doesnt_exist());
|
||||||
App::instance()->recentFiles()->removeRecentFolder(path);
|
App::instance()->recentFiles()->removeRecentFolder(path);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user