Skip to content

Commit

Permalink
Replace "favourite" with U.S. "favorite"
Browse files Browse the repository at this point in the history
  • Loading branch information
Apaczer committed Dec 23, 2023
1 parent 33d9fdd commit 266f24e
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ cd dist/linux
## Translations

The list of available translations with examples are stored in `gmenu2x/translations/` dir of your GMenu2X distribution package.
The current in use messages from US English language can be read from: [translate.txt](https://github.com/MiyooCFW/gmenu2x/blob/master/translate.txt). This does not include appLinks' Title&Description which can be added freely by user.
The current in use messages from U.S. English language can be read from: [translate.txt](https://github.com/MiyooCFW/gmenu2x/blob/master/translate.txt). This does not include appLinks' Title&Description which can be added freely by user.

You can run `tools/gen_translate.sh` to generate above list providing argument in form of txt file with list of #define for your platform. Otherwise you can rebuild GMenu2X with `-DCHECK_TRANSLATION` CFLAG in Makefile. Then after running binary with selected language you will find `untraslated.txt`file with list of missing translation strings which failed to be generated at the time of using GMenu2X.
### Dictionary
Expand Down
4 changes: 2 additions & 2 deletions assets/translations/Chinese(CN)
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
About=关于
Add link=新增程序链接
Add section=新建分组
Add to Favourites=添加到收藏夹
Add to Favorites=添加到收藏夹
Aliases=别名
Allow the selector to change directory=允许选择程序浏览器改变目录
Alt Font Outline=备选字轮廓色彩
Expand Down Expand Up @@ -71,7 +71,7 @@ Edit=编辑
emus=模拟器
Exit=退出
Explorer=文件管理器
favourites=
favorites=
File containing a list of aliases for the selector=包含选择器别名列表的文件
File Filter=文件过滤
File Selector=文件选择器
Expand Down
4 changes: 2 additions & 2 deletions assets/translations/Chinese(TW)
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
About=關於
Add link=新增程式鏈接
Add section=新建分組
Add to Favourites=
Add to Favorites=
Aliases=別名
Allow the selector to change directory=允許選擇程式瀏覽器改變目錄
Alt Font Outline=備選字輪廓色彩
Expand Down Expand Up @@ -71,7 +71,7 @@ Edit=編輯
emus=
Exit=退出
Explorer=文件管理器
favourites=
favorites=
File containing a list of aliases for the selector=包含選擇器別名列表的文件
File Filter=ROM文件過濾
File Selector=文件選擇器
Expand Down
4 changes: 2 additions & 2 deletions assets/translations/Polish
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
About=O systemie
Add link=Dodaj skrót
Add section=Dodaj sekcję
Add to Favourites=Dodaj do Ulubionych
Add to Favorites=Dodaj do Ulubionych
Aliases=Aliasy
Allow the selector to change directory=Pozwól selektorowi na zmianę ścieżki
Alt Font Outline=Granica czcionki alter.
Expand Down Expand Up @@ -71,7 +71,7 @@ Edit=Edytuj
emus=emusy
Exit=Wyjdź
Explorer=Eksplorator
favourites=ulubione
favorites=ulubione
File containing a list of aliases for the selector=Plik zawierający listę aliasów selektora
File Filter=Filtr plików
File Selector=Selektor plików
Expand Down
4 changes: 2 additions & 2 deletions assets/translations/Portuguese(Brazil)
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
About=Sobre
Add link=Adicionar link
Add section=Adicionar Seção
Add to Favourites=Adicionar aos Favoritos
Add to Favorites=Adicionar aos Favoritos
Aliases=Nomes alternativos
Allow the selector to change directory=Permitir ao seletor que mude de diretório
Alt Font Outline=Contorno da fonte alternativa
Expand Down Expand Up @@ -71,7 +71,7 @@ Edit=Editar
emus=emus
Exit=Sair
Explorer=Explorador
favourites=favoritos
favorites=favoritos
File containing a list of aliases for the selector=Arquivo que contém a lista de nomes alternativos para o seletor
File Filter=Filtro de arquivo
File Selector=Seletor de arquivos
Expand Down
4 changes: 2 additions & 2 deletions assets/translations/Russian
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
About=Информация
Add link=Добавить ярлык
Add section=Добавить раздел
Add to Favourites=Добавить в избранное
Add to Favorites=Добавить в избранное
Aliases=Псевдонимы
Allow the selector to change directory=Разрешить селектору выходить из каталога
Alt Font Outline=Контур альт. шрифта
Expand Down Expand Up @@ -71,7 +71,7 @@ Edit=Изменить
emus=эмуляторы
Exit=Выход
Explorer=Обозреватель
favourites=избранное
favorites=избранное
File containing a list of aliases for the selector=Файл со списком псевдонимов для селектора
File Filter=Файловый фильтр
File Selector=Файловый селектор
Expand Down
2 changes: 1 addition & 1 deletion dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Activate USB on NAND=
Activate USB on SD=
Add link=
Add section=
Add to Favourites=
Add to Favorites=
Aliases=
Allow FTP to be started at boot time=
Allow telnet to be started at boot time=
Expand Down
2 changes: 1 addition & 1 deletion sections.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apps=
cores=
emus=
favourites=
favorites=
games=
settings=
8 changes: 4 additions & 4 deletions src/selector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,17 +150,17 @@ const std::string Selector::getParams(uint32_t i) {

void Selector::customOptions(vector<MenuOption> &options) {
if (isFile(selected)) {
options.push_back((MenuOption){gmenu2x->tr["Add to Favourites"], MakeDelegate(this, &Selector::addFavourite)});
options.push_back((MenuOption){gmenu2x->tr["Add to Favorites"], MakeDelegate(this, &Selector::addFavorite)});
}
}

void Selector::addFavourite() {
void Selector::addFavorite() {
string favicon = getPreview(selected);
if (favicon.empty() || favicon == "#") favicon = this->icon;

gmenu2x->menu->addSection("favourites");
gmenu2x->menu->addSection("favorites");
string title = base_name(getFileName(selected), true);
string linkpath = "sections/favourites/" + title + "." + base_name(link->getExec(), true) + ".lnk";
string linkpath = "sections/favorites/" + title + "." + base_name(link->getExec(), true) + ".lnk";

LinkApp *fav = new LinkApp(gmenu2x, linkpath.c_str());

Expand Down
2 changes: 1 addition & 1 deletion src/selector.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Selector : public BrowseDialog {
Selector(GMenu2X *gmenu2x, const string &title, const string &description, const string &icon, LinkApp *link);
const std::string getFileName(uint32_t i = 0);
const std::string getParams(uint32_t i = 0);
void addFavourite();
void addFavorite();
void customOptions(vector<MenuOption> &options);
};

Expand Down
4 changes: 2 additions & 2 deletions translate.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
About=
Add link=
Add section=
Add to Favourites=
Add to Favorites=
Aliases=
Allow the selector to change directory=
Alt Font Outline=
Expand Down Expand Up @@ -71,7 +71,7 @@ Edit=
emus=
Exit=
Explorer=
favourites=
favorites=
File containing a list of aliases for the selector=
File Filter=
File Selector=
Expand Down

0 comments on commit 266f24e

Please sign in to comment.