This commit is contained in:
Lunovox 2024-11-22 13:45:50 -03:00
parent 3814bfbe0e
commit 78807d0feb
7 changed files with 296 additions and 199 deletions

View file

@ -28,19 +28,6 @@ Badge: [![ContentDB_en_icon]][ContentDB_en_link] [![DownloadsCDB_en_icon]][Downl
----------------------------------------- -----------------------------------------
## 📀 **Mods with Apps:**
These mods are not mandatory. But, because they are integrated into the 'computing' mod, they extend the functionality.
| Mod Name | Descryption |
| :--: | :-- |
| [correio][mod_correio] | Add an app that allows you to read emails. |
| [minertrade][mod_minertrade] | Add an app that allows you to carry out banking operations, with: balance, statement, and money transfers. |
| [lunoschedule][mod_lunoschedule] | Add an app that displays a calendar with four seasons of 28 days each. |
| [soundchat][mod_soundchat] | Add applications that allow you to: configure the chat sound (ideal for those with ADHD), view the conversation history (Ideal for those who play luanti/minetest on their cell phones), start a local chat (between players located close to each other on the map), start a private player-to-player chat with infinite distances). |
-----------------------------------------
## 🍰 **Recipes:** ## 🍰 **Recipes:**
### **Without 'components' mod:** ### **Without 'components' mod:**
@ -78,12 +65,6 @@ See more details in wiki:
----------------------------------------- -----------------------------------------
## 👄 **Translates:**
See more details in file: [locale/README.md]
-----------------------------------------
## ⚙️ **Settings:** ## ⚙️ **Settings:**
In **minetest.conf** file: In **minetest.conf** file:
@ -97,6 +78,68 @@ You don't need to do any of these presets mentioned below to make this mod work.
----------------------------------------- -----------------------------------------
## 👄 **Translates:**
See more details in file: [locale/README.md]
-----------------------------------------
## 📀 **Mods with Intregrsted Apps:**
These mods are not mandatory. But, because they are integrated into the 'computing' mod, they extend the functionality.
| Mod Name | Descryption |
| :--: | :-- |
| [correio][mod_correio] | Add an app that allows you to read emails. |
| [minertrade][mod_minertrade] | Add an app that allows you to carry out banking operations, with: balance, statement, and money transfers. |
| [lunoschedule][mod_lunoschedule] | Add an app that displays a calendar with four seasons of 28 days each. |
| [soundchat][mod_soundchat] | Add applications that allow you to: configure the chat sound (ideal for those with ADHD), view the conversation history (Ideal for those who play luanti/minetest on their cell phones), start a local chat (between players located close to each other on the map), start a private player-to-player chat with infinite distances). |
-----------------------------------------
## 📎 **API of Integration:**
### Syntaxe:
````lua
modComputing.add_app("<app_id>", {
icon_name = "<app_button_name>",
icon_type = "<button_type>", --types: button/button_exit
icon_title = "<app_name>",
icon_descryption = "<app_descryption>",
icon_image = "<app_image>",
on_iconclick = function(clicker)
-- Put here your functions!
end,
})
````
### Sample:
````lua
if core.global_exists("modComputing") then
modComputing.add_app("my_mod:app_hello_world", {
icon_name = "btnShowAppHelloWorld",
icon_type = "button",
icon_title = "HELLO WORLD",
icon_descryption = "This is a sample of 'hello world' app.",
icon_image = "icon_app.png",
on_iconclick = function(clicker)
local playername = clicker:get_player_name()
core.chat_send_player(playername,
("The '%s' pressed '%s' button icon app!"):format(
playername,
btnShowAppHelloWorld
)
)
-- Put more lines if you want!
end,
})
end
````
-----------------------------------------
[ContentDB_en_icon]:https://content.luanti.org/packages/Lunovox/computing/shields/title/ [ContentDB_en_icon]:https://content.luanti.org/packages/Lunovox/computing/shields/title/
[ContentDB_en_link]:https://content.luanti.org/packages/Lunovox/computing/ [ContentDB_en_link]:https://content.luanti.org/packages/Lunovox/computing/

View file

@ -135,9 +135,9 @@ modComputing.getFormSmartphone = function(player)
.."label[1.75,0.25;" .."label[1.75,0.25;"
..core.formspec_escape( ..core.formspec_escape(
modComputing.translate("Page")..": " modComputing.translate("Page")..":"
..("%02d"):format(modComputing.show_page[playername] + 1) ..("%02d"):format(modComputing.show_page[playername] + 1)
.." / " .."/"
..("%02d"):format(maxPages + 1) ..("%02d"):format(maxPages + 1)
) )
.."]" .."]"
@ -215,8 +215,8 @@ core.register_craftitem("computing:smartphone", {
"#00FF00", modComputing.translate("SMARTPHONE") "#00FF00", modComputing.translate("SMARTPHONE")
).."\n" ).."\n"
.."* "..modComputing.translate( .."* "..modComputing.translate(
"A mobile device that contains \n" "A mobile device that contains @n"
.."several apps generated by \n" .."several apps generated by @n"
.."integrating other mods." .."integrating other mods."
), ),
inventory_image = "icon_smartphone_128x128.png", inventory_image = "icon_smartphone_128x128.png",

View file

@ -1,20 +1,24 @@
# textdomain: computing # textdomain: computing
Sun=Dom @1, @2 @3=@1, @2 @3
Mon=Seg @1-@2=@2/@1
Tue=Ter A mobile device that contains @nseveral apps generated by @nintegrating other mods.=Um dispositivo móvel que contém @nvários aplicativos gerados pela @nintegração de outros mods.
Wed=Qua AUT=OUT
Thu=Qui BACK PAGE=PÁGINA ANTERIOR
FAILURE=FALHA
Fri=Sex Fri=Sex
Sat=Sáb Mon=Seg
NEXT PAGE=PRÓXIMA PÁGINA
Now this is the day @1°.=Agora este é o dia @1°.
Page=PÁGINA
SMARTPHONE=ESPERTOFONE
SPR=PRI SPR=PRI
SUM=VER SUM=VER
AUT=OUT Sat=Sáb
WIN=INV Sun=Dom
@1-@2=@2/@1
Now this is the day @1°.=Agora este é o dia @1°.
FAILURE=FALHA
The maximum number of days is exactly '@1'!!!=O número máximo de dias é exatamente '@1'!!! The maximum number of days is exactly '@1'!!!=O número máximo de dias é exatamente '@1'!!!
Thu=Qui
Tue=Ter
WIN=INV
Wed=Qua
You do not have the '@1' privilege to execute this command!!!=Você não tem o privilégio '@1' para executar este comando!!! You do not have the '@1' privilege to execute this command!!!=Você não tem o privilégio '@1' para executar este comando!!!
@1, @2 @3=@1, @2 @3 smartphone=espertofone
msgid ""=Loja\nBanana
SMARTPHONE=ESPERTOFONE

View file

@ -1,20 +1,24 @@
# textdomain: computing # textdomain: computing
Sun=Dom @1, @2 @3=@1, @2 @3
Mon=Seg @1-@2=@2/@1
Tue=Ter A mobile device that contains @nseveral apps generated by @nintegrating other mods.=Um dispositivo móvel que contém @nvários aplicativos gerados pela @nintegração de outros mods.
Wed=Qua AUT=OUT
Thu=Qui BACK PAGE=PÁGINA ANTERIOR
FAILURE=FALHA
Fri=Sex Fri=Sex
Sat=Sáb Mon=Seg
NEXT PAGE=PRÓXIMA PÁGINA
Now this is the day @1°.=Agora este é o dia @1°.
Page=PÁGINA
SMARTPHONE=ESPERTOFONE
SPR=PRI SPR=PRI
SUM=VER SUM=VER
AUT=OUT Sat=Sáb
WIN=INV Sun=Dom
@1-@2=@2/@1
Now this is the day @1°.=Agora este é o dia @1°.
FAILURE=FALHA
The maximum number of days is exactly '@1'!!!=O número máximo de dias é exatamente '@1'!!! The maximum number of days is exactly '@1'!!!=O número máximo de dias é exatamente '@1'!!!
Thu=Qui
Tue=Ter
WIN=INV
Wed=Qua
You do not have the '@1' privilege to execute this command!!!=Você não tem o privilégio '@1' para executar este comando!!! You do not have the '@1' privilege to execute this command!!!=Você não tem o privilégio '@1' para executar este comando!!!
@1, @2 @3=@1, @2 @3 smartphone=espertofone
msgid ""=Loja\nBanana
SMARTPHONE=ESPERTOFONE

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-18 18:29-0300\n" "POT-Creation-Date: 2024-11-22 13:35-0300\n"
"PO-Revision-Date: 2024-11-18 18:29-0300\n" "PO-Revision-Date: 2024-11-18 18:29-0300\n"
"Last-Translator: Automatically generated\n" "Last-Translator: Automatically generated\n"
"Language-Team: Lunovox Heavenfinder <lunovox@disroot.org>\n" "Language-Team: Lunovox Heavenfinder <lunovox@disroot.org>\n"
@ -17,57 +17,30 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: api.lua:98 #: item_smartphone.lua:15
msgid "Sun" msgid "@1, @2 @3"
msgstr "Dom" msgstr "@1, @2 @3"
#: api.lua:99 #: api.lua:216
msgid "Mon"
msgstr "Seg"
#: api.lua:100
msgid "Tue"
msgstr "Ter"
#: api.lua:101
msgid "Wed"
msgstr "Qua"
#: api.lua:102
msgid "Thu"
msgstr "Qui"
#: api.lua:103
msgid "Fri"
msgstr "Sex"
#: api.lua:104
msgid "Sat"
msgstr "Sáb"
#: api.lua:130
msgid "SPR"
msgstr "PRI"
#: api.lua:131
msgid "SUM"
msgstr "VER"
#: api.lua:132
msgid "AUT"
msgstr "OUT"
#: api.lua:133
msgid "WIN"
msgstr "INV"
#: api.lua:138
msgid "@1-@2" msgid "@1-@2"
msgstr "@2/@1" msgstr "@2/@1"
#: api.lua:158 #: item_smartphone.lua:218
msgid "Now this is the day @1°." #, fuzzy
msgstr "Agora este é o dia @1°." msgid "A mobile device that contains @nseveral apps generated by @nintegrating other mods."
msgstr "Um dispositivo móvel que contém @nvários aplicativos gerados pela @nintegração de outros mods."
#: api.lua:210
msgid "AUT"
msgstr "OUT"
#: item_smartphone.lua:121
msgid "BACK PAGE"
msgstr "PÁGINA ANTERIOR"
#: functions.lua:20 functions.lua:33
msgid "FAILURE"
msgstr "FALHA"
#: functions.lua:5 #: functions.lua:5
msgid "" msgid ""
@ -77,28 +50,70 @@ msgstr ""
"Força o calendário a pular um certo número de dias.\n" "Força o calendário a pular um certo número de dias.\n"
"Número máximo de 112 dias. Necessita do privilégio 'settime'." "Número máximo de 112 dias. Necessita do privilégio 'settime'."
#: functions.lua:20 functions.lua:33 #: api.lua:181
msgid "FAILURE" msgid "Fri"
msgstr "FALHA" msgstr "Sex"
#: api.lua:177
msgid "Mon"
msgstr "Seg"
#: item_smartphone.lua:146
msgid "NEXT PAGE"
msgstr "PRÓXIMA PÁGINA"
#: api.lua:236
msgid "Now this is the day @1°."
msgstr "Agora este é o dia @1°."
#: item_smartphone.lua:138
msgid "Page"
msgstr "PÁGINA"
#: item_smartphone.lua:215
msgid "SMARTPHONE"
msgstr "ESPERTOFONE"
#: api.lua:208
msgid "SPR"
msgstr "PRI"
#: api.lua:209
msgid "SUM"
msgstr "VER"
#: api.lua:182
msgid "Sat"
msgstr "Sáb"
#: api.lua:176
msgid "Sun"
msgstr "Dom"
#: functions.lua:22 #: functions.lua:22
msgid "The maximum number of days is exactly '@1'!!!" msgid "The maximum number of days is exactly '@1'!!!"
msgstr "O número máximo de dias é exatamente '@1'!!!" msgstr "O número máximo de dias é exatamente '@1'!!!"
#: api.lua:180
msgid "Thu"
msgstr "Qui"
#: api.lua:178
msgid "Tue"
msgstr "Ter"
#: api.lua:211
msgid "WIN"
msgstr "INV"
#: api.lua:179
msgid "Wed"
msgstr "Qua"
#: functions.lua:35 #: functions.lua:35
msgid "You do not have the '@1' privilege to execute this command!!!" msgid "You do not have the '@1' privilege to execute this command!!!"
msgstr "Você não tem o privilégio '@1' para executar este comando!!!" msgstr "Você não tem o privilégio '@1' para executar este comando!!!"
#: item_smartphone.lua:6 #: item_smartphone.lua:271
msgid "@1, @2 @3" msgid "smartphone"
msgstr "@1, @2 @3" msgstr "espertofone"
#: item_smartphone.lua:23
msgid ""
"Banana\n"
"Store"
msgstr "Loja\nBanana"
#: item_smartphone.lua:34
msgid "SMARTPHONE"
msgstr "ESPERTOFONE"

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-18 18:29-0300\n" "POT-Creation-Date: 2024-11-22 13:35-0300\n"
"PO-Revision-Date: 2024-11-18 18:29-0300\n" "PO-Revision-Date: 2024-11-18 18:29-0300\n"
"Last-Translator: Automatically generated\n" "Last-Translator: Automatically generated\n"
"Language-Team: Lunovox Heavenfinder <lunovox@disroot.org>\n" "Language-Team: Lunovox Heavenfinder <lunovox@disroot.org>\n"
@ -17,57 +17,30 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: api.lua:98 #: item_smartphone.lua:15
msgid "Sun" msgid "@1, @2 @3"
msgstr "Dom" msgstr "@1, @2 @3"
#: api.lua:99 #: api.lua:216
msgid "Mon"
msgstr "Seg"
#: api.lua:100
msgid "Tue"
msgstr "Ter"
#: api.lua:101
msgid "Wed"
msgstr "Qua"
#: api.lua:102
msgid "Thu"
msgstr "Qui"
#: api.lua:103
msgid "Fri"
msgstr "Sex"
#: api.lua:104
msgid "Sat"
msgstr "Sáb"
#: api.lua:130
msgid "SPR"
msgstr "PRI"
#: api.lua:131
msgid "SUM"
msgstr "VER"
#: api.lua:132
msgid "AUT"
msgstr "OUT"
#: api.lua:133
msgid "WIN"
msgstr "INV"
#: api.lua:138
msgid "@1-@2" msgid "@1-@2"
msgstr "@2/@1" msgstr "@2/@1"
#: api.lua:158 #: item_smartphone.lua:218
msgid "Now this is the day @1°." #, fuzzy
msgstr "Agora este é o dia @1°." msgid "A mobile device that contains @nseveral apps generated by @nintegrating other mods."
msgstr "Um dispositivo móvel que contém @nvários aplicativos gerados pela @nintegração de outros mods."
#: api.lua:210
msgid "AUT"
msgstr "OUT"
#: item_smartphone.lua:121
msgid "BACK PAGE"
msgstr "PÁGINA ANTERIOR"
#: functions.lua:20 functions.lua:33
msgid "FAILURE"
msgstr "FALHA"
#: functions.lua:5 #: functions.lua:5
msgid "" msgid ""
@ -77,28 +50,70 @@ msgstr ""
"Força o calendário a pular um certo número de dias.\n" "Força o calendário a pular um certo número de dias.\n"
"Número máximo de 112 dias. Necessita do privilégio 'settime'." "Número máximo de 112 dias. Necessita do privilégio 'settime'."
#: functions.lua:20 functions.lua:33 #: api.lua:181
msgid "FAILURE" msgid "Fri"
msgstr "FALHA" msgstr "Sex"
#: api.lua:177
msgid "Mon"
msgstr "Seg"
#: item_smartphone.lua:146
msgid "NEXT PAGE"
msgstr "PRÓXIMA PÁGINA"
#: api.lua:236
msgid "Now this is the day @1°."
msgstr "Agora este é o dia @1°."
#: item_smartphone.lua:138
msgid "Page"
msgstr "PÁGINA"
#: item_smartphone.lua:215
msgid "SMARTPHONE"
msgstr "ESPERTOFONE"
#: api.lua:208
msgid "SPR"
msgstr "PRI"
#: api.lua:209
msgid "SUM"
msgstr "VER"
#: api.lua:182
msgid "Sat"
msgstr "Sáb"
#: api.lua:176
msgid "Sun"
msgstr "Dom"
#: functions.lua:22 #: functions.lua:22
msgid "The maximum number of days is exactly '@1'!!!" msgid "The maximum number of days is exactly '@1'!!!"
msgstr "O número máximo de dias é exatamente '@1'!!!" msgstr "O número máximo de dias é exatamente '@1'!!!"
#: api.lua:180
msgid "Thu"
msgstr "Qui"
#: api.lua:178
msgid "Tue"
msgstr "Ter"
#: api.lua:211
msgid "WIN"
msgstr "INV"
#: api.lua:179
msgid "Wed"
msgstr "Qua"
#: functions.lua:35 #: functions.lua:35
msgid "You do not have the '@1' privilege to execute this command!!!" msgid "You do not have the '@1' privilege to execute this command!!!"
msgstr "Você não tem o privilégio '@1' para executar este comando!!!" msgstr "Você não tem o privilégio '@1' para executar este comando!!!"
#: item_smartphone.lua:6 #: item_smartphone.lua:271
msgid "@1, @2 @3" msgid "smartphone"
msgstr "@1, @2 @3" msgstr "espertofone"
#: item_smartphone.lua:23
msgid ""
"Banana\n"
"Store"
msgstr "Loja\nBanana"
#: item_smartphone.lua:34
msgid "SMARTPHONE"
msgstr "ESPERTOFONE"

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-18 18:29-0300\n" "POT-Creation-Date: 2024-11-22 13:35-0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,55 +17,55 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: api.lua:98 #: api.lua:176
msgid "Sun" msgid "Sun"
msgstr "" msgstr ""
#: api.lua:99 #: api.lua:177
msgid "Mon" msgid "Mon"
msgstr "" msgstr ""
#: api.lua:100 #: api.lua:178
msgid "Tue" msgid "Tue"
msgstr "" msgstr ""
#: api.lua:101 #: api.lua:179
msgid "Wed" msgid "Wed"
msgstr "" msgstr ""
#: api.lua:102 #: api.lua:180
msgid "Thu" msgid "Thu"
msgstr "" msgstr ""
#: api.lua:103 #: api.lua:181
msgid "Fri" msgid "Fri"
msgstr "" msgstr ""
#: api.lua:104 #: api.lua:182
msgid "Sat" msgid "Sat"
msgstr "" msgstr ""
#: api.lua:130 #: api.lua:208
msgid "SPR" msgid "SPR"
msgstr "" msgstr ""
#: api.lua:131 #: api.lua:209
msgid "SUM" msgid "SUM"
msgstr "" msgstr ""
#: api.lua:132 #: api.lua:210
msgid "AUT" msgid "AUT"
msgstr "" msgstr ""
#: api.lua:133 #: api.lua:211
msgid "WIN" msgid "WIN"
msgstr "" msgstr ""
#: api.lua:138 #: api.lua:216
msgid "@1-@2" msgid "@1-@2"
msgstr "" msgstr ""
#: api.lua:158 #: api.lua:236
msgid "Now this is the day @1°." msgid "Now this is the day @1°."
msgstr "" msgstr ""
@ -87,16 +87,32 @@ msgstr ""
msgid "You do not have the '@1' privilege to execute this command!!!" msgid "You do not have the '@1' privilege to execute this command!!!"
msgstr "" msgstr ""
#: item_smartphone.lua:6 #: item_smartphone.lua:15
msgid "@1, @2 @3" msgid "@1, @2 @3"
msgstr "" msgstr ""
#: item_smartphone.lua:23 #: item_smartphone.lua:121
msgid "" msgid "BACK PAGE"
"Banana\n"
"Store"
msgstr "" msgstr ""
#: item_smartphone.lua:34 #: item_smartphone.lua:138
msgid "Page"
msgstr ""
#: item_smartphone.lua:146
msgid "NEXT PAGE"
msgstr ""
#: item_smartphone.lua:215
msgid "SMARTPHONE" msgid "SMARTPHONE"
msgstr "" msgstr ""
#: item_smartphone.lua:218
msgid ""
"A mobile device that contains @nseveral apps generated by @nintegrating "
"other mods."
msgstr ""
#: item_smartphone.lua:271
msgid "smartphone"
msgstr ""