Help for integrating the Laravel package
Forum rules: Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#2706 by pbgswd
20 Apr 2016, 21:50
Hi we are working with Aimeos for Laravel and we are doing all we can to understand the software. I havent worked with .po files before and it appears there is a source and compiled version of the file. I dont know what package is used to publish these files. Can anybody tell me?
But I did ask an aimeos developer directly before posting here, and the answer was:

You don't need to. If you want to replace only some strings, you can
overwrite them via the configuration file.

Ok well that is ok, but where is this configuration file?

dev@ubuntu-dev:~/ilar/vendor/aimeos/aimeos-core$ find -type f -name "en.po"

............. not what I am looking for, so instead:

vendor/aimeos/aimeos-core$ ls config/
Is resource.php-dist the configuration file?
There arent any language references in this file......

Where is the config file I need to find to override entries in .po files?
#2716 by pbgswd
21 Apr 2016, 22:41
We tried the simplest option, where we added the customization to the shop.php file

Code: Select all   'i18n' => array(
       'en>' => array(
           'client/code' => array(
               'package-weight' => array('Weight'),

... and it did nothing

in the property template:

echo $enc->html( $this->translate( 'client/code', $propertyItem->getType() ), $enc::TRUST );

Is there some reason why it did nothing? What needs to be done here?
#2717 by aimeos
21 Apr 2016, 23:41
pbgswd wrote:
Code: Select all   'i18n' => array(
       'en>' => array(
           'client/code' => array(
               'package-weight' => array('Weight'),

Your config is wrong: 'en>' (mind the ">" char that shouldn't be there).