panglima Posted February 9, 2013 Share Posted February 9, 2013 BAGAIMANA PENGGUNAAN DAN DIMANA DIGUNAKAN, APA BETUL U TRANSLATION BACK-OFFICE, SEHINGGA SEPERTI FRONT-OFFICE, TKS. ATAS PENJELASANNYA. sorry saya newbie n mo coba pakai prestashop 1.5.3, udah install dan Front office udah translate ke bahasa indonesia, cari yang back-office Back-office translations The following folders are parsed: · /admin/ · Specific files: header.inc.php, footer.inc.php, index.php, login.php, password.php, and functions.php · /admin/tabs/ · /classes/ · Specific file: AdminTab.php · /admin/themes/ (new in 1.5) · All the template files in all the sub-folders are parsed · /controllers/admin/ (new in 1.5) · /override/controllers/admin/ (new in 1.5) · /classes/helper/ (new in 1.5) · /classes/ (new in 1.5) · Specific file: AdminController.php The translatable strings use the following syntaxes: · Controllers and classes: $this->l('Add new root category') · PHP files at the root of the /admin/ folder: translate('Customer name:') · Back-office templates: {l s='Add tag'} Three options can be added to these syntaxes: · "js=1": indicates that this string is contained within JavaScript code. · "slashes=1": enables you to add backslashes (\) to a string. · "sprintf='any string or number'": see the various examples in the "Sprintf" section of this document (new in 1.5). All the back-end translations are stored in the following file, with iso_code being the ISO 3166-1 code (http://www.iso.org/iso/country_codes.htm) for the language of the translated strings (de, fr, en, it, es, etc.): · /translations/iso_code/admin.php The translations are stored in a PHP array, named $_LANGADM, and take the following form: · $_LANGADM['AdminAccess151648106e4bf98297882ea2ea1c4b0e'] = 'Mise à jour réussie'; The identification key is built by combining the name of the controller from which the original string comes and the MD5 hash of the string itself. Note that: · All the templates from the /admin/themes/default/templates/controllers/ folder are prefixed with "Admin" + the name of the file. · All the files from the /classes/helper/ folder are prefixed with "Helper". · All the files at the root of the /admin/themes/default/templates/ are prefixed with "AdminController". If the same string appears in several different controllers, it will appear as many times in the translation tool. On the other hand, if one string appears in both a controller and its template, it will only appear once for this controller. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now