Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

translation shortcut __ don't work :/ #53

Open
YopSolo opened this issue Dec 24, 2015 · 3 comments
Open

translation shortcut __ don't work :/ #53

YopSolo opened this issue Dec 24, 2015 · 3 comments

Comments

@YopSolo
Copy link

YopSolo commented Dec 24, 2015

$this->_('hello')); work as described in the doc
but
get Fatal error: Call to undefined function __() when using the shortcut __('hello');

@adaniello
Copy link

This seems not an Atomik issue, but a not valid PHP version or a missing PHP configuration: _() is a native alias of php function gettext (http://php.net/manual/en/function.gettext.php). Check your locale settings in your environment.

@YopSolo
Copy link
Author

YopSolo commented Dec 26, 2015

The simple underscore function works as intended, I was refering to the double underscore function __() as described in the atomik documentation
http://atomikframework.com/docs/translations.html#translating-strings

@adaniello
Copy link

Ok, but you reported:
"get Fatal error: Call to undefined function _()", with simple underscore.
If is this the error message, usually there are two reasons:

  1. user permissions for sessions folder or application file (rare);
  2. misconfiguration for locales (in Atomik for "Translations");

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

No branches or pull requests

2 participants