Invalid Format: Uncaught SyntaxError for Turkish locale. discussion summary:
User bekircem reported an error at the bottom of the page, caused by Turkish language files. The issue persisted even in safe modebekircem. codinghorror mentioned that the broken translations should be fixed.
gerhard identified the problem in the translation of read_more_MF and provided a suggested fix. However, he needed help with the Turkish translation. bekircem provided a revised version of the translation.
gerhard confirmed that the revised translation was correct and updated the translated string on Transifex. The issue in Discourse will be fixed the next time translations are pulled from Transifex. bekircem applied the fix in their admin panel and confirmed that it works, although they are unsure if it’s the best template.
I’ve error at the bottom of the page. I have not resolved for a long time. The reason of this error language files. I use Turkish interface. I did not make any edits on Turkish language files. How i fix that error?
Invalid Format: Uncaught SyntaxError: Expected "{" but "d" found. at undefined:1376:10
There’s a problem with the translation of read_more_MF. Currently it looks like this:
Kalan {
UNREAD, plural,
=0 {}
one {
<a href='/unread'>1 okunmamış</a>
} other {
<a href='/unread'># okunmamış</a>
}
} {
NEW, plural,
=0 {}
one { {BOTH, select, true{ve} false {} other{}} <a href='/new'>1 yeni</a> konu}
other { {BOTH, select, true{and } false {} other{}} <a href='/new'># yeni</a> konu}
} var, veya {CATEGORY, select, true { {catLink}} false {{latestLink}} kategorilerindeki diğer {} konulara göz atabilirsiniz }
The problem is in the last part:
var, veya {CATEGORY, select, true { {catLink}} false {{latestLink}} kategorilerindeki diğer {} konulara göz atabilirsiniz }
It’s not possible to have arbitrary text outside the curly braces of the options true, false and other.
I’d suggest something like this, but I need your help in fixing this, since I don’t speak Turkish.
var, veya {CATEGORY, select, true {kategorilerindeki {catLink}} false {{latestLink}} other {}} konulara göz atabilirsiniz"
That looks correct. I updated the translated string on Transifex. The issue in Discourse will be fixed the next time we pull translations from Transifex.