mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-04 08:46:09 +00:00
Add more strings from Home tab to en.ini file
This commit is contained in:
parent
be5df08c1f
commit
91bc5c2845
@ -562,12 +562,16 @@ width = Width:
|
|||||||
height = Height:
|
height = Height:
|
||||||
|
|
||||||
[home_view]
|
[home_view]
|
||||||
|
title = Home
|
||||||
recover = Recover Lost Sprites
|
recover = Recover Lost Sprites
|
||||||
new_file = New File...
|
new_file = New File...
|
||||||
open_file = Open File...
|
open_file = Open File...
|
||||||
recent_files = Recent files:
|
recent_files = Recent files:
|
||||||
recent_folders = Recent folders:
|
recent_folders = Recent folders:
|
||||||
news = News:
|
news = News:
|
||||||
|
checking_updates = Checking Updates...
|
||||||
|
is_up_to_date = {0} is up to date
|
||||||
|
new_version_available = New {0} v{1} available!
|
||||||
|
|
||||||
[import_sprite_sheet]
|
[import_sprite_sheet]
|
||||||
title = Import Sprite Sheet
|
title = Import Sprite Sheet
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Aseprite
|
// Aseprite
|
||||||
// Copyright (C) 2001-2017 David Capello
|
// Copyright (C) 2001-2018 David Capello
|
||||||
//
|
//
|
||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
// the End-User License Agreement for Aseprite.
|
// the End-User License Agreement for Aseprite.
|
||||||
@ -14,6 +14,7 @@
|
|||||||
#include "app/app_menus.h"
|
#include "app/app_menus.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/ui/data_recovery_view.h"
|
#include "app/ui/data_recovery_view.h"
|
||||||
#include "app/ui/main_window.h"
|
#include "app/ui/main_window.h"
|
||||||
#include "app/ui/news_listbox.h"
|
#include "app/ui/news_listbox.h"
|
||||||
@ -84,7 +85,7 @@ void HomeView::showDataRecovery(crash::DataRecovery* dataRecovery)
|
|||||||
|
|
||||||
std::string HomeView::getTabText()
|
std::string HomeView::getTabText()
|
||||||
{
|
{
|
||||||
return "Home";
|
return Strings::home_view_title();
|
||||||
}
|
}
|
||||||
|
|
||||||
TabIcon HomeView::getTabIcon()
|
TabIcon HomeView::getTabIcon()
|
||||||
@ -136,7 +137,7 @@ void HomeView::onResize(ui::ResizeEvent& ev)
|
|||||||
|
|
||||||
void HomeView::onCheckingUpdates()
|
void HomeView::onCheckingUpdates()
|
||||||
{
|
{
|
||||||
checkUpdate()->setText("Checking Updates...");
|
checkUpdate()->setText(Strings::home_view_checking_updates());
|
||||||
checkUpdate()->setVisible(true);
|
checkUpdate()->setVisible(true);
|
||||||
|
|
||||||
layout();
|
layout();
|
||||||
@ -144,7 +145,8 @@ void HomeView::onCheckingUpdates()
|
|||||||
|
|
||||||
void HomeView::onUpToDate()
|
void HomeView::onUpToDate()
|
||||||
{
|
{
|
||||||
checkUpdate()->setText(fmt::format("{0} is up to date", PACKAGE));
|
checkUpdate()->setText(
|
||||||
|
fmt::format(Strings::home_view_is_up_to_date(), PACKAGE));
|
||||||
checkUpdate()->setVisible(true);
|
checkUpdate()->setVisible(true);
|
||||||
|
|
||||||
layout();
|
layout();
|
||||||
@ -152,8 +154,8 @@ void HomeView::onUpToDate()
|
|||||||
|
|
||||||
void HomeView::onNewUpdate(const std::string& url, const std::string& version)
|
void HomeView::onNewUpdate(const std::string& url, const std::string& version)
|
||||||
{
|
{
|
||||||
checkUpdate()->setText(fmt::format("New {0} v{1} available!",
|
checkUpdate()->setText(
|
||||||
PACKAGE, version));
|
fmt::format(Strings::home_view_new_version_available(), PACKAGE, version));
|
||||||
checkUpdate()->setUrl(url);
|
checkUpdate()->setUrl(url);
|
||||||
checkUpdate()->setVisible(true);
|
checkUpdate()->setVisible(true);
|
||||||
checkUpdate()->InitTheme.connect(
|
checkUpdate()->InitTheme.connect(
|
||||||
|
Loading…
Reference in New Issue
Block a user