aboutsummaryrefslogtreecommitdiff
path: root/source/mai/nlpsolver
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2012-12-16 20:52:09 +0100
committerAndras Timar <atimar@suse.com>2012-12-16 21:42:22 +0100
commitc6cfd71c3d302bdb0999888f9c867d70acb40708 (patch)
treede61e5c19879f3b53550039f5d034416482451dd /source/mai/nlpsolver
parent85f724f5aa1d6a59662a7d1c7ea406a641814bd2 (diff)
update translations for LibreOffice 4.0 beta2
Change-Id: Iff858adb848a543f565e3c0df33c8398c74c754d
Diffstat (limited to 'source/mai/nlpsolver')
-rw-r--r--source/mai/nlpsolver/help/en/com.sun.star.comp.Calc.NLPSolver.po2
-rw-r--r--source/mai/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver.po2
-rw-r--r--source/mai/nlpsolver/src/locale.po2
3 files changed, 3 insertions, 3 deletions
diff --git a/source/mai/nlpsolver/help/en/com.sun.star.comp.Calc.NLPSolver.po b/source/mai/nlpsolver/help/en/com.sun.star.comp.Calc.NLPSolver.po
index 1fddb8584dc..6106c1c6265 100644
--- a/source/mai/nlpsolver/help/en/com.sun.star.comp.Calc.NLPSolver.po
+++ b/source/mai/nlpsolver/help/en/com.sun.star.comp.Calc.NLPSolver.po
@@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: https://bugs.freedesktop.org/enter_bug.cgi?product=LibreOffice&bug_status=UNCONFIRMED&component=UI\n"
-"POT-Creation-Date: 2012-11-30 12:19+0100\n"
+"POT-Creation-Date: 2012-12-10 11:45+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/source/mai/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver.po b/source/mai/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver.po
index 5a409610206..50d15551e3f 100644
--- a/source/mai/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver.po
+++ b/source/mai/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver.po
@@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: https://bugs.freedesktop.org/enter_bug.cgi?product=LibreOffice&bug_status=UNCONFIRMED&component=UI\n"
-"POT-Creation-Date: 2012-11-30 12:19+0100\n"
+"POT-Creation-Date: 2012-12-10 11:45+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/source/mai/nlpsolver/src/locale.po b/source/mai/nlpsolver/src/locale.po
index 9e3d3825f8e..ebfa03021bf 100644
--- a/source/mai/nlpsolver/src/locale.po
+++ b/source/mai/nlpsolver/src/locale.po
@@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: https://bugs.freedesktop.org/enter_bug.cgi?product=LibreOffice&bug_status=UNCONFIRMED&component=UI\n"
-"POT-Creation-Date: 2012-11-30 12:19+0100\n"
+"POT-Creation-Date: 2012-12-10 11:45+0100\n"
"PO-Revision-Date: 2012-06-16 14:52+0200\n"
"Last-Translator: Anonymous Pootle User\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-19 15:56:12 +0000
committerMichael Stahl <mstahl@redhat.com>2017-01-26 19:19:49 +0000
commit6c61086bd3afa0793c9d52634fcd1c46063e46f9 (patch)
treea8500e932591da29e700761e7681c3d6ce09bd7d /wizards
parent610e3d3e947727dad61a3797029b546878c062ed (diff)
fix the web wizard to work again
(cherry picked from commit 6ec8387bea9015c4487f76cebd045a1a6e291bc4) Change-Id: Ia957080165a060164317a5f7c9a46d065169314a Reviewed-on: https://gerrit.libreoffice.org/33314 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/web/BackgroundsDialog.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/wizards/com/sun/star/wizards/web/BackgroundsDialog.py b/wizards/com/sun/star/wizards/web/BackgroundsDialog.py
index 19f377e0a4ce..87d00b742dbc 100644
--- a/wizards/com/sun/star/wizards/web/BackgroundsDialog.py
+++ b/wizards/com/sun/star/wizards/web/BackgroundsDialog.py
@@ -64,12 +64,12 @@ class BackgroundsDialog(ImageListDialog):
def other(self):
filename = self.sd.callOpenDialog(
False, self.settings.cp_DefaultSession.cp_InDirectory)
- if filename is not None and filename.length > 0 and filename[0] is not None:
+ if filename is not None and len(filename) > 0 and filename[0] is not None:
self.settings.cp_DefaultSession.cp_InDirectory = \
FileAccess.getParentDir(filename[0])
i = self.add(filename[0])
- il.setSelected(i)
- il.display(i)
+ self.il.setSelected(i)
+ self.il.display(i)
'''
adds the given image to the image list (to the model)
@@ -81,24 +81,24 @@ class BackgroundsDialog(ImageListDialog):
def add(self, s):
#first i check the item does not already exists in the list...
i = 0
- while i < il.getListModel().getSize():
- if il.getListModel().getElementAt(i) == s:
+ while i < self.il.listModel.getSize():
+ if self.il.listModel.getElementAt(i) == s:
return i
-
i += 1
- il.getListModel().addElement(s)
+
+ self.il.listModel.add1(s)
try:
configView = Configuration.getConfigurationRoot(
self.xMSF, FileAccess.connectURLs(
CONFIG_PATH, "BackgroundImages"), True)
- i = Configuration.getChildrenNames(configView).length + 1
- o = Configuration.addConfigNode(configView, "" + i)
+ i = len(Configuration.getChildrenNames(configView)) + 1
+ o = Configuration.addConfigNode(configView, "" + str(i))
Configuration.set(s, "Href", o)
Configuration.commit(configView)
except Exception:
traceback.print_exc()
- return il.getListModel().getSize() - 1
+ return self.il.listModel.getSize() - 1
'''
an ImageList Imagerenderer implemtation.