[Libreoffice-commits] core.git: sd/source

David Tardon dtardon at redhat.com
Tue Feb 16 06:41:51 UTC 2016


 sd/source/ui/app/strings.src   |   10 ++++++++++
 sd/source/ui/func/fuinsert.cxx |    6 +++---
 sd/source/ui/inc/strings.hrc   |    3 +++
 3 files changed, 16 insertions(+), 3 deletions(-)

New commits:
commit ec935c9b83ff2872c039522398c49e070149eea1
Author: David Tardon <dtardon at redhat.com>
Date:   Tue Feb 16 06:56:21 2016 +0100

    tdf#97814 make "insert 3D model" dlg translatable
    
    Change-Id: I45865bdce1957bb4f970e069241e1bb7714b4f4c

diff --git a/sd/source/ui/app/strings.src b/sd/source/ui/app/strings.src
index caa5752..c939eb5 100644
--- a/sd/source/ui/app/strings.src
+++ b/sd/source/ui/app/strings.src
@@ -1247,4 +1247,14 @@ String STR_PHOTO_ALBUM_TEXTBOX
     Text [ en-US ] = "Text Slide";
 };
 
+String STR_INSERT_3D_MODEL_TITLE
+{
+    Text [ en-US ] = "Insert 3D Model";
+};
+
+String STR_INSERT_3D_MODEL_ALL_SUPPORTED_FORMATS
+{
+    Text [ en-US ] = "All supported formats";
+};
+
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sd/source/ui/func/fuinsert.cxx b/sd/source/ui/func/fuinsert.cxx
index 3a9a0d0..f9cd4c9 100644
--- a/sd/source/ui/func/fuinsert.cxx
+++ b/sd/source/ui/func/fuinsert.cxx
@@ -772,12 +772,12 @@ void FuInsert3DModel::DoExecute( SfxRequest& )
 {
     sfx2::FileDialogHelper aDlg( ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, 0 );
 
-    aDlg.SetTitle( "Insert 3D Model" );
+    aDlg.SetTitle( SD_RESSTR( STR_INSERT_3D_MODEL_TITLE ) );
 
 #if HAVE_FEATURE_COLLADA
-    aDlg.AddFilter( "All supported formats", "*.json;*.dae;*.kmz"  );
+    aDlg.AddFilter( SD_RESSTR( STR_INSERT_3D_MODEL_ALL_SUPPORTED_FORMATS ), "*.json;*.dae;*.kmz"  );
 #else
-    aDlg.AddFilter( "All supported formats", "*.json"  );
+    aDlg.AddFilter( SD_RESSTR( STR_INSERT_3D_MODEL_ALL_SUPPORTED_FORMATS ), "*.json"  );
 #endif
 
     aDlg.AddFilter( "JSON - GL Transmission Format", "*.json" );
diff --git a/sd/source/ui/inc/strings.hrc b/sd/source/ui/inc/strings.hrc
index cbcf702..37dd9c4 100644
--- a/sd/source/ui/inc/strings.hrc
+++ b/sd/source/ui/inc/strings.hrc
@@ -414,6 +414,9 @@
 #define STR_PHOTO_ALBUM_EMPTY_WARNING                   (RID_APP_START+729)
 #define STR_PHOTO_ALBUM_TEXTBOX                   (RID_APP_START+730)
 
+#define STR_INSERT_3D_MODEL_TITLE                       (RID_APP_START+731)
+#define STR_INSERT_3D_MODEL_ALL_SUPPORTED_FORMATS       (RID_APP_START+732)
+
 /******************************************************************************
 * The ids in glob.hrc start at RID_APP_START+750!
 ******************************************************************************/


More information about the Libreoffice-commits mailing list