FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

View this page link -> translation

Feed 10 posts, 4 voices

Avatar
5 posts

Hi,

can you please make the “view this page” link translatable? At this time this one is hard coded in the frog/app/backend/backend/views/page/edit.php

Greets
Stephan

 
Avatar
651 posts

Hi Stephan, it’s not hard coded actually… the translatable text is “View this page”.

Please keep in mind it is case sensitive.

 
Avatar
5 posts

Hi mvfkleijn,

i wrote it like this:
‘View this page’ => ‘Diese Seite ansehen’,

and nothing happend. :(

where is my error? ;)

greets
Stephan

 
Avatar
316 posts

I’m using 0.9.4, mvdkleijn, and he’s right. In /frog/app/backend/views/page/edit.php, near the top:

<span style="float: right;">
<a onclick="target='_blank'" onkeypress="target='_blank'" href="<?php echo URL_PUBLIC; echo (USE_MOD_REWRITE == false) ? '?' : ''; echo $page->getUri().URL_SUFFIX; ?>">
View this page</a></span>

Shouldn’t that be:

<span style="float: right;">
<a onclick="target='_blank'" onkeypress="target='_blank'" href="<?php echo URL_PUBLIC; echo (USE_MOD_REWRITE == false) ? '?' : ''; echo $page->getUri().URL_SUFFIX; ?>">
<?php echo __('View this page'); ?></a></span>

I’ve put a couple carriage returns in there for word wrap purposes. This is, at least in my version, the way it is. I haven’t updated since 0.9.4 stable was released.

EDIT: Ignore me, next time I’ll check the latest revision before opening my mouth.

 
Avatar
316 posts

@skrippendorf, the latest archive, 0.9.4 r290 has the problem fixed. You can find the snapshot at:

http://www.madebyfrog.com/public/temp/frog09x.zip

 
Avatar
651 posts

Hi Stephan,

Sorry for the late reply, I forgot to check 094 stable… I tend to check the latest SVN revision due to me working on it a lot :-p

Anyways, in the latest revision it is translatable.

 
Avatar
486 posts

Can you also assign a class or id to it? because the link is barely visible against the background when you’re using the black and white admin interface…

Perhaps an id on the span…

 
Avatar
651 posts

I added an id to the link. Its in SVN, id is site-view-page.