Skip to content

Commit 9d28738

Browse files
committed
Catalan translation - Updating javascripts gt for gettext detection
1 parent 8537aad commit 9d28738

File tree

8 files changed

+966
-967
lines changed

8 files changed

+966
-967
lines changed
-2.68 KB
Binary file not shown.

locale/ca/LC_MESSAGES/module_iwnoteboard.po

Lines changed: 538 additions & 573 deletions
Large diffs are not rendered by default.

locale/module_iwnoteboard.pot

Lines changed: 405 additions & 385 deletions
Large diffs are not rendered by default.

templates/IWnoteboard_admin_newShared.tpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
function send(valor){
3131
var error=false;
3232
if(document.newShared.url.value==''){
33-
alert('{{gt text="The shared URL is empty"}}');
33+
// for gt detection
34+
alert("{{gt text="The shared URL is empty"}}");
3435
error=true;
3536
}
3637
if(!error){

templates/IWnoteboard_admin_noutema.tpl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<div class="z-admincontainer">
33
<div class="z-adminpageicon">
44
{if isset($m) AND $m eq 0}
5-
{img modname='core' src='filenew.png' set='icons/large' __alt=''}
5+
{img modname='core' src='filenew.png' set='icons/large'}
66
{else}
7-
{img modname='core' src='edit.png' set='icons/large' __alt=''}
7+
{img modname='core' src='edit.png' set='icons/large'}
88
{/if}
99
</div>
1010
<h2>{$title}</h2>
@@ -52,6 +52,7 @@
5252
var f=document.forms['new_tema'];
5353
var error=false;
5454
if(f.nomtema.value==''){
55+
// for gt detection
5556
alert('{{gt text="The topic name is empty"}}');
5657
error=true;
5758
}

templates/IWnoteboard_user_comenta.tpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
function send(){
33
var j=0;
44
if(document.new_note.noticia.value==""){
5+
// for gt detection
56
// alert("{{gt text="The text of the note is empty!"}}");
67
// var error=true;
78
}
89

9-
resposta=confirm('{{gt text="Do you really want to send the note?"}}');
10+
resposta=confirm("{{gt text="Do you really want to send the note?"}}");
1011

1112
if(document.new_note.m.value=="n"){
1213
document.new_note.action="index.php?module=IWnoteboard&func=comenta_crear"

templates/IWnoteboard_user_main.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@
205205
</table>
206206

207207
<script type="text/javascript">
208-
var deletingnote = '{{gt text="...deleting the note..."}}';
209-
var addingflag = '{{gt text="...modifying note flag status..."}}';
210-
var hidingnote = '{{gt text="...hidding note..."}}';
211-
var savingnote = '{{gt text="...saving note..."}}';
208+
var deletingnote = "{{gt text="...deleting the note..."}}";
209+
var addingflag = "{{gt text="...modifying note flag status..."}}";
210+
var hidingnote = "{{gt text="...hidding note..."}}";
211+
var savingnote = "{{gt text="...saving note..."}}";
212212
</script>

templates/IWnoteboard_user_nova.tpl

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
var f=document.forms['new_note'];
44
var j=0;
55
if(f.fitxer.value!="" && "{{$extensions}}".indexOf(f.fitxer.value.substring(f.fitxer.value.length-3,f.fitxer.value.length))==-1 && !error){
6+
//for gt detection
67
alert("{{gt text="The extension of the attached file is not accepted. Allowed extensions are: "}}{{$extensions}}");
78
var error=true;
89
}
@@ -29,12 +30,16 @@
2930
}
3031

3132
if(!error && j==0){
33+
//for gt detection
3234
alert("{{gt text="There are no chosen addressee for the note"}}");
3335
var error=true;
3436
}
3537
{{/if}}
3638

37-
if(!error){resposta=confirm("{{gt text="Do you really want to send the note?"}}");}
39+
if(!error){
40+
//for gt detection
41+
resposta=confirm("{{gt text="Do you really want to send the note?"}}");
42+
}
3843

3944
if(f.m.value=="n"){
4045
f.action="index.php?module=IWnoteboard&func=crear"
@@ -60,16 +65,21 @@
6065
if(field.value != '') {
6166
if(regs = field.value.match(re)) {
6267
if(regs[1] < 1 || regs[1] > 31) {
68+
//for gt detection
6369
errorMsg = "{{gt text="Some of the dates in the form are not correct"}} " + field.value;
6470
} else if(regs[2] < 1 || regs[2] > 12) {
71+
//for gt detection
6572
errorMsg = "{{gt text="Some of the dates in the form are not correct"}} " + field.value;
6673
} else if(regs[3] < minYear || regs[3] > maxYear) {
74+
//for gt detection
6775
errorMsg = "{{gt text="Some of the dates in the form are not correct"}} " + field.value;
6876
}
6977
} else {
78+
//for gt detection
7079
errorMsg = "{{gt text="Some of the dates in the form are not correct"}} " + field.value;
7180
}
7281
} else if(!allowBlank) {
82+
//for gt detection
7383
errorMsg = "{{gt text="Some of the dates in the form are not correct"}}";
7484
}
7585
if(errorMsg != "") {
@@ -115,6 +125,7 @@
115125
caduca = new Date(20 + f.caduca.value.substr(6,2), f.caduca.value.substr(3,2), f.caduca.value.substr(0,2))
116126
var result = true;
117127
if (data > caduca){
128+
//for gt detection
118129
alert("{{gt text="The closing date is incorrect"}}");
119130
result = false;
120131
}

0 commit comments

Comments
 (0)