User tests: Successful: Unsuccessful:
This will make the output of the CLI commands install
and get
translatable.
Maybe the command line gets a little less scary if it's in the users native language?
Hmm, I am a little lost since I can not reproduce this error :(
Could you manually set the permission for the /tmp
directory to 0777
if they are set to anything else and re-try ?
Strange... Why I have it? :)
Without root access (I do not know the password is) I can't.
vagrant@debian-7:/$ chmod +x /tmp
chmod: changing permissions of `/tmp': Operation not permitted
Try sudo
;)
sudo chmod 0777 /tmp
Hmm, you should encounter the same problem if you access the "front end" of the Vagrant box with http://127.0.0.1:2345/
Could you verify that cache files are written to /tmp
inside the box?
Another hmm.... OK I found out that you can not use the same cache dir for web and CLI...
Instead of the chmod you can simply wipe the cache dir before running the CLI script (using sudo) like sudo rm -rf /tmp/g11n
Not sure how to fix this properly :(
OK last Hmm...
I think I fixed this in elkuku/g11n@4bd0d91 - next dependency update should bring this in ;)
Sorry for the confusion :(
sudo rm -rf /tmp/g11n
did the job and I've manged to create templates. But where the language files are stored? make langfiles
command is working, but I can't find the files :)
And yes I get permission denied error now. Can you add deps update to solve it?
You are right, that part was missing...
Since we use Transifex now to "create" the language files, the template file has to be uploaded first.
I have however updated the make langfiles
command to create the language files. I have also updated the update transifex
and get transifex
commands - but I have not tested them ;)
I've also updated the composer.json
file.
Good. Now how to change the language? I see this in the code:$lang = $this->input->get('lang');
But do not understand how to pass it :)
One more bug I found. Running get help
throws an error:
Fatal error: Class Application\Command\Help\Help contains 1 abstract method and must therefore be declared abstract or i
mplement the remaining methods (Application\Command\TrackerCommand::__construct) in /vagrant/cli/Application/Command/Hel
p/Help.php on line 23
Call Stack:
0.0006 227896 1. {main}() /vagrant/cli/tracker.php:0
0.1634 1929136 2. Joomla\Application\AbstractApplication->execute() /vagrant/cli/tracker.php:40
0.1634 1929168 3. Application\Application->doExecute() /vagrant/vendor/joomla/application/src/AbstractApplication.php:105
0.1687 1941888 4. Application\Application->getAlternatives() /vagrant/cli/Application/Application.php:221
0.1687 1942424 5. Composer\Autoload\ClassLoader->loadClass() /vagrant/cli/Application/Application.php:0
0.1694 1942536 6. Composer\Autoload\includeFile() /vagrant/vendor/composer/ClassLoader.php:270
0.1731 1989000 7. include('/vagrant/cli/Application/Command/Help/Help.php') /vagrant/vendor/composer/ClassLoader.php:378
Good. Now how to change the language?
Like this:
$ ./cli/tracker.php install --lang=ru-RU
------------------------------------------------------------
Joomla! Tracker CLI Применение
1.0.0-beta
------------------------------------------------------------
------------------------------------------------------------
Монтажник
------------------------------------------------------------
ПРЕДУПРЕЖДЕНИЕ: база данных была обнаружена!
Вы хотите, чтобы переустановить?
1) да
2) нет
Выберите:
Here is a (Google translated) file I used for testing: http://pastebin.com/Cn77xbdj
BTW I used this very interesting technique: http://barry.coffeesprout.com/translating-po-files-using-google-translate/
Sorry, but I really like our colors :)
One more bug I found. Running get help throws an error:
Has been fixed
All is good!
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-07-19 17:31:46 |
I just tested the 'get transifex' and 'update transifex' commands, and they seem to work OK
Interesting but not surprising
Tried to test, but have a permission problem: