vot Posted February 29, 2008 Share Posted February 29, 2008 Dear developers! I have a little idea! Why not add a small description file into each LanguagePack while exporting!? I.e. we can place a readme.txt file into /translation/iso_lang_code/ directory. If this will be done, all the users will able to know who and when was made the translation. For adding this possibility, just add one code line into /admin/tabs/AdminTranslations.php (see /* added line */): elseif (Tools::isSubmit('submitExport')) { $lang = strtolower(Tools::getValue('iso_code')); $theme = strval(Tools::getValue('theme')); $modules = Module::getModulesDirOnDisk(); if ($lang AND $theme AND count($modules)) { // making files list $pack = array( _PS_TRANSLATIONS_DIR_.$lang.'/'.'errors.php', _PS_TRANSLATIONS_DIR_.$lang.'/'.'fields.php', _PS_TRANSLATIONS_DIR_.$lang.'/'.'admin.php', /* added line */ _PS_TRANSLATIONS_DIR_.$lang.'/'.'readme.txt', _PS_ALL_THEMES_DIR_.$theme.'/lang/'.$lang.'.php'); 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