summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/aboutbox.cpp
diff options
context:
space:
mode:
authorShlomi Fish <shlomif@shlomifish.org>2017-02-06 16:50:07 +0000
committerShlomi Fish <shlomif@shlomifish.org>2017-02-06 16:50:07 +0000
commit1232596134bcba8d19f2809ffdc84e3b5c33d3b3 (patch)
tree2fcb91d6fe9ef47a85ba3f73be10dc5dc7ee10a4 /src/ui/dialog/aboutbox.cpp
parentMerged. (diff)
parentRemove some unneeded < C++11 fallback code (diff)
downloadinkscape-1232596134bcba8d19f2809ffdc84e3b5c33d3b3.tar.gz
inkscape-1232596134bcba8d19f2809ffdc84e3b5c33d3b3.zip
Merged.
(bzr r15369.1.18)
Diffstat (limited to 'src/ui/dialog/aboutbox.cpp')
-rw-r--r--src/ui/dialog/aboutbox.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/dialog/aboutbox.cpp b/src/ui/dialog/aboutbox.cpp
index 8f0545e96..40b948a23 100644
--- a/src/ui/dialog/aboutbox.cpp
+++ b/src/ui/dialog/aboutbox.cpp
@@ -152,16 +152,16 @@ Gtk::Widget *build_splash_widget() {
the `screens' directory. Thus the translation of "about.svg" should be
the filename of its translated version, e.g. about.zh.svg for Chinese.
- N.B. about.svg changes once per release. (We should probably rename
- the original to about-0.40.svg etc. as soon as we have a translation.
- If we do so, then add an item to release-checklist saying that the
- string here should be changed.) */
+ Please don't translate the filename unless the translated picture exists. */
// FIXME? INKSCAPE_SCREENSDIR and "about.svg" are in UTF-8, not the
// native filename encoding... and the filename passed to sp_document_new
// should be in UTF-*8..
char *about=g_build_filename(INKSCAPE_SCREENSDIR, _("about.svg"), NULL);
+ if (!g_file_test (about, G_FILE_TEST_EXISTS)) {
+ about=g_build_filename(INKSCAPE_SCREENSDIR, "about.svg", NULL);
+ }
SPDocument *doc=SPDocument::createNewDoc (about, TRUE);
g_free(about);
g_return_val_if_fail(doc != NULL, NULL);