From bbb714926033738fb53a2d1fd794a391d4c5a292 Mon Sep 17 00:00:00 2001 From: jabiertxof <> Date: Thu, 26 Jan 2017 02:24:46 +0100 Subject: defaults to about.svg when localized versions fail (bzr r15453) --- src/ui/dialog/aboutbox.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ui/dialog/aboutbox.cpp') diff --git a/src/ui/dialog/aboutbox.cpp b/src/ui/dialog/aboutbox.cpp index 8f0545e96..e7572b3ce 100644 --- a/src/ui/dialog/aboutbox.cpp +++ b/src/ui/dialog/aboutbox.cpp @@ -162,6 +162,9 @@ Gtk::Widget *build_splash_widget() { // 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); -- cgit v1.2.3 From 4a81c0fc9ecb2b9196f6cedeaf2ea39d68408936 Mon Sep 17 00:00:00 2001 From: Nicolas Dufour Date: Thu, 26 Jan 2017 16:50:34 +0100 Subject: [Bug #1659426] About screen - Missing image and small window - Translation comment. Fixed bugs: - https://launchpad.net/bugs/1659426 (bzr r15456) --- src/ui/dialog/aboutbox.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/ui/dialog/aboutbox.cpp') diff --git a/src/ui/dialog/aboutbox.cpp b/src/ui/dialog/aboutbox.cpp index e7572b3ce..40b948a23 100644 --- a/src/ui/dialog/aboutbox.cpp +++ b/src/ui/dialog/aboutbox.cpp @@ -152,10 +152,7 @@ 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 -- cgit v1.2.3