http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692012-08-09T02:39:33ZTYPO3 ForgeTYPO3 Core - Feature #39597: Multiple locale names for TS config.locale_allhttp://forge.typo3.org/issues/39597?journal_id=1273292012-08-09T02:39:33ZJeff Segarsjsegars@alumni.rice.edu
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Needs Feedback</i></li></ul><p>Sven,<br />I'm not the right person to give any final opinions on this on anything localization related in TYPO3 since I'm an American guy who almost always builds in English. I do wonder if there's some overlap with <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: L10n: locales dependency is not taken into account (Closed)" href="http://forge.typo3.org/issues/29386">#29386</a> though. In that issue, a feature was added for locale fallback and extension labels. I wonder if the same fallback should actually be used here too.</p>
<p>Xavier,<br />I'm adding you as a follower since you were involved in the locale fallback for labels. What do you think?</p>
<p>Thanks,<br />Jeff</p> TYPO3 Core - Feature #39597: Multiple locale names for TS config.locale_allhttp://forge.typo3.org/issues/39597?journal_id=1273302012-08-09T03:11:49ZMarkus Kleinmarkus.klein@typo3.org
<ul></ul><p>Hi Sven,</p>
<p>I'm not entirely sure, what you try to achieve with this?<br />Usually you should be able to figure out, which locales are supported on the server where you install TYPO3.</p> TYPO3 Core - Feature #39597: Multiple locale names for TS config.locale_allhttp://forge.typo3.org/issues/39597?journal_id=1273732012-08-09T15:42:01ZSven Tapperttappert@sven-t.de
<ul></ul><p>Jeff Segars wrote:</p>
<blockquote>
<p>I do wonder if there's some overlap with <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: L10n: locales dependency is not taken into account (Closed)" href="http://forge.typo3.org/issues/29386">#29386</a> though. In that issue, a feature was added for locale fallback and extension labels. I wonder if the same fallback should actually be used here too.</p>
</blockquote>
<p>Jeff, <br />thank you for the hint, but as far as I understand, it seems to be a different issue. The change I suggest doesn't relate to the Typo3 localization features, but more basically to php functions like strftime (e.g. when echoing the name of a weekday or a month). The translation is built into php and relies on the right locale to be set.</p>
<p>Markus Klein wrote:</p>
<blockquote>
<p>I'm not entirely sure, what you try to achieve with this?<br />Usually you should be able to figure out, which locales are supported on the server where you install TYPO3.</p>
</blockquote>
<p>Hi Markus, <br />your right, it's just for convenience and easier portability. I was just wondering, because I expected the locale_all setting to behave equivalent to the setlocale(LC_ALL, ..) function. Probably the feature was just never updated in Typo3, when it was added to php 4.3?</p>
<p>I think it's just nice to have it all in one line, working with all projects, without using conditions or the need to adapt it to each system when dragging the installation from development to production. Furthermore it might stay unnoticed for a long time when the setting of the locale failed. But of course, no must-have!</p> TYPO3 Core - Feature #39597: Multiple locale names for TS config.locale_allhttp://forge.typo3.org/issues/39597?journal_id=1746962013-07-24T09:25:03ZAlexander Opitzopitz.alexander@googlemail.com
<ul></ul><p>Hi,</p>
<p>as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (6.1)?</p> TYPO3 Core - Feature #39597: Multiple locale names for TS config.locale_allhttp://forge.typo3.org/issues/39597?journal_id=1748282013-07-24T19:22:53ZSven Tapperttappert@sven-t.de
<ul></ul><p>Yes, the issue still exists in 6.1</p>
<pre>
# not accepted, but should be to support seamless switch between different operating systems
config.locale_all = de_DE@euro, de_DE, deu_deu
</pre>
<p>In 6.1.2 it's located in \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController method "settingLocale()".</p>
<p>The config value should be converted to an array by trimExplode(). This array has to be passed to the native PHP function setlocale() (instead of the pure string).</p>
<p>setlocale() returns the accepted locale. So the return value $locale has be used after the first call to setlocale()<br />(instead of <code>$this->config['config']['locale_all']</code>).</p>
<p>The solution posted above still applies <br />(t3lib_div::trimExplode() has been moved to \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode()).</p>
<p>See: <a class="external" href="http://www.php.net/manual/en/function.setlocale.php">http://www.php.net/manual/en/function.setlocale.php</a></p>
<p>Note:<br />The special handling of turkish locales still works (and is still needed until PHP 5.5). It might be extended to check $locale against 'turkish' additionally, since this seems to be a valid turkish locale on some systems.</p> TYPO3 Core - Feature #39597: Multiple locale names for TS config.locale_allhttp://forge.typo3.org/issues/39597?journal_id=1748852013-07-25T09:17:29ZAlexander Opitzopitz.alexander@googlemail.com
<ul><li><strong>Status</strong> changed from <i>Needs Feedback</i> to <i>New</i></li></ul> TYPO3 Core - Feature #39597: Multiple locale names for TS config.locale_allhttp://forge.typo3.org/issues/39597?journal_id=2452052015-01-17T14:37:39ZMathias Schreibermathias.schreiber@typo3.com
<ul><li><strong>Target version</strong> set to <i>7.2 (Frontend)</i></li></ul> TYPO3 Core - Feature #39597: Multiple locale names for TS config.locale_allhttp://forge.typo3.org/issues/39597?journal_id=2617392015-06-15T17:44:36ZBenni Mackbenni@typo3.org
<ul><li><strong>Target version</strong> changed from <i>7.2 (Frontend)</i> to <i>7.4 (Backend)</i></li></ul> TYPO3 Core - Feature #39597: Multiple locale names for TS config.locale_allhttp://forge.typo3.org/issues/39597?journal_id=2698852015-08-05T10:29:13ZSusanne Moogsusanne.moog@typo3.org
<ul><li><strong>Target version</strong> changed from <i>7.4 (Backend)</i> to <i>7.5</i></li></ul> TYPO3 Core - Feature #39597: Multiple locale names for TS config.locale_allhttp://forge.typo3.org/issues/39597?journal_id=2774202015-09-24T12:05:21ZBenni Mackbenni@typo3.org
<ul><li><strong>Target version</strong> changed from <i>7.5</i> to <i>8 LTS</i></li></ul> TYPO3 Core - Feature #39597: Multiple locale names for TS config.locale_allhttp://forge.typo3.org/issues/39597?journal_id=3006972016-03-31T13:21:41ZGerrit Code Review
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Under Review</i></li></ul><p>Patch set 1 for branch <strong>master</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="https://review.typo3.org/47458">https://review.typo3.org/47458</a></p> TYPO3 Core - Feature #39597: Multiple locale names for TS config.locale_allhttp://forge.typo3.org/issues/39597?journal_id=3007012016-03-31T13:30:54ZGerrit Code Review
<ul></ul><p>Patch set 2 for branch <strong>master</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="https://review.typo3.org/47458">https://review.typo3.org/47458</a></p> TYPO3 Core - Feature #39597: Multiple locale names for TS config.locale_allhttp://forge.typo3.org/issues/39597?journal_id=3007272016-03-31T17:56:34ZBenni Mackbenni@typo3.org
<ul><li><strong>Status</strong> changed from <i>Under Review</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="[FEATURE] Allow multiple locales for config.locale_all The PHP function setlocale() allows to de..." href="http://forge.typo3.org/projects/typo3cms-core/repository/1749/revisions/4ea36d5bb2d8e221b49ab4fde22a7e5adb7101d2">4ea36d5bb2d8e221b49ab4fde22a7e5adb7101d2</a>.</p> TYPO3 Core - Feature #39597: Multiple locale names for TS config.locale_allhttp://forge.typo3.org/issues/39597?journal_id=3434612017-10-17T23:31:08ZRiccardo De Contardierredeco@gmail.com
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>