Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
f6789641
Kaydet (Commit)
f6789641
authored
Nis 10, 2013
tarafından
Andras Timar
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Photo Album: make localizable the hardcoded strings
Change-Id: I9ffb10ddce9a8fba053c3adbb789854917595dd0
üst
19d263f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
+19
-4
strings.src
sd/source/ui/app/strings.src
+10
-0
PhotoAlbumDialog.cxx
sd/source/ui/dlg/PhotoAlbumDialog.cxx
+6
-4
strings.hrc
sd/source/ui/inc/strings.hrc
+3
-0
No files found.
sd/source/ui/app/strings.src
Dosyayı görüntüle @
f6789641
...
@@ -1268,4 +1268,14 @@ String STRING_DRAG_AND_DROP_SLIDES
...
@@ -1268,4 +1268,14 @@ String STRING_DRAG_AND_DROP_SLIDES
Text [ en-US ] = "Drag and Drop Slides" ;
Text [ en-US ] = "Drag and Drop Slides" ;
};
};
String STR_PHOTO_ALBUM_TITLE
{
Text [ en-US ] = "Photo Album" ;
};
String STR_PHOTO_ALBUM_AUTHOR
{
Text [ en-US ] = "Author:" ;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sd/source/ui/dlg/PhotoAlbumDialog.cxx
Dosyayı görüntüle @
f6789641
...
@@ -7,8 +7,6 @@
...
@@ -7,8 +7,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
*/
#include "PhotoAlbumDialog.hxx"
#include <comphelper/namedvaluecollection.hxx>
#include <comphelper/namedvaluecollection.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/componentcontext.hxx>
#include <comphelper/componentcontext.hxx>
...
@@ -31,6 +29,10 @@
...
@@ -31,6 +29,10 @@
#include <vcl/msgbox.hxx>
#include <vcl/msgbox.hxx>
#include <svx/unoshape.hxx>
#include <svx/unoshape.hxx>
#include "PhotoAlbumDialog.hxx"
#include "strings.hrc"
#include "sdresid.hxx"
namespace
sd
namespace
sd
{
{
...
@@ -107,12 +109,12 @@ IMPL_LINK_NOARG(SdPhotoAlbumDialog, CreateHdl)
...
@@ -107,12 +109,12 @@ IMPL_LINK_NOARG(SdPhotoAlbumDialog, CreateHdl)
SdrObject
*
pTitleObj
=
pFirstSlide
->
GetPresObj
(
PRESOBJ_TITLE
,
0
);
SdrObject
*
pTitleObj
=
pFirstSlide
->
GetPresObj
(
PRESOBJ_TITLE
,
0
);
SvxShapeText
*
pTitleText
=
new
SvxShapeText
(
pTitleObj
);
SvxShapeText
*
pTitleText
=
new
SvxShapeText
(
pTitleObj
);
pTitleText
->
SetShapeType
(
"com.sun.star.presentation.TitleTextShape"
);
pTitleText
->
SetShapeType
(
"com.sun.star.presentation.TitleTextShape"
);
pTitleText
->
setString
(
OUString
(
"Photoalbum
\n
"
));
pTitleText
->
setString
(
SD_RESSTR
(
STR_PHOTO_ALBUM_TITLE
));
SdrObject
*
pTextObj
=
pFirstSlide
->
GetPresObj
(
PRESOBJ_TEXT
,
0
);
SdrObject
*
pTextObj
=
pFirstSlide
->
GetPresObj
(
PRESOBJ_TEXT
,
0
);
SvxShapeText
*
pTextShape
=
new
SvxShapeText
(
pTextObj
);
SvxShapeText
*
pTextShape
=
new
SvxShapeText
(
pTextObj
);
pTextShape
->
SetShapeType
(
"com.sun.star.presentation.TextShape"
);
pTextShape
->
SetShapeType
(
"com.sun.star.presentation.TextShape"
);
pTextShape
->
setString
(
OUString
(
"Author: "
)
+
aUserOptions
.
GetFullName
());
pTextShape
->
setString
(
SD_RESSTR
(
STR_PHOTO_ALBUM_AUTHOR
)
+
" "
+
aUserOptions
.
GetFullName
());
Reference
<
XComponentContext
>
xContext
(
::
comphelper
::
getProcessComponentContext
());
Reference
<
XComponentContext
>
xContext
(
::
comphelper
::
getProcessComponentContext
());
Reference
<
graphic
::
XGraphicProvider
>
xProvider
(
graphic
::
GraphicProvider
::
create
(
xContext
));
Reference
<
graphic
::
XGraphicProvider
>
xProvider
(
graphic
::
GraphicProvider
::
create
(
xContext
));
...
...
sd/source/ui/inc/strings.hrc
Dosyayı görüntüle @
f6789641
...
@@ -415,6 +415,9 @@
...
@@ -415,6 +415,9 @@
#define STR_ACC_DIALOG_DESC (RID_APP_START+728)
#define STR_ACC_DIALOG_DESC (RID_APP_START+728)
#define STR_PHOTO_ALBUM_TITLE (RID_APP_START+729)
#define STR_PHOTO_ALBUM_AUTHOR (RID_APP_START+730)
/******************************************************************************
/******************************************************************************
* The ids in glob.hrc start at RID_APP_START+750!
* The ids in glob.hrc start at RID_APP_START+750!
******************************************************************************/
******************************************************************************/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment