aboutsummaryrefslogtreecommitdiff
path: root/po/nb
Commit message (Collapse)AuthorAge
* Update translation filesupdatepo.sh2021-06-16
|
* Translated using Weblate (Norwegian Bokmål)Allan Nordhøy2021-06-16
| | | | Currently translated at 58.1% (789 of 1356 strings)
* Update translation filesupdatepo.sh2021-02-23
|
* Update translation filesupdatepo.sh2021-01-30
|
* Translated using Weblate (Norwegian Bokmål)Allan Nordhøy2021-01-30
| | | | Currently translated at 58.5% (790 of 1350 strings)
* Translated using Weblate (Norwegian Bokmål)Liet Kynes2021-01-30
| | | | Currently translated at 58.5% (790 of 1350 strings)
* Translated using Weblate (Norwegian Bokmål)Petter Reinholdtsen2021-01-30
| | | | Currently translated at 58.3% (788 of 1350 strings)
* Translated using Weblate (Norwegian Bokmål)Allan Nordhøy2021-01-30
| | | | Currently translated at 57.3% (774 of 1350 strings)
* Translated using Weblate (Norwegian Bokmål)Petter Reinholdtsen2021-01-30
| | | | Currently translated at 57.1% (771 of 1350 strings)
* Translated using Weblate (Norwegian Bokmål)Allan Nordhøy2020-07-08
| | | | Currently translated at 56.8% (768 of 1350 strings)
* Update translation filesupdatepo.sh2020-06-13
|
* Update translation filesupdatepo.sh2020-04-03
|
* Translated using Weblate (Norwegian Bokmål)Liet Kynes2020-04-03
| | | | Currently translated at 60.0% (774 of 1288 strings)
* Translated using Weblate (Norwegian Bokmål)Allan Nordhøy2020-04-03
| | | | Currently translated at 60.0% (774 of 1288 strings)
* Translated using Weblate (Norwegian Bokmål)Liet Kynes2020-04-03
| | | | Currently translated at 54.0% (696 of 1288 strings)
* Translated using Weblate (Norwegian Bokmål)anonymous2020-04-03
| | | | Currently translated at 42.7% (551 of 1288 strings)
* Translated using Weblate (Norwegian Bokmål)Liet Kynes2020-04-03
| | | | Currently translated at 42.7% (551 of 1288 strings)
* Update translation sourcesrubenwardy2020-01-24
|
* Translated using Weblate (Norwegian Bokmål)Petter Reinholdtsen2020-01-24
| | | | Currently translated at 43.3% (552 of 1274 strings)
* Update translation stringsupdatepo.sh2019-10-12
|
* Update from Weblate (hacky)Translators2019-10-12
|
* Update translation stringsupdatepo.sh2019-09-09
|
* Update from WeblateTranslators2019-09-09
|
* Run updatepo.shTranslations2019-02-24
|
* Update translationsTranslations2019-02-24
|
* Update minetest.conf.example, settings strings and locale files (#8230)Wuzzy2019-02-14
|
* Run updatepo.shTranslation2019-02-14
|
* Update translationsTranslations2019-02-14
|
* Update translationsTranslations2019-02-02
|
* Cleanup translation filesLoïc Blot2019-01-28
| | | | These were broken on the previous commits
* Update translationsTranslations2019-01-27
|
* Run updatepo.shTranslations2019-01-06
|
* Update translations from WeblateTranslations2019-01-06
|
* Update minetest.conf.example and run updatepo.sh (#7947)Update Script2018-12-09
|
* Add translation of LANG_CODE in all languagesEkdohibs2017-08-24
|
* Fix updatepo.sh and run it.Ekdohibs2017-08-24
| | | | It was broken due to the presence of "µ" utf-8 characters in builtin/profiler/reporter.lua.
* Run updatepo.shLoic Blot2017-05-21
|
* Footsteps without view bobbing (#5645)Louis Pearson2017-04-25
| | | | | | | | | | | | * Remove redundant view_bobbing setting Also fixes bug where disabling view_bobbing disables footstep sounds. * Removes redundant view_bobbing setting Setting view_bobbing amount to 0 is now the only way to turn view_bobbing on and off. Also fixed a bug where footstep sounds would not play when view_bobbing was disabled.
* Translated using Weblate (Norwegian Bokmål)Petter Reinholdtsen2017-04-06
| | | | Currently translated at 3.9% (36 of 918 strings)
* Run updatepo.shest312016-12-14
|
* Translated using Weblate (Norwegian Bokmål)Petter Reinholdtsen2016-12-14
| | | | Currently translated at 3.3% (31 of 918 strings)
* Translated using Weblate (Norwegian Bokmål)Christian Haug2016-12-14
| | | | Currently translated at 2.8% (26 of 918 strings)
* Translated using Weblate (Norwegian Bokmål)Petter Reinholdtsen2016-12-14
| | | | Currently translated at 2.7% (25 of 918 strings)
* Translated using Weblate (Norwegian Bokmål)Christian Haug2016-12-14
| | | | Currently translated at 1.7% (16 of 918 strings)
* Translated using Weblate (Norwegian Bokmål)Petter Reinholdtsen2016-12-14
| | | | Currently translated at 1.6% (15 of 918 strings)
* Translated using Weblate (Norwegian Bokmål)Christian Haug2016-12-14
| | | | Currently translated at 1.5% (14 of 918 strings)
* Translated using Weblate (Norwegian Bokmål)Petter Reinholdtsen2016-12-14
| | | | Currently translated at 1.4% (13 of 918 strings)
* Run updatepo.shest312016-08-30
|
* Run updatepo.shest312016-07-12
|
* Run updatepo.shest312016-05-05
|
pan class="hl opt">} bool ScriptApiPlayer::on_prejoinplayer( const std::string &name, const std::string &ip, std::string *reason) { SCRIPTAPI_PRECHECKHEADER // Get core.registered_on_prejoinplayers lua_getglobal(L, "core"); lua_getfield(L, -1, "registered_on_prejoinplayers"); lua_pushstring(L, name.c_str()); lua_pushstring(L, ip.c_str()); runCallbacks(2, RUN_CALLBACKS_MODE_OR); if (lua_isstring(L, -1)) { reason->assign(readParam<std::string>(L, -1)); return true; } return false; } bool ScriptApiPlayer::can_bypass_userlimit(const std::string &name, const std::string &ip) { SCRIPTAPI_PRECHECKHEADER // Get core.registered_on_prejoinplayers lua_getglobal(L, "core"); lua_getfield(L, -1, "registered_can_bypass_userlimit"); lua_pushstring(L, name.c_str()); lua_pushstring(L, ip.c_str()); runCallbacks(2, RUN_CALLBACKS_MODE_OR); return lua_toboolean(L, -1); } void ScriptApiPlayer::on_joinplayer(ServerActiveObject *player, s64 last_login) { SCRIPTAPI_PRECHECKHEADER // Get core.registered_on_joinplayers lua_getglobal(L, "core"); lua_getfield(L, -1, "registered_on_joinplayers"); // Call callbacks objectrefGetOrCreate(L, player); if (last_login != -1) lua_pushinteger(L, last_login); else lua_pushnil(L); runCallbacks(2, RUN_CALLBACKS_MODE_FIRST); } void ScriptApiPlayer::on_leaveplayer(ServerActiveObject *player, bool timeout) { SCRIPTAPI_PRECHECKHEADER // Get core.registered_on_leaveplayers lua_getglobal(L, "core"); lua_getfield(L, -1, "registered_on_leaveplayers"); // Call callbacks objectrefGetOrCreate(L, player); lua_pushboolean(L, timeout); runCallbacks(2, RUN_CALLBACKS_MODE_FIRST); } void ScriptApiPlayer::on_cheat(ServerActiveObject *player, const std::string &cheat_type) { SCRIPTAPI_PRECHECKHEADER // Get core.registered_on_cheats lua_getglobal(L, "core"); lua_getfield(L, -1, "registered_on_cheats"); // Call callbacks objectrefGetOrCreate(L, player); lua_newtable(L); lua_pushlstring(L, cheat_type.c_str(), cheat_type.size()); lua_setfield(L, -2, "type"); runCallbacks(2, RUN_CALLBACKS_MODE_FIRST); } void ScriptApiPlayer::on_playerReceiveFields(ServerActiveObject *player, const std::string &formname, const StringMap &fields) { SCRIPTAPI_PRECHECKHEADER // Get core.registered_on_player_receive_fields lua_getglobal(L, "core"); lua_getfield(L, -1, "registered_on_player_receive_fields"); // Call callbacks // param 1 objectrefGetOrCreate(L, player); // param 2 lua_pushstring(L, formname.c_str()); // param 3 lua_newtable(L); StringMap::const_iterator it; for (it = fields.begin(); it != fields.end(); ++it) { const std::string &name = it->first; const std::string &value = it->second; lua_pushstring(L, name.c_str()); lua_pushlstring(L, value.c_str(), value.size()); lua_settable(L, -3); } runCallbacks(3, RUN_CALLBACKS_MODE_OR_SC); } void ScriptApiPlayer::on_authplayer(const std::string &name, const std::string &ip, bool is_success) { SCRIPTAPI_PRECHECKHEADER // Get core.registered_on_authplayers lua_getglobal(L, "core"); lua_getfield(L, -1, "registered_on_authplayers"); // Call callbacks lua_pushstring(L, name.c_str()); lua_pushstring(L, ip.c_str()); lua_pushboolean(L, is_success); runCallbacks(3, RUN_CALLBACKS_MODE_FIRST); } void ScriptApiPlayer::pushMoveArguments( const MoveAction &ma, int count, ServerActiveObject *player) { lua_State *L = getStack(); objectrefGetOrCreate(L, player); // player lua_pushstring(L, "move"); // action InvRef::create(L, ma.from_inv); // inventory lua_newtable(L); { // Table containing the action information lua_pushstring(L, ma.from_list.c_str()); lua_setfield(L, -2, "from_list"); lua_pushstring(L, ma.to_list.c_str()); lua_setfield(L, -2, "to_list"); lua_pushinteger(L, ma.from_i + 1); lua_setfield(L, -2, "from_index"); lua_pushinteger(L, ma.to_i + 1); lua_setfield(L, -2, "to_index"); lua_pushinteger(L, count); lua_setfield(L, -2, "count"); } } void ScriptApiPlayer::pushPutTakeArguments( const char *method, const InventoryLocation &loc, const std::string &listname, int index, const ItemStack &stack, ServerActiveObject *player) { lua_State *L = getStack(); objectrefGetOrCreate(L, player); // player lua_pushstring(L, method); // action InvRef::create(L, loc); // inventory lua_newtable(L); { // Table containing the action information lua_pushstring(L, listname.c_str()); lua_setfield(L, -2, "listname"); lua_pushinteger(L, index + 1); lua_setfield(L, -2, "index"); LuaItemStack::create(L, stack); lua_setfield(L, -2, "stack"); } } // Return number of accepted items to be moved int ScriptApiPlayer::player_inventory_AllowMove( const MoveAction &ma, int count, ServerActiveObject *player) { SCRIPTAPI_PRECHECKHEADER lua_getglobal(L, "core"); lua_getfield(L, -1, "registered_allow_player_inventory_actions"); pushMoveArguments(ma, count, player); runCallbacks(4, RUN_CALLBACKS_MODE_OR_SC); return lua_type(L, -1) == LUA_TNUMBER ? lua_tonumber(L, -1) : count; } // Return number of accepted items to be put int ScriptApiPlayer::player_inventory_AllowPut( const MoveAction &ma, const ItemStack &stack, ServerActiveObject *player) { SCRIPTAPI_PRECHECKHEADER lua_getglobal(L, "core"); lua_getfield(L, -1, "registered_allow_player_inventory_actions"); pushPutTakeArguments("put", ma.to_inv, ma.to_list, ma.to_i, stack, player); runCallbacks(4, RUN_CALLBACKS_MODE_OR_SC); return lua_type(L, -1) == LUA_TNUMBER ? lua_tonumber(L, -1) : stack.count; } // Return number of accepted items to be taken int ScriptApiPlayer::player_inventory_AllowTake( const MoveAction &ma, const ItemStack &stack, ServerActiveObject *player) { SCRIPTAPI_PRECHECKHEADER lua_getglobal(L, "core"); lua_getfield(L, -1, "registered_allow_player_inventory_actions"); pushPutTakeArguments("take", ma.from_inv, ma.from_list, ma.from_i, stack, player); runCallbacks(4, RUN_CALLBACKS_MODE_OR_SC); return lua_type(L, -1) == LUA_TNUMBER ? lua_tonumber(L, -1) : stack.count; } // Report moved items void ScriptApiPlayer::player_inventory_OnMove( const MoveAction &ma, int count, ServerActiveObject *player) { SCRIPTAPI_PRECHECKHEADER lua_getglobal(L, "core"); lua_getfield(L, -1, "registered_on_player_inventory_actions"); pushMoveArguments(ma, count, player); runCallbacks(4, RUN_CALLBACKS_MODE_FIRST); } // Report put items void ScriptApiPlayer::player_inventory_OnPut( const MoveAction &ma, const ItemStack &stack, ServerActiveObject *player) { SCRIPTAPI_PRECHECKHEADER lua_getglobal(L, "core"); lua_getfield(L, -1, "registered_on_player_inventory_actions"); pushPutTakeArguments("put", ma.to_inv, ma.to_list, ma.to_i, stack, player); runCallbacks(4, RUN_CALLBACKS_MODE_FIRST); } // Report taken items void ScriptApiPlayer::player_inventory_OnTake( const MoveAction &ma, const ItemStack &stack, ServerActiveObject *player) { SCRIPTAPI_PRECHECKHEADER lua_getglobal(L, "core"); lua_getfield(L, -1, "registered_on_player_inventory_actions"); pushPutTakeArguments("take", ma.from_inv, ma.from_list, ma.from_i, stack, player); runCallbacks(4, RUN_CALLBACKS_MODE_FIRST); }