diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-06-11 20:56:30 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-07-21 08:20:50 +0100 |
commit | 00657aef09d854c74fb426a935a3e8b1fc390bb0 (patch) | |
tree | fd1a9bb264fe15dcc129498e62060ecd256b1ee7 /connectivity/source/drivers/ado | |
parent | fa987cbb813cfd729fe490f2f1258b7c8d7fb174 (diff) |
migrate to boost::gettext
* all .ui files go from <interface> to <interface domain="MODULE"> e.g. vcl
* all .src files go away and the english source strings folded into the .hrc as NC_("context", "source string")
* ResMgr is dropped in favour of std::locale imbued by boost::locale::generator pointed at matching
MODULE .mo files
* UIConfig translations are folded into the module .mo, so e.g. UIConfig_cui
goes from l10n target to normal one, so the res/lang.zips of UI files go away
* translation via Translation::get(hrc-define-key, imbued-std::locale)
* python can now be translated with its inbuilt gettext support (we keep the name strings.hrc there
to keep finding the .hrc file uniform) so magic numbers can go away there
* java and starbasic components can be translated via the pre-existing css.resource.StringResourceWithLocation
mechanism
* en-US res files go away, their strings are now the .hrc keys in the source code
* remaining .res files are replaced by .mo files
* in .res/.ui-lang-zip files, the old scheme missing translations of strings
results in inserting the english original so something can be found, now the
standard fallback of using the english original from the source key is used, so
partial translations shrink dramatically in size
* extract .hrc strings with hrcex which backs onto
xgettext -C --add-comments --keyword=NC_:1c,2 --from-code=UTF-8 --no-wrap
* extract .ui strings with uiex which backs onto
xgettext --add-comments --no-wrap
* qtz for gettext translations is generated at runtime as ascii-ified crc32 of
content + "|" + msgid
* [API CHANGE] remove deprecated binary .res resouce loader related uno apis
com::sun::star::resource::OfficeResourceLoader
com::sun::star::resource::XResourceBundleLoader
com::sun::star::resource::XResourceBundle
when translating strings via uno apis
com.sun.star.resource.StringResourceWithLocation
can continue to be used
Change-Id: Ia2594a2672b7301d9c3421fdf31b6cfe7f3f8d0a
Diffstat (limited to 'connectivity/source/drivers/ado')
-rw-r--r-- | connectivity/source/drivers/ado/AColumns.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/ado/AConnection.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/ado/ADriver.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/ado/AGroups.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/ado/AIndexes.cxx | 3 | ||||
-rw-r--r-- | connectivity/source/drivers/ado/AKeys.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/ado/APreparedStatement.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/ado/ATables.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/ado/AUsers.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/ado/AViews.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/ado/Aolevariant.cxx | 2 |
11 files changed, 12 insertions, 11 deletions
diff --git a/connectivity/source/drivers/ado/AColumns.cxx b/connectivity/source/drivers/ado/AColumns.cxx index 9f5e819f022f..0361972e48a1 100644 --- a/connectivity/source/drivers/ado/AColumns.cxx +++ b/connectivity/source/drivers/ado/AColumns.cxx @@ -29,7 +29,7 @@ #include <comphelper/types.hxx> #include <connectivity/dbexception.hxx> #include <algorithm> -#include "resource/ado_res.hrc" +#include "strings.hrc" using namespace connectivity::ado; using namespace connectivity; diff --git a/connectivity/source/drivers/ado/AConnection.cxx b/connectivity/source/drivers/ado/AConnection.cxx index 8c1431cf6c01..b7c39c7e5550 100644 --- a/connectivity/source/drivers/ado/AConnection.cxx +++ b/connectivity/source/drivers/ado/AConnection.cxx @@ -31,7 +31,7 @@ #include <cppuhelper/typeprovider.hxx> #include <connectivity/dbexception.hxx> #include <osl/file.hxx> -#include "resource/ado_res.hrc" +#include "strings.hrc" using namespace dbtools; using namespace connectivity::ado; diff --git a/connectivity/source/drivers/ado/ADriver.cxx b/connectivity/source/drivers/ado/ADriver.cxx index efda9a97820d..741dc13878da 100644 --- a/connectivity/source/drivers/ado/ADriver.cxx +++ b/connectivity/source/drivers/ado/ADriver.cxx @@ -26,7 +26,7 @@ #include <com/sun/star/lang/DisposedException.hpp> #include <connectivity/dbexception.hxx> #include <cppuhelper/supportsservice.hxx> -#include "resource/ado_res.hrc" +#include "strings.hrc" #include <objbase.h> #include "resource/sharedresources.hxx" diff --git a/connectivity/source/drivers/ado/AGroups.cxx b/connectivity/source/drivers/ado/AGroups.cxx index 2611ace16372..3b5df3c5e486 100644 --- a/connectivity/source/drivers/ado/AGroups.cxx +++ b/connectivity/source/drivers/ado/AGroups.cxx @@ -27,7 +27,7 @@ #include "TConnection.hxx" #include <comphelper/types.hxx> #include <connectivity/dbexception.hxx> -#include "resource/ado_res.hrc" +#include "strings.hrc" using namespace comphelper; using namespace connectivity; diff --git a/connectivity/source/drivers/ado/AIndexes.cxx b/connectivity/source/drivers/ado/AIndexes.cxx index 5bf8937af21f..732c0a0b4ffe 100644 --- a/connectivity/source/drivers/ado/AIndexes.cxx +++ b/connectivity/source/drivers/ado/AIndexes.cxx @@ -26,7 +26,8 @@ #include "TConnection.hxx" #include <comphelper/types.hxx> #include <connectivity/dbexception.hxx> -#include "resource/ado_res.hrc" +#include "strings.hrc" + using namespace ::comphelper; diff --git a/connectivity/source/drivers/ado/AKeys.cxx b/connectivity/source/drivers/ado/AKeys.cxx index 63a45cc6d31f..e12e7379c66f 100644 --- a/connectivity/source/drivers/ado/AKeys.cxx +++ b/connectivity/source/drivers/ado/AKeys.cxx @@ -28,7 +28,7 @@ #include "ado/Awrapado.hxx" #include <comphelper/property.hxx> #include <connectivity/dbexception.hxx> -#include "resource/ado_res.hrc" +#include "strings.hrc" using namespace ::comphelper; using namespace connectivity; diff --git a/connectivity/source/drivers/ado/APreparedStatement.cxx b/connectivity/source/drivers/ado/APreparedStatement.cxx index 4d8206a93508..497a721de03d 100644 --- a/connectivity/source/drivers/ado/APreparedStatement.cxx +++ b/connectivity/source/drivers/ado/APreparedStatement.cxx @@ -30,7 +30,7 @@ #include <comphelper/sequence.hxx> #include <connectivity/dbexception.hxx> #include <connectivity/dbtools.hxx> -#include "resource/ado_res.hrc" +#include "strings.hrc" #include <limits> diff --git a/connectivity/source/drivers/ado/ATables.cxx b/connectivity/source/drivers/ado/ATables.cxx index 6f0a502642fb..0c848f21de78 100644 --- a/connectivity/source/drivers/ado/ATables.cxx +++ b/connectivity/source/drivers/ado/ATables.cxx @@ -31,7 +31,7 @@ #include <comphelper/types.hxx> #include <cppuhelper/interfacecontainer.h> #include <connectivity/dbexception.hxx> -#include "resource/ado_res.hrc" +#include "strings.hrc" using namespace ::cppu; using namespace connectivity; diff --git a/connectivity/source/drivers/ado/AUsers.cxx b/connectivity/source/drivers/ado/AUsers.cxx index 74c22bd520d5..d9948573a426 100644 --- a/connectivity/source/drivers/ado/AUsers.cxx +++ b/connectivity/source/drivers/ado/AUsers.cxx @@ -26,7 +26,7 @@ #include <connectivity/sdbcx/IRefreshable.hxx> #include <comphelper/types.hxx> #include <connectivity/dbexception.hxx> -#include "resource/ado_res.hrc" +#include "strings.hrc" using namespace comphelper; using namespace connectivity; diff --git a/connectivity/source/drivers/ado/AViews.cxx b/connectivity/source/drivers/ado/AViews.cxx index d15fbf631657..a67e072cc30b 100644 --- a/connectivity/source/drivers/ado/AViews.cxx +++ b/connectivity/source/drivers/ado/AViews.cxx @@ -26,7 +26,7 @@ #include "TConnection.hxx" #include <comphelper/types.hxx> #include <connectivity/dbexception.hxx> -#include "resource/ado_res.hrc" +#include "strings.hrc" using namespace ::comphelper; diff --git a/connectivity/source/drivers/ado/Aolevariant.cxx b/connectivity/source/drivers/ado/Aolevariant.cxx index f7ac7b5f5694..319b02ad6f52 100644 --- a/connectivity/source/drivers/ado/Aolevariant.cxx +++ b/connectivity/source/drivers/ado/Aolevariant.cxx @@ -25,7 +25,7 @@ #include <com/sun/star/util/Date.hpp> #include <com/sun/star/util/DateTime.hpp> #include "resource/sharedresources.hxx" -#include "resource/ado_res.hrc" +#include "strings.hrc" #include <com/sun/star/bridge/oleautomation/Date.hpp> #include <com/sun/star/bridge/oleautomation/Currency.hpp> #include <com/sun/star/bridge/oleautomation/SCode.hpp> |