From 78807d0feb441976d14f17691e3abb52ec3739c6 Mon Sep 17 00:00:00 2001 From: Lunovox Date: Fri, 22 Nov 2024 13:45:50 -0300 Subject: [PATCH] --- README.md | 81 ++++++++++++++++----- item_smartphone.lua | 8 +-- locale/computing.pt.tr | 32 +++++---- locale/computing.pt_BR.tr | 32 +++++---- locale/pt.po | 143 +++++++++++++++++++++----------------- locale/pt_BR.po | 143 +++++++++++++++++++++----------------- locale/template.pot | 56 +++++++++------ 7 files changed, 296 insertions(+), 199 deletions(-) diff --git a/README.md b/README.md index 00fa6ac..56e841b 100644 --- a/README.md +++ b/README.md @@ -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:** ### **Without 'components' mod:** @@ -78,12 +65,6 @@ See more details in wiki: ----------------------------------------- -## 👄 **Translates:** - -See more details in file: [locale/README.md] - ------------------------------------------ - ## ⚙ **Settings:** 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("", { + icon_name = "", + icon_type = "", --types: button/button_exit + icon_title = "", + icon_descryption = "", + icon_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_link]:https://content.luanti.org/packages/Lunovox/computing/ diff --git a/item_smartphone.lua b/item_smartphone.lua index 571f959..b86b673 100644 --- a/item_smartphone.lua +++ b/item_smartphone.lua @@ -135,9 +135,9 @@ modComputing.getFormSmartphone = function(player) .."label[1.75,0.25;" ..core.formspec_escape( - modComputing.translate("Page")..": " + modComputing.translate("Page")..":" ..("%02d"):format(modComputing.show_page[playername] + 1) - .." / " + .."/" ..("%02d"):format(maxPages + 1) ) .."]" @@ -215,8 +215,8 @@ core.register_craftitem("computing:smartphone", { "#00FF00", modComputing.translate("SMARTPHONE") ).."\n" .."* "..modComputing.translate( - "A mobile device that contains \n" - .."several apps generated by \n" + "A mobile device that contains @n" + .."several apps generated by @n" .."integrating other mods." ), inventory_image = "icon_smartphone_128x128.png", diff --git a/locale/computing.pt.tr b/locale/computing.pt.tr index 6ab1d36..f8d88e0 100644 --- a/locale/computing.pt.tr +++ b/locale/computing.pt.tr @@ -1,20 +1,24 @@ # textdomain: computing -Sun=Dom -Mon=Seg -Tue=Ter -Wed=Qua -Thu=Qui +@1, @2 @3=@1, @2 @3 +@1-@2=@2/@1 +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. +AUT=OUT +BACK PAGE=PÁGINA ANTERIOR +FAILURE=FALHA 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 SUM=VER -AUT=OUT -WIN=INV -@1-@2=@2/@1 -Now this is the day @1°.=Agora este Ă© o dia @1°. -FAILURE=FALHA +Sat=SĂĄb +Sun=Dom 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!!! -@1, @2 @3=@1, @2 @3 -msgid ""=Loja\nBanana -SMARTPHONE=ESPERTOFONE +smartphone=espertofone diff --git a/locale/computing.pt_BR.tr b/locale/computing.pt_BR.tr index 6ab1d36..f8d88e0 100644 --- a/locale/computing.pt_BR.tr +++ b/locale/computing.pt_BR.tr @@ -1,20 +1,24 @@ # textdomain: computing -Sun=Dom -Mon=Seg -Tue=Ter -Wed=Qua -Thu=Qui +@1, @2 @3=@1, @2 @3 +@1-@2=@2/@1 +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. +AUT=OUT +BACK PAGE=PÁGINA ANTERIOR +FAILURE=FALHA 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 SUM=VER -AUT=OUT -WIN=INV -@1-@2=@2/@1 -Now this is the day @1°.=Agora este Ă© o dia @1°. -FAILURE=FALHA +Sat=SĂĄb +Sun=Dom 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!!! -@1, @2 @3=@1, @2 @3 -msgid ""=Loja\nBanana -SMARTPHONE=ESPERTOFONE +smartphone=espertofone diff --git a/locale/pt.po b/locale/pt.po index 08fed76..dc45f8f 100644 --- a/locale/pt.po +++ b/locale/pt.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\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" "Last-Translator: Automatically generated\n" "Language-Team: Lunovox Heavenfinder \n" @@ -17,57 +17,30 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: api.lua:98 -msgid "Sun" -msgstr "Dom" +#: item_smartphone.lua:15 +msgid "@1, @2 @3" +msgstr "@1, @2 @3" -#: api.lua:99 -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 +#: api.lua:216 msgid "@1-@2" msgstr "@2/@1" -#: api.lua:158 -msgid "Now this is the day @1°." -msgstr "Agora este Ă© o dia @1°." +#: item_smartphone.lua:218 +#, fuzzy +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 msgid "" @@ -77,28 +50,70 @@ msgstr "" "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'." -#: functions.lua:20 functions.lua:33 -msgid "FAILURE" -msgstr "FALHA" +#: api.lua:181 +msgid "Fri" +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 msgid "The maximum number of days is exactly '@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 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!!!" -#: item_smartphone.lua:6 -msgid "@1, @2 @3" -msgstr "@1, @2 @3" - -#: item_smartphone.lua:23 -msgid "" -"Banana\n" -"Store" -msgstr "Loja\nBanana" - -#: item_smartphone.lua:34 -msgid "SMARTPHONE" -msgstr "ESPERTOFONE" +#: item_smartphone.lua:271 +msgid "smartphone" +msgstr "espertofone" diff --git a/locale/pt_BR.po b/locale/pt_BR.po index 08fed76..dc45f8f 100644 --- a/locale/pt_BR.po +++ b/locale/pt_BR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\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" "Last-Translator: Automatically generated\n" "Language-Team: Lunovox Heavenfinder \n" @@ -17,57 +17,30 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: api.lua:98 -msgid "Sun" -msgstr "Dom" +#: item_smartphone.lua:15 +msgid "@1, @2 @3" +msgstr "@1, @2 @3" -#: api.lua:99 -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 +#: api.lua:216 msgid "@1-@2" msgstr "@2/@1" -#: api.lua:158 -msgid "Now this is the day @1°." -msgstr "Agora este Ă© o dia @1°." +#: item_smartphone.lua:218 +#, fuzzy +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 msgid "" @@ -77,28 +50,70 @@ msgstr "" "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'." -#: functions.lua:20 functions.lua:33 -msgid "FAILURE" -msgstr "FALHA" +#: api.lua:181 +msgid "Fri" +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 msgid "The maximum number of days is exactly '@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 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!!!" -#: item_smartphone.lua:6 -msgid "@1, @2 @3" -msgstr "@1, @2 @3" - -#: item_smartphone.lua:23 -msgid "" -"Banana\n" -"Store" -msgstr "Loja\nBanana" - -#: item_smartphone.lua:34 -msgid "SMARTPHONE" -msgstr "ESPERTOFONE" +#: item_smartphone.lua:271 +msgid "smartphone" +msgstr "espertofone" diff --git a/locale/template.pot b/locale/template.pot index fb16a8e..92fd853 100644 --- a/locale/template.pot +++ b/locale/template.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\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" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,55 +17,55 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: api.lua:98 +#: api.lua:176 msgid "Sun" msgstr "" -#: api.lua:99 +#: api.lua:177 msgid "Mon" msgstr "" -#: api.lua:100 +#: api.lua:178 msgid "Tue" msgstr "" -#: api.lua:101 +#: api.lua:179 msgid "Wed" msgstr "" -#: api.lua:102 +#: api.lua:180 msgid "Thu" msgstr "" -#: api.lua:103 +#: api.lua:181 msgid "Fri" msgstr "" -#: api.lua:104 +#: api.lua:182 msgid "Sat" msgstr "" -#: api.lua:130 +#: api.lua:208 msgid "SPR" msgstr "" -#: api.lua:131 +#: api.lua:209 msgid "SUM" msgstr "" -#: api.lua:132 +#: api.lua:210 msgid "AUT" msgstr "" -#: api.lua:133 +#: api.lua:211 msgid "WIN" msgstr "" -#: api.lua:138 +#: api.lua:216 msgid "@1-@2" msgstr "" -#: api.lua:158 +#: api.lua:236 msgid "Now this is the day @1°." msgstr "" @@ -87,16 +87,32 @@ msgstr "" msgid "You do not have the '@1' privilege to execute this command!!!" msgstr "" -#: item_smartphone.lua:6 +#: item_smartphone.lua:15 msgid "@1, @2 @3" msgstr "" -#: item_smartphone.lua:23 -msgid "" -"Banana\n" -"Store" +#: item_smartphone.lua:121 +msgid "BACK PAGE" 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" 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 ""