6 users online. Create an account or sign in to join them.Users

Search

I’ve been playing around with an implementation of a core language preference today which becomes visible if more than one language is present in a Symphony install. While this seems to work great as a global preference, I have problems implementing a per user selection in the author profiles.

Problem is that Symphony should not just check the settings in the config but has to honor the user language preference as well. How could that be achieved?

My current code can be found on GitHub:

The latter requires an additional column in the author table:

"ALTER TABLE `sym_authors` ADD `language` VARCHAR(255) DEFAULT 'system'"

Perfect. The next step is to solve this issue.

I have been testing it and it seems to work fine in 2.0.7beta.

To clarify my problem above: with my code it is possible to select a language in the author profiles. Changes are saved in the database and the selection is displayed correctly. But the system will always be shown in the globally selected language because I don’t know where to correctly modify the language definition.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details