Plogger Support Forum - hum. . .why stops works when i translate ? Fri, 29 Mar 2024 16:00:08 +0000 http://www.plogger.org/forum/ Lussumo Vanilla 1.1.10 hum. . .why stops works when i translate ? http://www.plogger.org/forum/comments.php?DiscussionID=164&Focus=782#Comment_782 http://www.plogger.org/forum/comments.php?DiscussionID=164&Focus=782#Comment_782 Thu, 03 Nov 2005 00:12:22 +0000 ruizit0
for example:
<input class="submit" type="submit" name="action" onClick="return confirm('Tem a certeza que deseja apagar itens selecionados?');"
value="Delete Checked">

translated:
<input class="submit" type="submit" name="action" onClick="return confirm('Tem a certeza que deseja apagar itens selecionados?');"
value="Apagar selecionados">

stops working .. when i change only the value . ..
weird]]>
hum. . .why stops works when i translate ? http://www.plogger.org/forum/comments.php?DiscussionID=164&Focus=783#Comment_783 http://www.plogger.org/forum/comments.php?DiscussionID=164&Focus=783#Comment_783 Thu, 03 Nov 2005 00:31:29 +0000 ddejong if ($_REQUEST["action"]== "Delete Checked")

So, if you want to change the values of the buttons, then you also have to change the "hooks" to match. (They're basically procedural event handlers; "if" this button was pressed, "then" perform this action.) With luck, there may be an internationalization/labeling system in the next Beta. Until then, I think you'll have to find the hooks and change them by hand.

Or, you could create a new PHP file to include_once above the admin PHP script, that converted from your language back into to the standard hooks. e.g.
if ($_REQUEST("action") == ""Apagar selecionados") {
$_REQUEST("action") = "Delete Checked"; }

This way they would appear in your language but Plogger would understand the originals. This would have to be done BEFORE Plogger tried to read the values, though, so would go at the top of one of the admin scripts.

Sorry, I know it's a rudimentary solution, but I don't think this has yet been integrated into Plogger itself.

Regards,
Derek

PS. Are there tags to include <pre> text like <code> on this forum software? I've never used this before, and I keep posting CSS/PHP/XHTML. I've found you can't use XHTML, so something else would be welcome.]]>
hum. . .why stops works when i translate ? http://www.plogger.org/forum/comments.php?DiscussionID=164&Focus=786#Comment_786 http://www.plogger.org/forum/comments.php?DiscussionID=164&Focus=786#Comment_786 Thu, 03 Nov 2005 00:51:56 +0000 mike
<a href="test.html" title="test">Test Link</a>
<ul>
<li>Test 1</li>
<li>Test 2</li>
</ul>

Works fine for me.

Oh, and Derek is right about Plogger using those input values as hooks to determine certain actions. When you change them to something else, you will have to change that conditional in plog-manage.php to get it to be recognized.

Our internationalization system will take care of this problem (Beta 3)]]>
hum. . .why stops works when i translate ? http://www.plogger.org/forum/comments.php?DiscussionID=164&Focus=787#Comment_787 http://www.plogger.org/forum/comments.php?DiscussionID=164&Focus=787#Comment_787 Thu, 03 Nov 2005 01:40:27 +0000 ruizit0
great! i already found some missing little things during my translation. . like ..

Allow_comments check isnt working. .
and i cant find the value to translate it
some more values i cant find like Captation and Filename. .
this on photos inside albuns Manage. .
and some collections manage like Description and Name
errrrr
O_o lol . .so weird. .
and some more buttons missing values :
well ill wait for a next version . . .
btw my big big problem is the special characters :
i cant add Ã? and Ã? to some values because it doesnt recognise it ..
maybe some way to fix that in next version .. for suporting portuguese language :|
thanks all]]>
hum. . .why stops works when i translate ? http://www.plogger.org/forum/comments.php?DiscussionID=164&Focus=788#Comment_788 http://www.plogger.org/forum/comments.php?DiscussionID=164&Focus=788#Comment_788 Thu, 03 Nov 2005 01:40:36 +0000 ddejong
But maybe I'm just crazy. Thanks Mike.

Derek]]>
hum. . .why stops works when i translate ? http://www.plogger.org/forum/comments.php?DiscussionID=164&Focus=789#Comment_789 http://www.plogger.org/forum/comments.php?DiscussionID=164&Focus=789#Comment_789 Thu, 03 Nov 2005 02:01:34 +0000 ruizit0 &ccedil;
&atilde;
etc stuff :
more harder .. but better then nothing lol :]]>
hum. . .why stops works when i translate ? http://www.plogger.org/forum/comments.php?DiscussionID=164&Focus=790#Comment_790 http://www.plogger.org/forum/comments.php?DiscussionID=164&Focus=790#Comment_790 Thu, 03 Nov 2005 02:26:33 +0000 ruizit0 hum. . .why stops works when i translate ? http://www.plogger.org/forum/comments.php?DiscussionID=164&Focus=791#Comment_791 http://www.plogger.org/forum/comments.php?DiscussionID=164&Focus=791#Comment_791 Thu, 03 Nov 2005 11:45:46 +0000 mike
Ruizit: Here is a reference page for HTML entities: http://www.everything2.com/index.pl?node=HTML%20Symbol%20Reference]]>
hum. . .why stops works when i translate ? http://www.plogger.org/forum/comments.php?DiscussionID=164&Focus=794#Comment_794 http://www.plogger.org/forum/comments.php?DiscussionID=164&Focus=794#Comment_794 Thu, 03 Nov 2005 12:50:41 +0000 ddejong
At least that's solved. Thanks again Mike.

Regards,
Derek

Edit: And a tip for Ruizit, if you use HTML entities in your values, you'll need to use them in the hooks as well. Going from one to another won't work, because PHP doesn't see them (rightly) as the same thing.]]>