Translating SVG files


SVG (Scalable Vector Graphics) files are XML files, so they can be translated in DVX3 using the SGML/XML filter. We have created a filter definition file that you can use with the XML filter to extract text from an SVG file.

Warning: The filter definition file is experimental. It may not extract all the translatable text in all SVG files. There are some features supported in SVG files that are incompatible with the XML filter (e.g. JavaScript code), so text contained in those features cannot be translated with Déjà Vu.

To import an SVG file

You can modify the filter options for files you have already added to the project to configure Déjà Vu to use our filter definition file. This article explains how to do this.

This shows the recommended settings for the XML filter when used to import SVG files:

You can also modify the default filter options so that Déjà Vu will automatically detect when you are adding SVG files to a project and use the right filter with the right configuration. This article explains who to do this.

To export an SVG file

When you export an SVG file, you should make sure that you are using the right export options. It is also possible that you may run into a problem that happens occasionally that will require you to open the exported file with a text editor and make a small correction.

Configure the export options

You should make sure that the encoding used to export SVG files is Unicode (UTF-8).

Fix exported files

Occasionally, an SVG file exported from Déjà Vu will not open correctly in other applications. For example, one such file opened in Google Chrome will result in this:

In Internet Explorer nothing will be displayed.

This happens because the first line in the file is incorrect. If you open the exported SVG file with a text editor (e.g. Notepad or Notepad++), you will see that the first line looks like this:

<?xml version="1.0" standalone="no" encoding="utf-8" ?>

It should instead look like this:

<?xml version="1.0" encoding="utf-8" standalone="no" ?>

You can make this change yourself in the text editor and save the changes. After doing this, the exported SVG file will open correctly.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Powered by Zendesk