Kaydet (Commit) 726fe9cc authored tarafından Andras Timar's avatar Andras Timar

enable localization of extension descriptions in mysqlc

üst 18465337
MySQL Connector installs a native MySQL database driver. It is faster, seamless integrated, easier to administrate and there is no need to install and setup a JDBC or ODBC driver separately. It was never easier to use MySQL databases in LibreOffice Base.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<version value="#VERSION#" /> <version value="#VERSION#" />
<platform value="UPDATED_SUPPORTED_PLATFORM" /> <platform value="UPDATED_SUPPORTED_PLATFORM" />
<display-name> <display-name>
<name lang="en-US">#TITLE#</name> <name lang="en-US">MySQL Connector</name>
</display-name> </display-name>
<dependencies> <dependencies>
<OpenOffice.org-minimal-version value="3.1" d:name="OpenOffice.org 3.1"/> <OpenOffice.org-minimal-version value="3.1" d:name="OpenOffice.org 3.1"/>
...@@ -18,6 +18,6 @@ ...@@ -18,6 +18,6 @@
<default xlink:href="images/extension_32.png" /> <default xlink:href="images/extension_32.png" />
</icon> </icon>
<extension-description> <extension-description>
<src lang="#LANG#" xlink:href="description/description_#LANG#.txt"/> <src lang="en-US" xlink:href="description-en-US.txt"/>
</extension-description> </extension-description>
</description> </description>
Verbindet OpenOffice.org direkt mit MySQL-Servern
\ No newline at end of file
The MySQL Connector for OpenOffice.org installs a native MySQL database driver. It is faster, seamless integrated, easier to administrate and there is no need to install and setup a JDBC or ODBC driver separately. It was never easier to use MySQL databases in OpenOffice.org Base.
Conecta OpenOffice.org directamente con los servidores de MySQL
\ No newline at end of file
Connexion directe d'OpenOffice.org avec les serveurs MySQL.
\ No newline at end of file
Közvetlen kapcsolatot teremt az OpenOffice.org és a MySQL-kiszolgálók között.
\ No newline at end of file
Consente la connessione diretta tra OpenOffice.org e i server MySQL
\ No newline at end of file
OpenOffice.org を MySQL サーバーと直接に接続させる
\ No newline at end of file
MySQL 서버를 통해 OpenOffice.org에 직접 연결합니다.
\ No newline at end of file
Verbindt OpenOffice.org direct met MySQL Servers
\ No newline at end of file
Laczy witryne OpenOffice.org bezposrednio z systemem MySQL Servers
\ No newline at end of file
Conecta o OpenOffice.org diretamente aos servidores MySQL
\ No newline at end of file
Liga o OpenOffice.org directamente aos servidores MySQL
\ No newline at end of file
Подключает OpenOffice.org напрямую к серверам MySQL
Ansluter OpenOffice.org direkt till MySQL-servrarna
\ No newline at end of file
将 OpenOffice.org 与 MySQL 服务器直接相连
\ No newline at end of file
將 OpenOffice.org 直接連線至 MySQL 伺服器
\ No newline at end of file
...@@ -48,13 +48,7 @@ EXTENSION_VERSION_BASE=$(MYSQLC_VERSION_MAJOR).$(MYSQLC_VERSION_MINOR).$(MYSQLC_ ...@@ -48,13 +48,7 @@ EXTENSION_VERSION_BASE=$(MYSQLC_VERSION_MAJOR).$(MYSQLC_VERSION_MINOR).$(MYSQLC_
EXTENSION_VERSION=$(EXTENSION_VERSION_BASE) EXTENSION_VERSION=$(EXTENSION_VERSION_BASE)
#---- extension title package name #---- extension title package name
.IF "$(MYSQLC_STATUS)" == "final" EXTENSION_ZIPNAME:=$(EXTENSIONNAME)
EXTENSION_TITLE:=$(MYSQLC_TITLE)
EXTENSION_ZIPNAME:=$(EXTENSIONNAME)
.ELSE
EXTENSION_TITLE:=$(MYSQLC_TITLE) ($(MYSQLC_STATUS))
EXTENSION_ZIPNAME:=$(EXTENSIONNAME)
.ENDIF
#------------------------------------------------------------------- #-------------------------------------------------------------------
...@@ -224,22 +218,10 @@ DESC_LANGS=$(WITH_LANG) ...@@ -224,22 +218,10 @@ DESC_LANGS=$(WITH_LANG)
.IF "$(DESC_LANGS)" == "" .IF "$(DESC_LANGS)" == ""
DESC_LANGS=en-US DESC_LANGS=en-US
.ENDIF .ENDIF
COMPONENT_DESCRIPTIONS=$/$(foreach,lang,$(DESC_LANGS) description$/description_$(lang).txt) COMPONENT_DESCRIPTIONS=$/$(foreach,lang,$(DESC_LANGS) description-$(lang).txt)
COMPONENT_DESCRIPTIONS_PACKDEP= \ COMPONENT_DESCRIPTIONS_PACKDEP= \
$(foreach,i,$(COMPONENT_DESCRIPTIONS) $(EXTENSIONDIR)$/$i) $(foreach,i,$(COMPONENT_DESCRIPTIONS) $(EXTENSIONDIR)$/$i)
# WITH_LANG might contain languages which we actually do not have a description for (yet)
# Find those, and treat the specially
# first, find those locales which we actually have a description file for
EXISTING_DESCRIPTIONS=$(foreach,i,$(shell $(FIND) .$/description -name "description_*.txt") $(i:f))
EXISTING_LANGS=$(foreach,i,$(EXISTING_DESCRIPTIONS) $(i:s,description_,,:s,.txt,,))
# then, create a version of WITH_LANG where we stripped all those locales
EXISTING_LANGS_NORMALIZED=$(strip $(EXISTING_LANGS))
EXISTING_LANGS_NORMALIZED:=+$(EXISTING_LANGS_NORMALIZED:s/ /+/)+
MISSING_LANGS=$(foreach,lang,$(WITH_LANG) $(eq,$(EXISTING_LANGS_NORMALIZED:s/+$(lang)+//),$(EXISTING_LANGS_NORMALIZED) $(lang) ))
# ........ dependencies for packaging the extension ........ # ........ dependencies for packaging the extension ........
EXTENSION_PACKDEPS=makefile.mk $(COMPONENT_IMAGES) $(COMPONENT_DESCRIPTIONS_PACKDEP) $(COMPONENT_MERGED_XCU) EXTENSION_PACKDEPS=makefile.mk $(COMPONENT_IMAGES) $(COMPONENT_DESCRIPTIONS_PACKDEP) $(COMPONENT_MERGED_XCU)
...@@ -260,11 +242,6 @@ $(COMPONENT_IMAGES) : $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f) ...@@ -260,11 +242,6 @@ $(COMPONENT_IMAGES) : $(SOLARSRC)$/$(RSCDEFIMG)$/desktop$/res$/$$(@:f)
@@-$(MKDIRHIER) $(@:d) @@-$(MKDIRHIER) $(@:d)
$(COPY) $< $@ $(COPY) $< $@
# existing descriptions: just copy
$(EXTENSIONDIR)$/description$/%.txt: .$/description$/%.txt
@@-$(MKDIRHIER) $(@:d)
@$(COPY) $< $@ > $(NULLDEV)
# xcu files: copy # xcu files: copy
# the following is a hack for now - need to find out the generic mechanism later # the following is a hack for now - need to find out the generic mechanism later
...@@ -272,17 +249,13 @@ $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/DataAccess$/Drivers.xc ...@@ -272,17 +249,13 @@ $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/DataAccess$/Drivers.xc
@@-$(MKDIRHIER) $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/DataAccess @@-$(MKDIRHIER) $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/DataAccess
@$(COPY) $< $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/DataAccess$/Drivers.xcu > $(NULLDEV) @$(COPY) $< $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/DataAccess$/Drivers.xcu > $(NULLDEV)
# non-existing descriptions: copy from the English version
.IF "$(strip $(MISSING_LANGS))" != ""
$(foreach,i,$(MISSING_LANGS) $(EXTENSIONDIR)$/description$/description_$i.txt): .$/description$/description_en-US.txt
@echo ------ WARNING: .$/description$/$(@:f) not found, falling back to English description
@@-$(MKDIRHIER) $(@:d)
@$(COPY) $< $@ > $(NULLDEV)
.ENDIF
$(DESCRIPTION_SRC): description.xml $(DESCRIPTION_SRC): description.xml
+-$(RM) $@ +-$(RM) $@
$(TYPE) description.xml | $(SED) "s/#VERSION#/$(EXTENSION_VERSION)/" | $(SED) "s,#TITLE#,$(EXTENSION_TITLE)," > $@ $(XRMEX) -p $(PRJNAME) -i $< -o $@ -m $(LOCALIZESDF) -l all
$(SED) "s/#VERSION#/$(EXTENSION_VERSION)/" < $@ > $@.new
mv $@.new $@
@$(COPY) $(@:d)/description-*.txt $(EXTENSIONDIR)
@$(COPY) description-en-US.txt $(EXTENSIONDIR)
.IF "$(SYSTEM_MYSQL)" != "YES" .IF "$(SYSTEM_MYSQL)" != "YES"
# --- the MySQL client lib needs to be copied # --- the MySQL client lib needs to be copied
......
...@@ -28,11 +28,3 @@ ...@@ -28,11 +28,3 @@
MYSQLC_VERSION_MAJOR=1 MYSQLC_VERSION_MAJOR=1
MYSQLC_VERSION_MINOR=0 MYSQLC_VERSION_MINOR=0
MYSQLC_VERSION_MICRO=1 MYSQLC_VERSION_MICRO=1
# the title, as displayed in the Extension Manager
MYSQLC_TITLE=MySQL Connector
# the status of the extension
# if this is different from "final", it will be appended to the title displayed in the Extension Manager
# and also added to the file name of the resulting .oxt file
MYSQLC_STATUS=final
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment