Ivan Gretsky Posted March 13, 2015 Share Posted March 13, 2015 Good day! I usually deal with single-language sites. And that single language is not default English but Russian. I want all of the admin interface and content to be in Russian only for all users, exept administrator. Site administrator (myself usually) has to see the admin interface in default English because the support is provided in English only. I could turn on Languages Support module, load Russian translation files into the default and create a new language with no translation and then assign this new language to the site admin. But if the Languages Support module is on (Languages Support - Fields and other related modules are off) some fields become translatable. For example descriptions for files and images become available to edit in two languages. I do not want to confuse my users with that. So the question is how can I set the default to Russian still allowing site admin to see admin pages in default English? Or are there different aproaches to this problem? Link to comment Share on other sites More sharing options...
arjen Posted March 13, 2015 Share Posted March 13, 2015 Multilangual descriptions can be turned of for both images and files. It is a setting in the (Advanced) Input tab. I don't know which ProcessWire version introduced this but it has been around lately. 2 Link to comment Share on other sites More sharing options...
Ivan Gretsky Posted March 13, 2015 Author Share Posted March 13, 2015 Thank you arjen! It is not in Advanced but Input tab, but it's there and working! I wish It would be possible to disable it on all files anf images fields at once in the inputfield module configuration though. Are there any other downfalls I am missing when turning on Language suppirt for single language site? Link to comment Share on other sites More sharing options...
arjen Posted March 13, 2015 Share Posted March 13, 2015 That's the way I handle this stuff. It's quite easy with the API to loop through all the fields ($fields->find(type=Image|File)) and set the noLang to true. Don't forget to save(). I'm on mobile so no code example, but let me know if you want an actual example. 2 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