This is not a plugin, but more a bunch of information that will save a lot of time to translators.
With new ZC v2.1.0 nearly all system should be able to switch language smoothly, which was not the case until now with admin menus and plugins, modules...
Now that is possible, for language pack maker, finding strings to translate might be a challenge. Here is a list of places where you will find them.
Language files:
admin/includes/languages/english/
includes/languages/english/
zc_install/includes/languages/english/
zc_plugins/DisplayLogs/vx.x.x/admin/includes/languages/english/
zc_plugins/POSM/vx.x.x/admin/includes/languages/english/
zc_plugins/POSM/vx.x.x/catalog/includes/languages/english/
zc_plugins/POSM/vx.x.x/installer/languages/english/
zc_plugins/SystemInspection/x.x.x/admin/includes/languages/english/
zc_plugins/SystemInspection/x.x.x/installer/languages/english/
Images buttons (You need an image editor too to create new buttons):
includes/templates/template_default/buttons/english
Hard coded strings (this part is only used one time before installation):
includes/templates/template_default/templates/tpl_zc_install_suggested_default.php
includes/templates/template_default/templates/tpl_zc_phpupgrade_default.php
Database configuration menus:
These are all the admin menus and submenus. You can find them in files before intallation or on an installed cart they are in database, at least for parts that have been installed.
IN FILES:
zc_install/sql/install/mysql_zencart.sql
On all lines starting by:
'INSERT INTO configuration' or 'INSERT IGNORE INTO configuration', look for values of fields 'configuration_title' and 'configuration_description'.
'INSERT INTO configuration_group', look for values of fields 'configuration_title' (second one) and 'configuration_description' (third one).
'INSERT INTO product_types', look for values of second field 'type_name'.
'INSERT INTO product_type_layout', look for values of fields 'configuration_title' and 'configuration_description'.
zc_plugins/DisplayLogs/vx.x.x/installer/ScriptedInstaller.php
Look for 'configuration_title' and 'configuration_description' definitions.
zc_plugins/POSM/vx.x.x/admin/installer/ScriptedInstaller.php
After '"INSERT IGNORE INTO " . TABLE_CONFIGURATION . " ... VALUES', look fo first and fourth field of each values lines.
Plugin names and description:
zc_plugins/PLUGIN_NAME/PLUGIN_VERSION/manifest.php
Look for 'pluginName' and 'pluginDescription' definitions.
For modules shipping, payment and order total:
includes/modules/(shipping, payment or order_total)/MODULE_NAME.php
Look for 'function install()' which contains SQL queries with 'configuration_title' and 'configuration_description'.
IN DATABASE:
Modules or plugins not installed won't have their English strings registered in database!!!
Table 'configuration', fields 'configuration_title' and 'configuration_description'.
Table 'configuration_group', fields 'configuration_title' and 'configuration_description' (not really used).
Table 'product_types', field 'type_name'.
Table 'product_type_layout', fields 'configuration_title' and 'configuration_description'.
Table 'plugin_control', fields 'name' and 'description'.
Database fields to be translated through admin interface:
Table 'categories_description', fields 'categories_name' and 'categories_description'.
Menu : Catalog::Categories/Products -> Click on 'Edit' icon for a category.
Table 'meta_tags_categories_description', fields 'meta_tags_title', 'meta_tags_keywords' and 'meta_tags_description'.
Menu : Catalog::Categories/Products -> Click on 'Edit Meta Tags' icon for a category.
Table 'coupons_description', fields 'coupon_name' and 'coupon_description'.
Menu : Discounts::Coupon Admin -> Select a coupon and click on 'Edit' button.
Table 'ezpages_content', fields 'pages_title' and 'pages_html_text'.
Menu : Tools::EZ-Pages -> Select a page and click on 'Edit' button.
Table 'products_description', fields 'products_name' and 'products_description'.
Menu : Catalog::Categories/Products -> Click on category until product listing displays -> Click on 'Edit Product' icon for a product.
Table 'meta_tags_products_description', fields 'meta_tags_title', 'meta_tags_keywords' and 'meta_tags_description'.
Menu : Catalog::Categories/Products -> Click on category until product listing displays -> Click on 'Edit Meta Tags' icon for a product.
Table 'products_options', fields 'products_options_name' and 'products_options_comment'.
Menu : Catalog::Option Name Manager -> Click on 'Edit' button for an option.
Table 'orders_status', field 'orders_status_name'.
Menu : Localization::Orders Status -> Select a status and click on 'Edit' button.
Looking at this list, you can imagine how much work it is to make a full language pack...
When all these strings have been translated you need to put them at the right place too, but this will be for another post.
Bookmarks