Doc Posted January 22, 2017 Share Posted January 22, 2017 (edited) hi, I have 2 languages defined, default (fr) and english (en). When I do : $lg_id = $languages->get('en'); // get the english language echo $page->myfield->getLanguageValue($lg_id); It displays english, fine. To display french I have to use 'default' : $lg_id = $languages->get('default'); // get the french language I'd rather have 'en' and 'fr' for example, is it possible ? I watched in the admin section area but 'default' is apparently a field I can't modify. Thanks Edited January 22, 2017 by kongondo code block Link to comment Share on other sites More sharing options...
kongondo Posted January 22, 2017 Share Posted January 22, 2017 @Doc, please wrap your code in code blocks using the <> icon (7th from the left). Much easier to read that way, thanks. Link to comment Share on other sites More sharing options...
Doc Posted January 22, 2017 Author Share Posted January 22, 2017 @kongondo I usually do but forgot on this one Link to comment Share on other sites More sharing options...
LostKobrakai Posted January 22, 2017 Share Posted January 22, 2017 You cannot rename the default language's name, just the title. 1 Link to comment Share on other sites More sharing options...
Doc Posted January 22, 2017 Author Share Posted January 22, 2017 Ok... Thanks ! I'll go with 'default' then. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now