[dw-free] English-strip /editjournal
[commit: http://hg.dwscoalition.org/dw-free/rev/fd24f588f9b0]
http://bugs.dwscoalition.org/show_bug.cgi?id=384
English-strip /editjournal.bml
Patch by
isabeau.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=384
English-strip /editjournal.bml
Patch by
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
Files modified:
- bin/upgrading/en.dat
- htdocs/editjournal.bml
- htdocs/editjournal.bml.text
-------------------------------------------------------------------------------- diff -r 58b35abba8e9 -r fd24f588f9b0 bin/upgrading/en.dat --- a/bin/upgrading/en.dat Sat Mar 14 07:42:07 2009 +0000 +++ b/bin/upgrading/en.dat Sat Mar 14 19:03:25 2009 +0000 @@ -1336,6 +1336,8 @@ error.message.individual=Message can onl error.nobutton=No button pressed? +error.nocomm=The community you selected does not exist. + error.nocommlogin=Logging in as a community has been disabled. error.nodb=Database temporarily unavailable. @@ -1349,6 +1351,8 @@ error.noschwartz=TheSchwartz not install error.noschwartz=TheSchwartz not installed or not configured properly. error.notloggedin=You have to <a [[aopts]]>log in</a> in order to use this page. + +error.person=You must be authenticated as a person. error.procrequest=There was an error processing your request: @@ -2204,6 +2208,8 @@ number.punctuation=, number.punctuation=, number.thousand=[[number]] thousand + +optional=(optional) password=Password diff -r 58b35abba8e9 -r fd24f588f9b0 htdocs/editjournal.bml --- a/htdocs/editjournal.bml Sat Mar 14 07:42:07 2009 +0000 +++ b/htdocs/editjournal.bml Sat Mar 14 19:03:25 2009 +0000 @@ -30,9 +30,9 @@ body<= # are they asking to be authed as someone else? my $authas = $GET{'authas'} || $remote->{'user'}; my $u = LJ::get_authas_user($authas); - return LJ::bad_input("You could not be authenticated as the specified user.") + return LJ::bad_input( $ML{'error.invalidauth'} ) unless $u; - return LJ::bad_input("You must be authenticated as a person.") + return LJ::bad_input( $ML{'error.person'} ) unless $u->{'journaltype'} eq 'P'; # are we modify a community post? @@ -67,7 +67,7 @@ body<= $ret .= "<?hr?><table><tr valign='top'><td align='middle'>"; $ret .= "<form method='post' action='editjournal.bml$getextra'>\n"; $ret .= LJ::html_hidden('itemid',$ditemid,'mode',"edit"); - $ret .= LJ::html_submit("itemid-$ditemid",'Edit this Entry'); + $ret .= LJ::html_submit( "itemid-$ditemid", $ML{'.edit.this.entry'} ); $ret .= "</form>"; $ret .= "</td><td>"; @@ -113,7 +113,7 @@ body<= my $usejournal_u; if ($usejournal) { $usejournal_u = LJ::load_user($usejournal); - return LJ::bad_input("The community you selected does not exist.") + return LJ::bad_input( $ML{'error.nocomm'} ) unless $usejournal_u; } @@ -453,12 +453,12 @@ body<= my $ev_count = $res{'events_count'}; unless ($ev_count) { if ($req{'selecttype'} eq 'lastn') { - return "<?h1 No Entries Found h1?>\n" . - "<?p The selected journal has no entries. p?>\n"; + return "<?h1 $ML{'.no.entries.found'} h1?>\n" . + "<?p $ML{'.no.entries.exist'} p?>\n"; } - return "<?h1 No Entries Found h1?>\n" . - "<?p No entries match the criteria you specified. Please go back and adjust your search. p?>\n"; + return "<?h1 $ML{'.no.entries.found'} h1?>\n" . + "<?p $ML{'.no.entries.match'} p?>\n"; } ### display results @@ -516,7 +516,7 @@ body<= # use journal $ret .= "<tr valign=\"top\"><td align='right'>$ML{'.in'}</td>\n<td>\n"; $ret .= LJ::html_text({ 'name' => 'usejournal', 'size' => '20', 'maxlength' => '25', 'value' => $GET{'usejournal'} }) . " "; - $ret .= " (optional)</td></tr>"; + $ret .= " $ML{'optional'}</td></tr>"; # submit button $ret .= "<tr><td> </td><td>" . LJ::html_submit(undef, $ML{'.btn.proceed'}) . "</td></tr>\n"; diff -r 58b35abba8e9 -r fd24f588f9b0 htdocs/editjournal.bml.text --- a/htdocs/editjournal.bml.text Sat Mar 14 07:42:07 2009 +0000 +++ b/htdocs/editjournal.bml.text Sat Mar 14 19:03:25 2009 +0000 @@ -7,7 +7,15 @@ .desc=Please use the form below to find the entry you would like to edit. +.edit.this.entry=Edit this Entry + .in=In community: + +.no.entries.exist=The selected journal has no entries. + +.no.entries.found=No Entries Found + +.no.entries.match=No entries match the criteria you specified. Please go back and adjust your search. .recententries=most recent entries --------------------------------------------------------------------------------