I've got a bi-lingual site running nicely, /en/news/news-item displays the English version and /cy/news/news-item displays the Welsh version. Great!
I can't figure out how to get the URLs for the main site navigation to respect the currently used locale though. For example;
If I'm on the page: http://craft.dev/cy/news/news-title the main site navigation should list 'news' and 'artist' with a /cy preceding the URL (/cy/news and /cy/artists). Instead it's spitting out /en/news and /en/artists.
The code I'm using to get the URLs for the navigation is:
<ul>
<li><a href="{{ url('news') }}" {% if craft.request.firstSegment == 'news' %}class="active"{% endif %}>News</a></li>
<li><a href="{{ url('artists') }}">Artists</a></li>
</ul>
What am I doing wrong?