Translate URL Paths
This article is for Account Owners and Project Managers using the Global Delivery Network.
The Smartling Global Delivery Network (GDN) allows you to capture and translate the URL paths that appear on your localized sites along with the rest of your website content. This feature is useful in cases where your website URLs directly reflect the information contained on your page. Translating these URL paths can enhance the the end-user experience by on your localized sites.
In order to translate your URLs without breaking any links on your site, the following steps need to be followed to deploy URL translations:
- Capture your URLs.
- Authorize URLs for translation.
- When translation is complete, switch over to the translated URLs.
- Filter unwanted URLs from translation.
Capture Your URLs
URLs are captured when navigated to the page and translated in the same manner as any other string from the GDN. To get started, navigate to the left-hand menu and click on Content > URL Translation to enable either automatic or manual URL translation capture:
- Click on the "Enable capture of URL strings" checkbox.
- URLs will now be ingested as you or an automation tool browses your site.
- Click the blue "Add URL" button.
- In the dialog box, enter your URL and click "Add."
Authorize URLs for Translation
As URLs are captured or added, they will be displayed in the Content > URL Translation menu. The default view displays your source URLs. In order to authorize URLs for translation:
- Select a language from the "Select locale" drop-down menu.
- For each language, click on "Translate", or check multiple URLs and use the Actions > Request Translation option.
- URL strings will then be authorized into the default workflow for the language. The translation column will update to "Translation in Progress." for each requested URL.
Switch over to Translated URLs
Once the translation is complete for your URLs, you can switch over to them in the Content > URL Translation menu.
- Click on the "Enable URL Translation functionality" checkbox.
- Select a language from the Select locale drop-down menu.
- In the Actions column, switch individual URLs to "ON," or check multiple URLs and click Actions > Enable URL.
Unchecking this box at any time will turn off all translated URLs. For a consistent launch, we recommend leaving this option unchecked until all URLs are translated.
Filter Unwanted URLs from Translation
To filter out these unwanted URLs:
- Go to Content > URL Translation and select the "URL Filters" tab.
- Click on "Add Filter." Filters are formatted as a Java Regular Expression inside capture groups denoted by parenthesis. For example, (.+\.js) will exclude any URLs ending in .js.
- Click "Add."
Filter rules only apply to future URL path capture. If you have already captured unwanted URL paths, you will need to clear them from your capture list manually (Content > URL Translation > Translations > Actions > Delete URL). Moving forward, paths matching your filter will not be re-captured.