magentos-pl / opencaching-pl

Automatically exported from code.google.com/p/opencaching-pl
0 stars 0 forks source link

Strange translation problem #170

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When trying to translate "Number of caches by region" on 
http://opencaching.pl/articles.php?page=s7 or 
http://opencaching.nl/articles.php?page=s7. I see that the lines are not 
translated when selecting another language.

The text is the same on oc.nl, oc.pl and oc.ro

Can please some one 'who has the knowledge' tell me what i have done wrong?

Thanks

Original issue reported on code.google.com by henricus...@gmail.com on 22 Oct 2014 at 8:15

GoogleCodeExporter commented 9 years ago
I looked an it via web interfac, and this template (s11.tpl.php) seems 
to be big piece of crap
(there is logic, including database query put inside of template, should 
be in engine).

Whole template should be rebuild...

For now you can try hot-fix: try it and test on your local machine 
before commit:

replace this:

echo    '<tr class="bgcolor2">'.
         '<td align="center">{{Stats_s3_02}}  </td>'.
     '<td align="center">{{Stats_s3_03}}</td>'.
     '<td 
align="center">{{Stats_s3_04}}  </td></tr><tr><td>';

*witch:

*?>
<tr class="bgcolor2">
<td align="center">{{Stats_s3_02}}  </td>
<td align="center">{{Stats_s3_03}}</td>
<td align="center">{{Stats_s3_04}}  </td></tr><tr><td>
<?php

W dniu 2014-10-22 o 10:15, opencaching-pl@googlecode.com pisze:

Original comment by wloczynutka on 22 Oct 2014 at 9:30

GoogleCodeExporter commented 9 years ago
without first star, I don't know why google code added these stars to message

?>
<tr class="bgcolor2">
<td align="center">{{Stats_s3_02}}  </td>
<td align="center">{{Stats_s3_03}}</td>
<td align="center">{{Stats_s3_04}}  </td></tr><tr><td>
<?php

Original comment by andrzej....@traveltech.pl on 22 Oct 2014 at 9:31

GoogleCodeExporter commented 9 years ago
Thanks for the answer :-)

These changes has no effect on local machine. 
Language is still Dutch no matter what language i select on upper right corner 
(flags)

I know that (when translating in the past) that translated parts in tpl,php 
files with {{translate_this}} will turn black on my screen.
When change like you suggested these translations become black. this should be 
correct. Now on line 34 the {{translate_this}} is still red.

Original comment by henricus...@gmail.com on 22 Oct 2014 at 10:46

Attachments:

GoogleCodeExporter commented 9 years ago
?><center><table width="97%" border="0"><tr><td 
align="center"><center>{{Stats_s3_01}}<br/><?php

Original comment by wloczynutka on 22 Oct 2014 at 12:22

GoogleCodeExporter commented 9 years ago
This all has no effect. Even changed file "s11a.tpl.php" had same kind of lines 
also no effect.
I leave it like it is and hope some one can rebuild this in future.
There are more things i can do :-)

Thanks for the help.

Original comment by henricus...@gmail.com on 22 Oct 2014 at 1:21

GoogleCodeExporter commented 9 years ago
probably this changes works!!
I can see in the code, that this code is executed once and cached for 86400 
seconds.
taht mean, if you enter any change to code, It will take no effect until 86400 
seconds is passed.

to avoid 8400 seconds wait, (for developing), you can under
$result = apc_fetch($cache_key);
uncomment line 15
$result = false;

see my last commit

Original comment by wloczynutka on 4 Nov 2014 at 10:04