/binaryurp/source/

ristian Lohmaier <lohmaier+LibreOffice@googlemail.com> Save full file path to pot files 2018-01-14T12:07:20+00:00 Gabor Kelemen kelemeng@ubuntu.com 2017-12-16T07:59:12+00:00 674b1c924966b4a3b6027509a6ab682e7c5aaaea As requested here: http://nabble.documentfoundation.org/libreoffice-l10n-Pootle-source-file-paths-not-available-anymore-td4229127.html This adds the full source file path in case of .hrc and .ui files to the generated pot, relatie to srcdir. So instead of personalization.hrc:31 we can have cui/inc/personalization.hrc:31 for better context for translators. Since this is only in comment this will not change the translated status of strings. TODO: the other file formats we use are not affected by this. Change-Id: Id436d66698c93e07c46bf9c20601c5b480eadd0b Reviewed-on: https://gerrit.libreoffice.org/46591 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
As requested here:
http://nabble.documentfoundation.org/libreoffice-l10n-Pootle-source-file-paths-not-available-anymore-td4229127.html

This adds the full source file path in case of .hrc and .ui files
to the generated pot, relatie to srcdir. So instead of
personalization.hrc:31
we can have
cui/inc/personalization.hrc:31
for better context for translators.
Since this is only in comment this will not change the translated
status of strings.
TODO: the other file formats we use are not affected by this.

Change-Id: Id436d66698c93e07c46bf9c20601c5b480eadd0b
Reviewed-on: https://gerrit.libreoffice.org/46591
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
migrate to boost::gettext 2017-07-21T07:20:50+00:00 Caolán McNamara caolanm@redhat.com 2017-06-11T19:56:30+00:00 00657aef09d854c74fb426a935a3e8b1fc390bb0 * 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
* 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
-markus'>feature/chart-style-experiment-markus LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/smoketest/Zip_smoketestdoc.mk
'>root/filter
AgeCommit message (Expand)Author
AgeCommit message (Expand)Author
2014-04-02coverity#707833 Uninitialized pointer fieldCaolán McNamara
2014-04-02coverity#707828 Uninitialized pointer fieldCaolán McNamara
2014-04-02detect add to table beyond MAX_TABLE_SIZECaolán McNamara
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann
2014-03-31xmloff: sal_Bool->boolNoel Grandin
2014-03-30Typo: manualy->manuallyJulien Nabet
2014-03-29few more type fixesMatúš Kukan
2014-03-29error: no matching function for call to..Matúš Kukan
2014-03-28Resolves: i124477 set object shadow always at PPT import...Armin Le Grand
2014-03-27Second batch of adding SAL_OVERRIDE to overriding function declarationsStephan Bergmann
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann
2014-03-25coverity#735432 Logically dead codeCaolán McNamara
2014-03-24svtools: sal_Bool->boolNoel Grandin
2014-03-22coverity#736776 Dereference before null checkCaolán McNamara
2014-03-21coverity#705160 Missing break in switchCaolán McNamara
2014-03-21coverity#705159 Missing break in switchCaolán McNamara
2014-03-19Resolves: #i122984# Avoid too many Print JobSetups...Armin Le Grand
2014-03-19convert OUString::match to OUString::endsWithNoel Grandin
2014-03-17filter,formula: prefer passing OUString by referenceNoel Grandin
2014-03-14convert pdf warn dialog to .uiCaolán McNamara
2014-03-14svx: sal_Bool->boolNoel Grandin