forked from aseprite/aseprite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add displayName property for language extensions (fix aseprite#3964)
The default language (en.ini) has a new "display_name" property, but probably we should remove it and transform the English language in an extension (just as the default Aseprite theme).
- Loading branch information
Showing
9 changed files
with
127 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Aseprite | ||
// Copyright (C) 2023 Igara Studio S.A. | ||
// | ||
// This program is distributed under the terms of | ||
// the End-User License Agreement for Aseprite. | ||
|
||
#ifndef APP_I18N_LANG_INFO_INCLUDED | ||
#define APP_I18N_LANG_INFO_INCLUDED | ||
#pragma once | ||
|
||
#include <string> | ||
|
||
namespace app { | ||
|
||
struct LangInfo { | ||
std::string id; | ||
std::string path; | ||
std::string displayName; | ||
|
||
LangInfo() = default; | ||
LangInfo(const std::string& id, | ||
const std::string& path, | ||
const std::string& displayName) | ||
: id(id) | ||
, path(path) | ||
, displayName(displayName.empty() ? id: displayName) { | ||
} | ||
|
||
bool operator<(const LangInfo& other) const { | ||
return id < other.id; | ||
} | ||
}; | ||
|
||
} // namespace app | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters