games -> planets

This commit is contained in:
Mrchiantos 2019-07-22 02:51:54 +02:00
parent 4b089ae73f
commit dc725eb649
45 changed files with 66 additions and 66 deletions

View File

@ -123,6 +123,6 @@ Other things that may be nice to know
After compiling you need to archive files in assets into three zips - Files.zip, games.zip and worlds.zip.
games.zip must contain "games" folder.
games.zip must contain "planets" folder.
worlds.zip must contain "worlds" folder and "multicraf.conf" text file.
Finally, remaining files must be packed into Files.zip.

View File

@ -485,7 +485,7 @@ public class MainActivity extends Activity implements WVersionManager.ActivityLi
if (isAll) {
dt.execute(unzipLocation);
} else {
dt.execute(unzipLocation + "builtin", unzipLocation + "games", unzipLocation + "textures"/*, unzipLocation + "debug.txt"*/);
dt.execute(unzipLocation + "builtin", unzipLocation + "planets", unzipLocation + "textures"/*, unzipLocation + "debug.txt"*/);
}
}

View File

@ -31,7 +31,7 @@ local num_per_page = 5
local filter_type = 1
local filter_types_titles = {
fgettext("All packages"),
fgettext("Games"),
fgettext("planets"),
fgettext("Mods"),
fgettext("Texture packs"),
}

View File

@ -56,7 +56,7 @@ local function create_world_formspec(dialogdata)
"label[2,2;" .. fgettext("Mapgen") .. "]"..
"dropdown[4.2,2;6.3;dd_mapgen;" .. mglist .. ";" .. selindex .. "]" ..
"label[2,3;" .. fgettext("Planets") .. "]"..
"label[2,3;" .. fgettext("files") .. "]"..
"textlist[4.2,3;5.8,2.3;games;" .. gamemgr.gamelist() ..
";" .. gameidx .. ";true]" ..
@ -83,7 +83,7 @@ local function create_world_buttonhandler(this, fields)
fields["key_enter"] then
local worldname = fields["te_world_name"]
local gameindex = core.get_textlist_index("games")
local gameindex = core.get_textlist_index("planets")
if gameindex ~= nil and
worldname ~= "" then
@ -119,7 +119,7 @@ local function create_world_buttonhandler(this, fields)
return true
end
if fields["games"] then
if fields["planets"] then
return true
end

View File

@ -286,9 +286,9 @@ local function parse_config_file(read_all, parse_mods)
local file = io.open(path, "r")
if file then
if not games_category_initialized then
local translation = fgettext_ne("Games"), -- not used, but needed for xgettext
local translation = fgettext_ne("planets"), -- not used, but needed for xgettext
table.insert(settings, {
name = "Games",
name = "planets",
level = 0,
type = "category",
})

View File

@ -59,7 +59,7 @@ The game directory can contain the file minetest.conf, which will be used
to set default settings when running the particular game.
It can also contain a settingtypes.txt in the same format as the one in builtin.
This settingtypes.txt will be parsed by the menu and the settings will be displayed
in the "Games" category in the settings tab.
in the "planets" category in the settings tab.
### Menu images

View File

@ -269,7 +269,7 @@ if page == "furnitures" then
end
if page == "planets" then
if page == "files" then
local inv = player:get_inventory() or nil

View File

@ -205,7 +205,7 @@ msgid "Accept"
msgstr ""
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr ""
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -253,7 +253,7 @@ msgstr ""
"<octaves>, <persistence>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Гульні"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -259,7 +259,7 @@ msgstr ""
"<llavor>, <octaves>, <persistència>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Jocs"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -254,7 +254,7 @@ msgstr ""
"<octaves>, <persistence>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Hry"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua
@ -4959,7 +4959,7 @@ msgstr "cURL timeout"
#~ msgid "Mods:"
#~ msgstr "Mody:"
#~ msgid "GAMES"
#~ msgid "planets"
#~ msgstr "HRY"
#~ msgid "Gamemgr: Unable to copy mod \"$1\" to game \"$2\""

View File

@ -256,7 +256,7 @@ msgstr ""
"<udbredelseZ>), <kim>, <oktaver>, <vedholdenhed>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Spil"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -257,7 +257,7 @@ msgstr ""
"<Seed>, <Oktaven>, <Persistenz>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Spiele"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua
@ -5850,7 +5850,7 @@ msgstr "cURL-Zeitüberschreitung"
#~ msgid "Mods:"
#~ msgstr "Mods:"
#~ msgid "GAMES"
#~ msgid "planets"
#~ msgstr "SPIELE"
#~ msgid "Gamemgr: Unable to copy mod \"$1\" to game \"$2\""

View File

@ -254,7 +254,7 @@ msgid ""
msgstr ""
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr ""
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -261,7 +261,7 @@ msgid ""
msgstr ""
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Ludoj"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -257,7 +257,7 @@ msgstr ""
"<semilla>, <octavas>, <persistencia>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Juegos"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -254,7 +254,7 @@ msgid ""
msgstr ""
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Mängud"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua
@ -4917,7 +4917,7 @@ msgstr ""
#~ msgid "If enabled, "
#~ msgstr "Sisse lülitatud"
#~ msgid "GAMES"
#~ msgid "planets"
#~ msgstr "MÄNGUD"
#~ msgid "new game"

View File

@ -254,7 +254,7 @@ msgstr ""
"<octaves>, <persistence>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Jeux"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua
@ -5619,7 +5619,7 @@ msgstr "Délais d'interruption de cURL"
#~ msgid "Gamemgr: Unable to copy mod \"$1\" to game \"$2\""
#~ msgstr "Gamemgr : Impossible de copier le mod \"$1\" dans le jeu \"$2\""
#~ msgid "GAMES"
#~ msgid "planets"
#~ msgstr "JEUX"
#~ msgid "Mods:"

View File

@ -250,7 +250,7 @@ msgid ""
msgstr ""
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "משחקים"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -253,7 +253,7 @@ msgid ""
msgstr ""
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Játékok"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -252,7 +252,7 @@ msgstr ""
"<octaves>, <persistence>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Permainan"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -254,7 +254,7 @@ msgstr ""
"<estensioneZ>), <seme>, <ottave>, <persistenza>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Giochi"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua
@ -5676,7 +5676,7 @@ msgstr "Tempo di scadenza cURL"
#~ msgid "Gamemgr: Unable to copy mod \"$1\" to game \"$2\""
#~ msgstr "Gestore del gioco: impossibile il modulo \"$1\" nel gioco \"$2\""
#~ msgid "GAMES"
#~ msgid "planets"
#~ msgstr "GIOCHI"
#~ msgid "Mods:"

View File

@ -247,7 +247,7 @@ msgstr ""
"<octaves>, <persistence>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "ゲーム"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -252,7 +252,7 @@ msgid ""
msgstr ""
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr ""
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -250,7 +250,7 @@ msgstr ""
"<octaves>, <persistence>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "게임"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -257,7 +257,7 @@ msgstr ""
#: builtin/mainmenu/dlg_settings_advanced.lua
#, fuzzy
msgid "Games"
msgid "planets"
msgstr "Оюн"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -255,7 +255,7 @@ msgid ""
msgstr ""
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Žaidimai"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua
@ -4861,7 +4861,7 @@ msgstr ""
#~ msgid "If enabled, "
#~ msgstr "įjungtas"
#~ msgid "GAMES"
#~ msgid "planets"
#~ msgstr "ŽAIDIMAI"
#~ msgid "Mods:"

View File

@ -254,7 +254,7 @@ msgstr ""
"<penerusan>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Permainan"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -255,7 +255,7 @@ msgstr ""
#: builtin/mainmenu/dlg_settings_advanced.lua
#, fuzzy
msgid "Games"
msgid "planets"
msgstr "Spill"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -258,7 +258,7 @@ msgstr ""
"<kiemgetal>, <octaven>, <persistentie>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Spellen"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua
@ -5735,7 +5735,7 @@ msgstr "cURL timeout"
#~ msgid "Gamemgr: Unable to copy mod \"$1\" to game \"$2\""
#~ msgstr "Gamemgr: Kan mod \"$1\" niet naar spel \"$2\" kopiëren"
#~ msgid "GAMES"
#~ msgid "planets"
#~ msgstr "SPELLEN"
#~ msgid "Mods:"

View File

@ -256,7 +256,7 @@ msgstr ""
"<ziarno>, <oktawy>, <trwanie>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Gry"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua
@ -5351,7 +5351,7 @@ msgstr "Limit czasu cURL"
#~ msgid "Gamemgr: Unable to copy mod \"$1\" to game \"$2\""
#~ msgstr "Gamemgr: Kopiowanie moda \"$1\" do gry \"$2\" nie powiodło się"
#~ msgid "GAMES"
#~ msgid "planets"
#~ msgstr "GRY"
#~ msgid "Mods:"

View File

@ -254,7 +254,7 @@ msgstr ""
"<seed>, <oitavos>, <persistência>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Jogos"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua
@ -5172,7 +5172,7 @@ msgstr ""
#~ "Mensagem de Jogo: Impossível fazer cópia do extra \"$1\" para o jogo "
#~ "\"$2\""
#~ msgid "GAMES"
#~ msgid "planets"
#~ msgstr "JOGOS"
#~ msgid "Mods:"

View File

@ -257,7 +257,7 @@ msgstr ""
"<octaves>, <persistence>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Jogos"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua
@ -5660,7 +5660,7 @@ msgstr "Tempo limite de cURL"
#~ msgid "Gamemgr: Unable to copy mod \"$1\" to game \"$2\""
#~ msgstr "Gamemgr: Não foi possível copiar o mod \"$1\" para o jogo \"$2\""
#~ msgid "GAMES"
#~ msgid "planets"
#~ msgstr "JOGOS"
#~ msgid "Mods:"

View File

@ -254,7 +254,7 @@ msgid ""
msgstr ""
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Jocuri"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua
@ -4959,7 +4959,7 @@ msgstr ""
#~ msgid "Gamemgr: Unable to copy mod \"$1\" to game \"$2\""
#~ msgstr "Gamemgr: Nu se poate copia modul \"$1\" în jocul \"$2\""
#~ msgid "GAMES"
#~ msgid "planets"
#~ msgstr "JOCURI"
#~ msgid "Mods:"

View File

@ -245,7 +245,7 @@ msgstr ""
"<Октавы>,<Постоянство>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Игры"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua
@ -5332,7 +5332,7 @@ msgstr "cURL тайм-аут"
#~ msgid "Gamemgr: Unable to copy mod \"$1\" to game \"$2\""
#~ msgstr "Gamemgr: Не могу скопировать мод \"$1\" в игру \"$2\""
#~ msgid "GAMES"
#~ msgid "planets"
#~ msgstr "ИГРЫ"
#~ msgid "Mods:"

View File

@ -213,7 +213,7 @@ msgid "Accept"
msgstr "Potrdi"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Igre"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -255,7 +255,7 @@ msgstr ""
"<октаве>, <упорност>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Игре"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -253,7 +253,7 @@ msgstr ""
"<frö>, <oktaver>, <framhärdande>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Spel"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -245,7 +245,7 @@ msgid ""
msgstr ""
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Michezo"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -253,7 +253,7 @@ msgstr ""
"<oktav>, <kalıcılık>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Oyunlar"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -253,7 +253,7 @@ msgstr ""
"<octaves>, <persistence>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "Ігри"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -249,7 +249,7 @@ msgstr ""
"<octaves>, <persistence>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "游戏"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua
@ -5029,7 +5029,7 @@ msgstr "cURL 超时"
#~ msgid "Gamemgr: Unable to copy mod \"$1\" to game \"$2\""
#~ msgstr "游戏管理: 无法复制MOD“$1”到游戏“$2”"
#~ msgid "GAMES"
#~ msgid "planets"
#~ msgstr "游戏"
#~ msgid "Mods:"

View File

@ -252,7 +252,7 @@ msgstr ""
"性>"
#: builtin/mainmenu/dlg_settings_advanced.lua
msgid "Games"
msgid "planets"
msgstr "遊戲"
#: builtin/mainmenu/dlg_settings_advanced.lua builtin/mainmenu/tab_mods.lua

View File

@ -762,7 +762,7 @@ int ModApiMainMenu::l_get_modpath(lua_State *L)
int ModApiMainMenu::l_get_gamepath(lua_State *L)
{
std::string gamepath = fs::RemoveRelativePathComponents(
porting::path_share + DIR_DELIM + "games" + DIR_DELIM);
porting::path_share + DIR_DELIM + "planets" + DIR_DELIM);
lua_pushstring(L, gamepath.c_str());
return 1;
}
@ -949,7 +949,7 @@ bool ModApiMainMenu::isMinetestPath(std::string path)
return true;
/* games */
if (fs::PathStartsWith(path,fs::RemoveRelativePathComponents(porting::path_share + DIR_DELIM + "games")))
if (fs::PathStartsWith(path,fs::RemoveRelativePathComponents(porting::path_share + DIR_DELIM + "planets")))
return true;
/* mods */

View File

@ -87,13 +87,13 @@ SubgameSpec findSubgame(const std::string &id)
}
find_paths.push_back(GameFindPath(
share + DIR_DELIM + "games" + DIR_DELIM + id + "_game", true));
share + DIR_DELIM + "planets" + DIR_DELIM + id + "_game", true));
find_paths.push_back(GameFindPath(
share + DIR_DELIM + "games" + DIR_DELIM + id, true));
share + DIR_DELIM + "planets" + DIR_DELIM + id, true));
find_paths.push_back(GameFindPath(
share + DIR_DELIM + "games" + DIR_DELIM + id + "_game", false));
share + DIR_DELIM + "planets" + DIR_DELIM + id + "_game", false));
find_paths.push_back(GameFindPath(
share + DIR_DELIM + "games" + DIR_DELIM + id, false));
share + DIR_DELIM + "planets" + DIR_DELIM + id, false));
// Find game directory
std::string game_path;
bool user_game = true; // Game is in user's directory
@ -145,7 +145,7 @@ std::set<std::string> getAvailableGameIds()
{
std::set<std::string> gameids;
std::set<std::string> gamespaths;
gamespaths.insert(porting::path_share + DIR_DELIM + "games");
gamespaths.insert(porting::path_share + DIR_DELIM + "planets");
Strfnd search_paths(getSubgamePathEnv());