广告
广告
CHAPTER 79: Tools Advanced Developer Tools
Translate Inline
You can use the Translate Inline tool to touch up the interface text to reflect your voice and brand. When the Translate Inline mode is activated, any text on the page that can be edited is outlined in red. It’s easy to edit field labels, messages, and other text that appears throughout the storefront and Admin. For example, many themes use terminology such as “My Account,”
“My Wishlist,” and “My Dashboard,” to help customers find their way around. However, you might prefer to simply use the words “Account,” “Wishlist,” and “Dashboard.”
Translatable Text
If your store is available in multiple languages, you can make fine adjustments to the translated text for the locale. On the server, interface text is maintained in a separate CSV file for each output block, and is organized by locale. As an alternate approach, rather than use the
Translate Inline tool, you can also edit the CSV files directly on the server.
To use the Translate Inline tool, your browser must allow pop-ups.
Step 1
: Disable Output Caches
1.
On the Admin sidebar, tap System. Then under Tools, choose Cache Management.
2.
Mark the following checkboxes: l
Blocks HTML output l
Page Cache l
Translations
3.
Set the Actions control to “Disable.” Then, tap
Submit
.
Magento Community Edition 2.1 User Guide 1095
Advanced Developer Tools CHAPTER 79: Tools
1096
Disable Output Caches
Step 2:
Enable the Translate Inline Tool
1.
On the Admin sidebar, tap Stores. Then under Settings, choose Configuration.
2.
To work with a specific store view, set the Store View that is to be updated.
3.
In the panel on the left under Advanced, choose Developer.
4.
Expand the Translate Inline section. Then if necessary, clear the Use Website checkbox.
The Enabled for Admin option is not available when editing a specific store view.
Translate Inline
5.
Set Enabled for Storefront to “Yes.”
6.
When complete, tap
Save Config
.
7.
When prompted, refresh the invalid caches, but leave the disabled caches as they are for now.
Magento Community Edition 2.1 User Guide
CHAPTER 79: Tools Advanced Developer Tools
Step 3:
Update the Text
1.
Open your storefront in a browser, and go to the page that you want to edit. If necessary, use the language chooser to change the store view.
Each string of text that can be translated is outlined in red. When you hover over any text box, a book icon appears.
2.
Tap the book icon to open the Translate window. Then, do the following:
a.
If the change is for the specific store view, mark the Store View Specific checkbox.
b.
Enter the new Custom text.
c.
When complete, tap
Submit
.
Enter Custom Text
3.
To see your changes in the store, press the F5 key to refresh the browser.
4.
Repeat this process for any elements in the store to be changed.
Step 4:
Restore Original Settings
1.
Return to the Admin of your store. On the Admin sidebar, tap Store. Then under Settings, choose Configuration.
a.
Set Store View to the specific view that was edited.
b.
In the panel on the left under Advanced, choose Developer.
c.
Expand the Translate Inline section.
Magento Community Edition 2.1 User Guide 1097
Advanced Developer Tools CHAPTER 79: Tools
Translate Inline
a.
Set Enabled for Frontend to “No.”
b.
When complete, tap
Save Config
.
2.
On the Admin sidebar, tap System. Then under Tools, choose Cache Management.
a.
Mark the checkbox of the following output caches that were previously disabled: l
Blocks HTML output l
Page Cache l
Translations
b.
Set the Actions control to “Enable.” Then, tap
Submit
.
c.
When prompted, refresh any invalid caches.
Step 5:
Verify the Changes in Your Store
Go to your storefront and examine each page that was updated to make sure the changes are correct. In this example, “Customer Login” was changed to “Customer Sign In.” If changes were made to a specific view, use the Language Chooser to switch to the correct view.
1098
Customer Sign In
Magento Community Edition 2.1 User Guide
CHAPTER 79: Tools Web Setup Wizard
Web Setup Wizard
The Web Setup Wizard can be used to install components, modules,and extensions, upgrade your installation, and change the system configuration.
Magento Community Edition 2.1 User Guide
Web Setup Wizard
Component Manager
Component Manager lists each component that is currently installed, and can be used to synchronize any extensions you have purchased from Magento
Marketplace with your system.
System Upgrade
The System Upgrade tool can be used to upgrade your installation of Magento. During the process, it checks your system for readiness, creates a backup, and then upgrades your system.
System Config
The System Config tool can be synchronized with your
Marketplace account, based on your public and private access keys.
1099
广告