<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi all,<div>a long time ago the method tA was added to the class OC_L10N.</div><div>This method helps the developer to translate instantly a whole array of strings.</div><div>The problem is, that our perl script which searches for strings does <b>not </b>recognize the content of the array and as translatable string.</div><div>This causes bugs like this (<a href="http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-1267">http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-1267</a>)</div><div>I talked a quite long time ago with Jakob about this topic and he, the developer of the perl script, had no idea how to teach xgettext to get each single string out of this array.</div><div>IMO the best solution would be to remove this method, as it brings more trouble than benefits.</div><div>I just did a grep for the tA method.</div><div><div>super-awesome-macbook:ownCloud georgehrke$ grep -iR '\->tA(' ./</div><div>./apps/calendar/templates/calendar.php:<span class="Apple-tab-span" style="white-space:pre"> </span>var dayNames = <?php echo json_encode($l->tA(array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'))) ?>;</div><div>./apps/calendar/templates/calendar.php:<span class="Apple-tab-span" style="white-space:pre"> </span>var dayNamesShort = <?php echo json_encode($l->tA(array('Sun.', 'Mon.', 'Tue.', 'Wed.', 'Thu.', 'Fri.', 'Sat.'))) ?>;</div><div>./apps/calendar/templates/calendar.php:<span class="Apple-tab-span" style="white-space:pre"> </span>var monthNames = <?php echo json_encode($l->tA(array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'))) ?>;</div><div>./apps/calendar/templates/calendar.php:<span class="Apple-tab-span" style="white-space:pre"> </span>var monthNamesShort = <?php echo json_encode($l->tA(array('Jan.', 'Feb.', 'Mar.', 'Apr.', 'May.', 'Jun.', 'Jul.', 'Aug.', 'Sep.', 'Oct.', 'Nov.', 'Dec.'))) ?>;</div></div><div>The tA method is only used by one file in ownCloud, so it would be easy to remove this method.</div><div><br></div><div>Does everybody agree to remove this method?</div><div><br></div><div>Cheers,</div><div>Georg Ehrke</div></body></html>