diff --git a/locale/ca/LC_MESSAGES/module_iwmessages.mo b/locale/ca/LC_MESSAGES/module_iwmessages.mo index 92b2159..a2a1783 100644 Binary files a/locale/ca/LC_MESSAGES/module_iwmessages.mo and b/locale/ca/LC_MESSAGES/module_iwmessages.mo differ diff --git a/locale/ca/LC_MESSAGES/module_iwmessages.po b/locale/ca/LC_MESSAGES/module_iwmessages.po index 5654b95..6babe80 100644 --- a/locale/ca/LC_MESSAGES/module_iwmessages.po +++ b/locale/ca/LC_MESSAGES/module_iwmessages.po @@ -7,9 +7,9 @@ msgid "" msgstr "" "Project-Id-Version: Mòdule IWmessages for zikula 1.3.x\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-02-05 10:57+0000\n" -"PO-Revision-Date: 2015-02-05 12:01+0100\n" -"Last-Translator: \n" +"POT-Creation-Date: 2015-02-09 22:53+0000\n" +"PO-Revision-Date: 2015-02-10 00:09+0100\n" +"Last-Translator: Joan Guillén i Pelegay \n" "Language-Team: Intraweb \n" "Language: ca_ES\n" "MIME-Version: 1.0\n" @@ -178,11 +178,11 @@ msgstr "a" msgid "To all users" msgstr "A tots els usuaris" -#: lib/IWmessages/Controller/User.php:909 templates/IWmessages_user_new.tpl:6 +#: lib/IWmessages/Controller/User.php:909 templates/IWmessages_user_new.tpl:8 msgid "Not user especified." msgstr "No has especificat el destinatari." -#: lib/IWmessages/Controller/User.php:918 templates/IWmessages_user_new.tpl:9 +#: lib/IWmessages/Controller/User.php:918 templates/IWmessages_user_new.tpl:13 msgid "No subject" msgstr "No has especificat l'assumpte." @@ -356,7 +356,7 @@ msgid "Modify" msgstr "Modifica" #: templates/IWmessages_user_display.tpl:7 -#: templates/IWmessages_user_new.tpl:33 templates/IWmessages_user_view.tpl:180 +#: templates/IWmessages_user_new.tpl:42 templates/IWmessages_user_view.tpl:180 msgid "To" msgstr "A" @@ -372,7 +372,7 @@ msgid "Mark the message with a flag" msgstr "'Marca el missatge amb una bandera" #: templates/IWmessages_user_display.tpl:30 -#: templates/IWmessages_user_new.tpl:66 templates/IWmessages_user_view.tpl:54 +#: templates/IWmessages_user_new.tpl:75 templates/IWmessages_user_view.tpl:54 #: templates/IWmessages_user_view.tpl:181 msgid "Subject" msgstr "Assumpte" @@ -382,7 +382,7 @@ msgid "Sent" msgstr "Enviat" #: templates/IWmessages_user_display.tpl:61 -#: templates/IWmessages_user_new.tpl:90 +#: templates/IWmessages_user_new.tpl:99 msgid "Message" msgstr "Missatge" @@ -408,72 +408,72 @@ msgstr "Esborra" msgid "...modifying note flag status..." msgstr "...modificant la marca de la nota..." -#: templates/IWmessages_user_new.tpl:12 -msgid "is not allowed. The allowed extensions are: " -msgstr "no és admesa. Les extensions possibles són: " - -#: templates/IWmessages_user_new.tpl:12 +#: templates/IWmessages_user_new.tpl:18 msgid "The extension of the attached file" msgstr "L'extensió del fitxer adjunt" -#: templates/IWmessages_user_new.tpl:16 +#: templates/IWmessages_user_new.tpl:18 +msgid "is not allowed. The allowed extensions are: " +msgstr "no és admesa. Les extensions possibles són: " + +#: templates/IWmessages_user_new.tpl:24 msgid "Confirm before send?" msgstr "Vols realment enviar el missatge?" -#: templates/IWmessages_user_new.tpl:28 +#: templates/IWmessages_user_new.tpl:37 msgid "Send private message" msgstr "Envia un missatge privat" -#: templates/IWmessages_user_new.tpl:49 +#: templates/IWmessages_user_new.tpl:58 msgid "and/or to the group" msgstr "i/o al grup/subgrup" -#: templates/IWmessages_user_new.tpl:53 +#: templates/IWmessages_user_new.tpl:62 msgid "Choose a group..." msgstr "Tria un grup..." -#: templates/IWmessages_user_new.tpl:71 +#: templates/IWmessages_user_new.tpl:80 msgid "Icon" msgstr "Icona" -#: templates/IWmessages_user_new.tpl:85 +#: templates/IWmessages_user_new.tpl:94 msgid "You can activate smilies from module configuration." msgstr "Podeu activar les emoticones des de la configuració del mòdul." -#: templates/IWmessages_user_new.tpl:99 templates/IWmessages_user_view.tpl:76 +#: templates/IWmessages_user_new.tpl:108 templates/IWmessages_user_view.tpl:76 #: templates/IWmessages_user_view.tpl:193 msgid "Attached files" msgstr "Fitxers adjuts" -#: templates/IWmessages_user_new.tpl:101 +#: templates/IWmessages_user_new.tpl:110 msgid "Allowed extensions" msgstr "Extensions permeses" -#: templates/IWmessages_user_new.tpl:104 +#: templates/IWmessages_user_new.tpl:113 msgid "File 1" msgstr "Fitxer 1" -#: templates/IWmessages_user_new.tpl:108 +#: templates/IWmessages_user_new.tpl:117 msgid "File 2" msgstr "Fitxer 2" -#: templates/IWmessages_user_new.tpl:112 +#: templates/IWmessages_user_new.tpl:121 msgid "File 3" msgstr "Fitxer 3" -#: templates/IWmessages_user_new.tpl:126 +#: templates/IWmessages_user_new.tpl:135 msgid "Submit" msgstr "Tramet" -#: templates/IWmessages_user_new.tpl:132 +#: templates/IWmessages_user_new.tpl:141 msgid "Cancel reply" msgstr "Cancel·la la resposta" -#: templates/IWmessages_user_new.tpl:136 +#: templates/IWmessages_user_new.tpl:145 msgid "Cancel sending" msgstr "Cancel·la l'enviament" -#: templates/IWmessages_user_new.tpl:144 +#: templates/IWmessages_user_new.tpl:153 msgid "Original message" msgstr "Missatge original" diff --git a/locale/module_iwmessages.pot b/locale/module_iwmessages.pot index a4004f2..c27193a 100644 --- a/locale/module_iwmessages.pot +++ b/locale/module_iwmessages.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Zikula 1.x\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-02-05 10:57+0000\n" +"POT-Creation-Date: 2015-02-09 22:53+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -173,11 +173,11 @@ msgstr "" msgid "To all users" msgstr "" -#: lib/IWmessages/Controller/User.php:909 templates/IWmessages_user_new.tpl:6 +#: lib/IWmessages/Controller/User.php:909 templates/IWmessages_user_new.tpl:8 msgid "Not user especified." msgstr "" -#: lib/IWmessages/Controller/User.php:918 templates/IWmessages_user_new.tpl:9 +#: lib/IWmessages/Controller/User.php:918 templates/IWmessages_user_new.tpl:13 msgid "No subject" msgstr "" @@ -340,7 +340,7 @@ msgid "Modify" msgstr "" #: templates/IWmessages_user_display.tpl:7 -#: templates/IWmessages_user_new.tpl:33 templates/IWmessages_user_view.tpl:180 +#: templates/IWmessages_user_new.tpl:42 templates/IWmessages_user_view.tpl:180 msgid "To" msgstr "" @@ -356,7 +356,7 @@ msgid "Mark the message with a flag" msgstr "" #: templates/IWmessages_user_display.tpl:30 -#: templates/IWmessages_user_new.tpl:66 templates/IWmessages_user_view.tpl:54 +#: templates/IWmessages_user_new.tpl:75 templates/IWmessages_user_view.tpl:54 #: templates/IWmessages_user_view.tpl:181 msgid "Subject" msgstr "" @@ -366,7 +366,7 @@ msgid "Sent" msgstr "" #: templates/IWmessages_user_display.tpl:61 -#: templates/IWmessages_user_new.tpl:90 +#: templates/IWmessages_user_new.tpl:99 msgid "Message" msgstr "" @@ -392,72 +392,72 @@ msgstr "" msgid "...modifying note flag status..." msgstr "" -#: templates/IWmessages_user_new.tpl:12 -msgid "is not allowed. The allowed extensions are: " +#: templates/IWmessages_user_new.tpl:18 +msgid "The extension of the attached file" msgstr "" -#: templates/IWmessages_user_new.tpl:12 -msgid "The extension of the attached file" +#: templates/IWmessages_user_new.tpl:18 +msgid "is not allowed. The allowed extensions are: " msgstr "" -#: templates/IWmessages_user_new.tpl:16 +#: templates/IWmessages_user_new.tpl:24 msgid "Confirm before send?" msgstr "" -#: templates/IWmessages_user_new.tpl:28 +#: templates/IWmessages_user_new.tpl:37 msgid "Send private message" msgstr "" -#: templates/IWmessages_user_new.tpl:49 +#: templates/IWmessages_user_new.tpl:58 msgid "and/or to the group" msgstr "" -#: templates/IWmessages_user_new.tpl:53 +#: templates/IWmessages_user_new.tpl:62 msgid "Choose a group..." msgstr "" -#: templates/IWmessages_user_new.tpl:71 +#: templates/IWmessages_user_new.tpl:80 msgid "Icon" msgstr "" -#: templates/IWmessages_user_new.tpl:85 +#: templates/IWmessages_user_new.tpl:94 msgid "You can activate smilies from module configuration." msgstr "" -#: templates/IWmessages_user_new.tpl:99 templates/IWmessages_user_view.tpl:76 +#: templates/IWmessages_user_new.tpl:108 templates/IWmessages_user_view.tpl:76 #: templates/IWmessages_user_view.tpl:193 msgid "Attached files" msgstr "" -#: templates/IWmessages_user_new.tpl:101 +#: templates/IWmessages_user_new.tpl:110 msgid "Allowed extensions" msgstr "" -#: templates/IWmessages_user_new.tpl:104 +#: templates/IWmessages_user_new.tpl:113 msgid "File 1" msgstr "" -#: templates/IWmessages_user_new.tpl:108 +#: templates/IWmessages_user_new.tpl:117 msgid "File 2" msgstr "" -#: templates/IWmessages_user_new.tpl:112 +#: templates/IWmessages_user_new.tpl:121 msgid "File 3" msgstr "" -#: templates/IWmessages_user_new.tpl:126 +#: templates/IWmessages_user_new.tpl:135 msgid "Submit" msgstr "" -#: templates/IWmessages_user_new.tpl:132 +#: templates/IWmessages_user_new.tpl:141 msgid "Cancel reply" msgstr "" -#: templates/IWmessages_user_new.tpl:136 +#: templates/IWmessages_user_new.tpl:145 msgid "Cancel sending" msgstr "" -#: templates/IWmessages_user_new.tpl:144 +#: templates/IWmessages_user_new.tpl:153 msgid "Original message" msgstr "" diff --git a/templates/IWmessages_user_display.tpl b/templates/IWmessages_user_display.tpl index 5d2ef21..165e4e0 100644 --- a/templates/IWmessages_user_display.tpl +++ b/templates/IWmessages_user_display.tpl @@ -92,6 +92,6 @@ diff --git a/templates/IWmessages_user_new.tpl b/templates/IWmessages_user_new.tpl index 5da7446..b150fbf 100644 --- a/templates/IWmessages_user_new.tpl +++ b/templates/IWmessages_user_new.tpl @@ -4,20 +4,26 @@ var error=false; document.newmsg.action="index.php?module=IWmessages&type=user&func=submit"; if(document.newmsg.to_user.value=="" && document.newmsg.multi.value==0){ - alert("{{gt text="Not user especified."}}");//{{gt text="Not user especified."}} + //for gt detection + alert("{{gt text="Not user especified."}}"); var error=true; } if(document.newmsg.subject.value=="" && !error){ - alert("{{gt text="No subject"}}");//{{gt text="No subject"}} + //for gt detection + alert("{{gt text="No subject"}}"); var error=true; } for(i=1;i<4;i++){ if(eval("document.newmsg.file"+i).value!="" && "{{$extensions}}".indexOf(eval("document.newmsg.file"+i).value.substring(eval("document.newmsg.file"+i).value.length-3,eval("document.newmsg.file"+i).value.length))==-1){ - alert("{{gt text="The extension of the attached file"}} "+eval("document.newmsg.file"+i).value+" {{gt text="is not allowed. The allowed extensions are: "}}{{$extensions}}");//{{gt text="The extension of the attached file"}}{{gt text="is not allowed. The allowed extensions are: "}} + //for gt detection + alert("{{gt text="The extension of the attached file"}} "+eval("document.newmsg.file"+i).value+" {{gt text="is not allowed. The allowed extensions are: "}}{{$extensions}}"); var error=true; } } - if(!error){resposta=confirm("{{gt text="Confirm before send?"}}");}//{{gt text="Confirm before send?"}} + if(!error){ + //for gt detection + resposta=confirm("{{gt text="Confirm before send?"}}"); + } if(!error && resposta){document.newmsg.submit();} } function notsend(){ diff --git a/templates/IWmessages_user_view.tpl b/templates/IWmessages_user_view.tpl index d0a7f96..3ef35a2 100644 --- a/templates/IWmessages_user_view.tpl +++ b/templates/IWmessages_user_view.tpl @@ -124,7 +124,7 @@ {/if} {if isset($inComeOver) AND $inComeOver} {/if} @@ -236,7 +236,7 @@ {/if} {if isset($inComeOver) AND $inComeOver} {/if}