Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICU/genrb Workaround #12

Open
bggardner opened this issue Nov 10, 2014 · 0 comments
Open

ICU/genrb Workaround #12

bggardner opened this issue Nov 10, 2014 · 0 comments
Labels

Comments

@bggardner
Copy link
Owner

If the ICU genrb command is not installed on your system, you can download and install it using the ICU ReadMe. If you do not wish to install ICU, and do not mind obscure error messages, edit Base/LocaleUtil.php:

public static function getLocalizedMessageFromBundle($bundleName, $key, $locale)
{
  return $key; // Add this line
  /*
    ... rest is ignored ...
  */
}

public static function getLocalizedMessageFromBundleWithArguments($bundleName, $key, $args, $locale)
{
  return $key; // Add this line
  /*
    ... rest is ignored ...
  */
}

You can also parse the language .txt files in Base/ErrorMessages, but since fallbacks are used, this could get complicated. root.txt contains the default en_US locale messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant