<div dir="ltr">Hi Ernesto,<div><br></div><div>I've been investigating this further, and maybe I've found the issue, please read: </div><div><br></div><div>Related forge issue: <a href="http://forge.typo3.org/issues/32214">http://forge.typo3.org/issues/32214</a></div>
<div><br></div><div>Reading through the code it doesn't seems that the languages in isoReverseMapping is never set as dependencies for the correct languagekey.</div><div><br></div><div>Taken from the pibase class, using language_alt depends on a calculated dependency on different languagekeys</div>
<div><br></div><div>----------</div><div> if (!empty($GLOBALS['TSFE']->config['config']['language'])) {</div><div> $this->LLkey = $GLOBALS['TSFE']->config['config']['language'];</div>
<div> if (empty($GLOBALS['TSFE']->config['config']['language_alt'])) {</div><div> /** @var $locales t3lib_l10n_Locales */</div><div> $locales = t3lib_div::makeInstance('t3lib_l10n_Locales');</div>
<div> if (in_array($this->LLkey, $locales->getLocales())) {</div><div> $this->altLLkey = '';</div><div> foreach ($locales->getLocaleDependencies($this->LLkey) as $language) {</div>
<div> $this->altLLkey .= $language . ',';</div><div> }</div><div> $this->altLLkey = rtrim($this->altLLkey, ',');</div>
<div> }</div><div> } else {</div><div> $this->altLLkey = $GLOBALS['TSFE']->config['config']['language_alt'];</div>
<div> }</div><div> }</div><div>----------<br></div><div><br></div><div>But in the initialize function of Locales the dependency on the reverseMapping is never calculated (is initlaize() suposed to be called automatically or manual?)</div>
<div><br></div><div>----------<br></div><div><div><span class="" style="white-space:pre">                </span>// Initializes the locale dependencies with TYPO3 supported locales</div><div><span class="" style="white-space:pre">                </span>$instance->localeDependencies = array();</div>
<div><span class="" style="white-space:pre">                </span>foreach ($instance->languages as $locale => $name) {</div><div><span class="" style="white-space:pre">                        </span>if (strlen($locale) == 5) {</div><div><span class="" style="white-space:pre">                                </span>$instance->localeDependencies[$locale] = array(substr($locale, 0, 2));</div>
<div><span class="" style="white-space:pre">                        </span>}</div><div><span class="" style="white-space:pre">                </span>}</div></div><div>----------<br></div><div><br></div><div>It never touches $isoReverseMapping</div><div><br>
</div><div>Can anyone form the XLIFF team maybe see if I'm totally wrong on this?</div><div><br></div><div>Cheers</div><div><br></div><div>Søren</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 21, 2013 at 3:01 PM, Ernesto Baschny <span dir="ltr"><<a href="mailto:ernesto.baschny@typo3.org" target="_blank">ernesto.baschny@typo3.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Soren,<br>
<br>
thanks for looking into that! If you could, please document your<br>
findings and also what steps you needed to go through in the Smooth<br>
Migration issue tracker as a new issue so that we don't forget to<br>
document this.<br>
<br>
<a href="http://forge.typo3.org/projects/typo3cms-smoothmigration/issues" target="_blank">http://forge.typo3.org/projects/typo3cms-smoothmigration/issues</a><br>
<br>
Kind regards,<br>
Ernesto<br>
<br>
Am 2013-08-19 12:41, schrieb Søren Malling:<br>
<div class="im">> I think I found it in "Locales.php" -> isoReverseMapping<br>
><br>
> Will dig into it - thanks for the pointer anyway :-)<br>
><br>
> Cheers<br>
><br>
><br>
> On Mon, Aug 19, 2013 at 11:39 AM, Søren Malling <<a href="mailto:soren.malling@gmail.com">soren.malling@gmail.com</a><br>
</div><div class="im">> <mailto:<a href="mailto:soren.malling@gmail.com">soren.malling@gmail.com</a>>> wrote:<br>
><br>
> Hi Xavier,<br>
><br>
> What part of the localization should i look for the fallback? The<br>
> XliffParser or some more "core" related code?<br>
><br>
> Cheers<br>
><br>
> Søren<br>
><br>
><br>
> On Mon, Aug 19, 2013 at 10:09 AM, Xavier Perseguers<br>
</div><div><div class="h5">> <<a href="mailto:xavier@typo3.org">xavier@typo3.org</a> <mailto:<a href="mailto:xavier@typo3.org">xavier@typo3.org</a>>> wrote:<br>
><br>
> Hi,<br>
><br>
> > One issue that we have come across in the change of locallang<br>
> format<br>
> > (from ll-XML to XLF) is that the danish language key has<br>
> changed from<br>
> > "dk" to "da".<br>
> ><br>
> > Can anyone confirm this?<br>
><br>
> Yes as we use official ISO codes, but I would have sworn that<br>
> fallback<br>
> was in place.<br>
><br>
> --<br>
> Xavier Perseguers<br>
> Release Manager TYPO3 4.6<br>
><br>
> TYPO3 .... inspiring people to share!<br>
> Get involved: <a href="http://typo3.org" target="_blank">http://typo3.org</a><br>
><br>
> _______________________________________________<br>
> Before posting to this list, please have a look to the posting rules<br>
> on the following websites:<br>
><br>
> <a href="http://typo3.org/teams/core/core-mailinglist-rules/" target="_blank">http://typo3.org/teams/core/core-mailinglist-rules/</a><br>
> <a href="http://typo3.org/development/bug-fixing/diff-and-patch/" target="_blank">http://typo3.org/development/bug-fixing/diff-and-patch/</a><br>
> _______________________________________________<br>
> TYPO3-team-core mailing list<br>
> <a href="mailto:TYPO3-team-core@lists.typo3.org">TYPO3-team-core@lists.typo3.org</a><br>
</div></div>> <mailto:<a href="mailto:TYPO3-team-core@lists.typo3.org">TYPO3-team-core@lists.typo3.org</a>><br>
<div class="im">> <a href="http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-team-core" target="_blank">http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-team-core</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Before posting to this list, please have a look to the posting rules<br>
> on the following websites:<br>
><br>
> <a href="http://typo3.org/teams/core/core-mailinglist-rules/" target="_blank">http://typo3.org/teams/core/core-mailinglist-rules/</a><br>
> <a href="http://typo3.org/development/bug-fixing/diff-and-patch/" target="_blank">http://typo3.org/development/bug-fixing/diff-and-patch/</a><br>
> _______________________________________________<br>
> TYPO3-team-core mailing list<br>
</div>> <a href="mailto:TYPO3-team-core@lists.typo3.org">TYPO3-team-core@lists.typo3.org</a> <mailto:<a href="mailto:TYPO3-team-core@lists.typo3.org">TYPO3-team-core@lists.typo3.org</a>><br>
> <a href="http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-team-core" target="_blank">http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-team-core</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
Ernesto Baschny<br>
TYPO3 CMS Core Developer<br>
Release Manager TYPO3 4.5 & 6.2 LTS<br>
<div class="im"><br>
TYPO3 .... inspiring people to share!<br>
</div>Get involved: <a href="http://typo3.org" target="_blank">typo3.org</a><br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Before posting to this list, please have a look to the posting rules<br>
on the following websites:<br>
<br>
<a href="http://typo3.org/teams/core/core-mailinglist-rules/" target="_blank">http://typo3.org/teams/core/core-mailinglist-rules/</a><br>
<a href="http://typo3.org/development/bug-fixing/diff-and-patch/" target="_blank">http://typo3.org/development/bug-fixing/diff-and-patch/</a><br>
_______________________________________________<br>
TYPO3-team-core mailing list<br>
<a href="mailto:TYPO3-team-core@lists.typo3.org">TYPO3-team-core@lists.typo3.org</a><br>
<a href="http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-team-core" target="_blank">http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-team-core</a><br>
</div></div></blockquote></div><br></div>