Skip to content

Commit

Permalink
Catalan translation - Updating javascript gts for gettext detection
Browse files Browse the repository at this point in the history
  • Loading branch information
jguille2 committed Feb 9, 2015
1 parent 4611390 commit d8743dc
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 60 deletions.
Binary file modified locale/ca/LC_MESSAGES/module_iwmessages.mo
Binary file not shown.
56 changes: 28 additions & 28 deletions locale/ca/LC_MESSAGES/module_iwmessages.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>\n"
"Language-Team: Intraweb <[email protected]>\n"
"Language: ca_ES\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -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."

Expand Down Expand Up @@ -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"

Expand All @@ -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"
Expand All @@ -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"

Expand All @@ -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"

Expand Down
50 changes: 25 additions & 25 deletions locale/module_iwmessages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -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 ""

Expand Down Expand Up @@ -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 ""

Expand All @@ -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 ""
Expand All @@ -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 ""

Expand All @@ -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 ""

Expand Down
2 changes: 1 addition & 1 deletion templates/IWmessages_user_display.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@
</form>
</div>
<script type="text/javascript">
var addingflag = '{{gt text='...modifying note flag status...'}}';//{{gt text='...modifying note flag status...'}}
var addingflag = "{{gt text='...modifying note flag status...'}}";
</script>
</div>
14 changes: 10 additions & 4 deletions templates/IWmessages_user_new.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand Down
4 changes: 2 additions & 2 deletions templates/IWmessages_user_view.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
{/if}
{if isset($inComeOver) AND $inComeOver}
<script>
alert('{{gt text="You have overcame the number of messages allowed in inbox. You should delete some messages."}}');//{{gt text="You have overcame the number of messages allowed in inbox. You should delete some messages."}}
alert("{{gt text="You have overcame the number of messages allowed in inbox. You should delete some messages."}}");
</script>
{/if}
</fieldset>
Expand Down Expand Up @@ -236,7 +236,7 @@
{/if}
{if isset($inComeOver) AND $inComeOver}
<script>
alert('{{gt text="You have overcame the number of messages allowed in outbox. You should delete some messages."}}');//{{gt text="You have overcame the number of messages allowed in outbox. You should delete some messages."}}
alert("{{gt text="You have overcame the number of messages allowed in outbox. You should delete some messages."}}");
</script>
{/if}
</fieldset>
Expand Down

0 comments on commit d8743dc

Please sign in to comment.