Fork me on GitHub
Subscribe 1

Ticket #502 (fixed bug)

Check whether language exists

  • Created: 2011-10-04 01:16:11
  • Reported by: Franz
  • Assigned to: Franz
  • Milestone: 2.0-alpha1
  • Component: localization
  • Priority: normal

When changing or setting the language of a user, we currently check whether common.php exists in the language's directory.

We should create some kind of function in the new language module that checks whether the given language exists or not.

Also, we might want to validate the language name with a white-list instead of removing some characters. Simpler and safer.


Franz 2011-10-04 01:22:04

The code is in register.php, right now.

There might also be a function like get_language_list() or something similar.

Franz 2011-10-10 13:31:05

  • Owner set to Franz.

Franz 2011-10-10 13:56:14

Commit 376cbdc to fluxbb fluxbb-2.0

#502: Add and use some utility functions for handling existing languages.

Franz 2011-10-10 13:57:28

  • Status changed from open to fixed.