216 Commits

Author SHA1 Message Date
Viktor Szakats
8fb5c10721 2013-04-04 00:06 UTC+0200 Viktor Szakats (harbour syenar.net)
* config/lang2po.hb
    + more translation comments
    + added source comments for core-lang translation source.
      (only the order of lang_id values is signficant, the
      actual values aren't)
    + minor code reabability

  * utils/hbmk2/hbmk2.hbp
    + enabled Galician translation

  * config/lang.hb
  * contrib/hbrun/doc/hbrun.fr_FR.md -> contrib/hbrun/doc/hbrun.fr.md
  * utils/hbmk2/doc/hbmk2.fr_FR.md -> utils/hbmk2/doc/hbmk2.fr.md
  * utils/hbmk2/po/hbmk2.fr_FR.po -> utils/hbmk2/po/hbmk2.fr.po
  * utils/hbmk2/hbmk2.hbp
    * fr_FR -> fr (to be in sync with lang modules and until there is
      no demand for fr_CA)

  * contrib/make.hb
    * whitespace
2013-04-04 00:08:04 +02:00
Viktor Szakats
764ef1bed4 updated localization, manuals regenerated (semi-automatic) 2013-04-03 16:03:16 +02:00
Viktor Szakats
21431980f1 applied autocorrections for core-lang, autoupdated with Transifex translations. 2013-04-03 13:22:29 +02:00
Viktor Szakats
c4866141fa updated localization, manuals regenerated (semi-automatic) 2013-04-03 12:12:30 +02:00
Viktor Szakats
0c6e68d4a3 updated localization, manuals regenerated (semi-automatic) 2013-04-03 12:03:44 +02:00
Viktor Szakats
99d487cb27 2013-04-03 03:33 UTC+0200 Viktor Szakats (harbour syenar.net)
* config/lang.hb
  * contrib/hbrun/hbrun.hbp
  * utils/hbmk2/hbmk2.hbp
    * option rename

  * config/lang2po.hb
    ! typo

  * src/lang/l_pt_br.c
    ! typos

  * src/lang/l_pt.c
    * updated from Transifex
2013-04-03 03:34:36 +02:00
Viktor Szakats
ae2163cbab updated localization, manuals regenerated (semi-automatic) 2013-04-03 00:23:27 +02:00
Viktor Szakats
4d4fceb53f updated localization, manuals regenerated (semi-automatic) 2013-04-02 18:28:12 +02:00
Viktor Szakats
68223b2916 updated localization, manuals regenerated (semi-automatic) 2013-04-02 02:53:33 +02:00
Viktor Szakats
f29b373946 2013-04-02 00:06 UTC+0200 Viktor Szakats (harbour syenar.net)
- contrib/hbrun/doc/hbrun.md
  - utils/hbmk2/doc/hbmk2.md
    - deleted files uploaded accidentally

  * config/lang.hb
    ! fixed last minute bug in adding extension to doc file
    ! fixed being wrongly based, now should be as passed option
      relative to cwd (was self dir)
2013-04-02 00:08:15 +02:00
Viktor Szakats
ba05780315 updated localization, manuals regenerated (semi-automatic) 2013-04-02 00:04:27 +02:00
Viktor Szakats
23ebe811d3 2013-04-02 00:00 UTC+0200 Viktor Szakats (harbour syenar.net)
* config/lang.hb
    + now requires the target project to be passed on cmdline
    + now pulls configuration from .hbp files.
      See .hbp changes in this very commit.
    + generalized the 'hbrun' special case in 'doc_make' mode
    + generalized doc output type (so can be other than .md now)
    % doesn't require hbrun tool anymore
    ; it means the tool is now more or less generic and can
      support else than hbmk2

  * contrib/hbrun/hbrun.hbp
  * utils/hbmk2/hbmk2.hbp
    + added configuration options for lang.hb

  * utils/hbi18n/hbi18n.prg
    + steps to make it better translatable

  * utils/hbmk2/hbmk2.prg
    + provisions to enable context in hb_i18n_*() API usage
2013-04-02 00:01:50 +02:00
Viktor Szakats
2c5662568c moved to global location 2013-04-01 23:46:10 +02:00
Viktor Szakats
f75ed9c574 2013-04-01 23:42 UTC+0200 Viktor Szakats (harbour syenar.net)
* utils/hbmk2/lang.hb
    + trs_push to push all languages
    + do not create doc of there if not supported
2013-04-01 23:44:08 +02:00
Viktor Szakats
97dee6eb03 updated localization, manuals regenerated (semi-automatic) 2013-04-01 23:38:13 +02:00
Viktor Szakats
f3847d9ddb updated localization, manuals regenerated (semi-automatic) 2013-04-01 20:47:07 +02:00
Viktor Szakats
f47c4f3a97 2013-04-01 18:53 UTC+0200 Viktor Szakats (harbour syenar.net)
* src/rtl/hbi18n2.prg
    * __i18n_potArrayClean() will now call transformation callback
      first again
    * __i18n_potArrayClean() transformation callback returning non-string
      will now be ignored instead of deleting the item

  * utils/hbmk2/hbmk2.prg
    * TOFIX added to a help text
2013-04-01 18:53:54 +02:00
Viktor Szakats
d630728319 updated localization, manuals regenerated (semi-automatic) 2013-04-01 18:44:16 +02:00
Viktor Szakats
10aab71a4b updated localization, manuals regenerated (semi-automatic) 2013-04-01 16:18:58 +02:00
Viktor Szakats
5ee7c8a419 updated localization, manuals regenerated (semi-automatic) 2013-04-01 14:24:35 +02:00
Viktor Szakats
fd4e1aa8b6 updated localization, manuals regenerated (semi-automatic) 2013-04-01 13:19:57 +02:00
Viktor Szakats
a0010d5b9a updated localization, manuals regenerated (semi-automatic) 2013-04-01 05:37:05 +02:00
Viktor Szakats
c2f5fc3ac9 2013-04-01 05:35 UTC+0200 Viktor Szakats (harbour syenar.net)
* utils/hbmk2/lang.hb
    + more automatic doctoring of translated strings

  * utils/hbmk2/hbmk2.prg
    * added TOFIX for an ambiguous translatable string
2013-04-01 05:36:11 +02:00
Viktor Szakats
0080b89464 updated localization, manuals regenerated (semi-automatic) 2013-04-01 04:24:27 +02:00
Viktor Szakats
159c2299d0 few value names were translatable by mistake 2013-04-01 04:23:02 +02:00
Viktor Szakats
02ebccfcdd 2013-04-01 03:33 UTC+0200 Viktor Szakats (harbour syenar.net)
* src/rtl/hbi18n2.prg
    ! __i18n_potArraySort() fixed to not RTE when no source is present
    + __i18n_potArraySort() tweaked to sort items w/o source info to always
      come before ones with source info
    + __i18n_potArrayClean() wlll now call transformation callback before
      deleting items
    + __i18n_potArrayClean() will now remove the item in question if the
      callback returns any non-string value
    + __i18n_potArrayClean()'s second lKeepVoidTranslations = .F. option will
      now also remove items where the translation is identical to the msg id

  - utils/hbmk2/_po_pull.hb
  - utils/hbmk2/_po_push.hb
  - utils/hbmk2/_md_make.hb
  + utils/hbmk2/hblang.hb
    * merged separate management scripts into one
    + sort pulled .po files before stripping/processing
    ! do not process .po files in place to avoid race conditions
      between parallel script sessions
    * minor tweaks

  * README.md
    ! minor
2013-04-01 04:09:18 +02:00
Viktor Szakats
0aadabafd7 updated localization, manuals regenerated (semi-automatic) 2013-04-01 03:44:21 +02:00
Viktor Szakats
cdc25aa128 2013-04-01 01:35 UTC+0200 Viktor Szakats (harbour syenar.net)
* src/rtl/hbi18n2.prg
    * consider the complete original string when sorting (was first 30 chars)

  * utils/hbmk2/_po_pull.hb
    ! more automatic translation fixups:
      "( " -> "("
      " )" -> ")"
2013-04-01 01:37:20 +02:00
Viktor Szakats
f18ce81c0b 2013-04-01 01:28 UTC+0200 Viktor Szakats (harbour syenar.net)
* utils/hbmk2/_po_pull.hb
    ! fixed wrong EOL forming after prev
    % consolidated newline transformation into new doctoring calling
    + fixing EOL+space into EOL in translated text
2013-04-01 01:30:23 +02:00
Viktor Szakats
f861720034 updated localization, manuals regenerated (semi-automatic) 2013-04-01 01:29:15 +02:00
Viktor Szakats
f7bd4b33e7 2013-04-01 01:14 UTC+0200 Viktor Szakats (harbour syenar.net)
* include/harbour.hbx
  * src/rtl/hbi18n2.prg
    + added __i18n_potArrayClean() function that can clean source comments,
      empty translations and able to do transformations on translations via
      use supplied callback.

  * utils/hbmk2/_po_pull.hb
    + do cleansing on .po files pulled from Transifex:
      % strip source comments
      % strip empty translations
      ! strip right/left padding from translated strings
      ! convert multiple spaces to single one in translated strings
    ; This will help keeping the diffs nice and tight and the
      .po files in repo minimal in size

  - utils/hbmk2/po/!
    - deleted another accindental file :( fixed auto-script to be
      more selective.
2013-04-01 01:18:50 +02:00
Viktor Szakats
bf545e1b4b updated localization, manuals regenerated (semi-automatic) 2013-04-01 01:08:20 +02:00
Viktor Szakats
c8192af65c updated localization, manuals regenerated (semi-automatic) 2013-04-01 00:21:44 +02:00
Viktor Szakats
3b20d12114 2013-04-01 00:17 UTC+0200 Viktor Szakats (harbour syenar.net)
* utils/hbmk2/hbmk2.prg
    + will now use UTF-8 when the stdout is redirected to file
      (caveat: will also use UTF-8 when using Windows tools
      like 'more' do not understand UTF-8)
    + will now use UTF-8 when using -viewhelp to open the help in viewer

  * README.md
    * minor clarification to formatting cmd templates

  * .gitattributes
    + some lines for future testing
2013-04-01 00:20:58 +02:00
Viktor Szakats
671c61b6de updated localization, manuals regenerated (semi-automatic) 2013-03-31 22:56:57 +02:00
Viktor Szakats
4f1db3a0b0 2013-03-31 22:52 UTC+0200 Viktor Szakats (harbour syenar.net)
* include/harbour.hbx
  * src/rtl/hbi18n2.prg
    + added __i18n_potArraySort( aTrans ) -> aTrans
      to sort .pot files to a predictable order (of first
      occurrence in file). It helps reducing unnecessarily
      large and unusable diffs when updating .pots and their
      related .po files

  * utils/hbmk2/hbmk2.prg
    * marked some string previously (and intentionally) marked
      as non-translatable, as translatable. One exception less.

  * utils/hbmk2/_po_push.hb
    + sort .pot before saving and pushing to localization service
2013-03-31 22:55:32 +02:00
Viktor Szakats
0fe9afaf16 updated localization, manuals regenerated (semi-automatic) 2013-03-31 22:55:00 +02:00
Viktor Szakats
b550ee9c1a 2013-03-31 21:52 UTC+0200 Viktor Szakats (harbour syenar.net)
* utils/hbmk2/hbmk2.prg
    + clarified 'target' in several help items
    + added 'to stdout' to clarifiy some help items
    + use 'platform/C compiler' except 'toolchain'
2013-03-31 21:53:44 +02:00
Viktor Szakats
e562f8de95 updated localization, manuals regenerated (semi-automatic) 2013-03-31 21:51:51 +02:00
Viktor Szakats
aaa6a84532 2013-03-31 21:22 UTC+0200 Viktor Szakats (harbour syenar.net)
* .gitignore
    * deleted .def file as they are now covered by bin/*/ and
      otherwise .def files do exist in source repo

  * contrib/rddads/doc/en/adsfuncs.txt
  * doc/en/string.txt
    * cleanups

  * utils/hbmk2/hbmk2.prg
    * cleaned function skeletons in help

  * extras/hbdoc/hbdoc.prg
    + include unknown COMPLIANCE value as in is doc instead of an error msg

  * src/compiler/compi18n.c
    * uncrustified, tweak formatting manually
    % optimized variable scopes

  * src/rtl/hbi18n2.prg
    * minor formatting
2013-03-31 21:25:16 +02:00
Viktor Szakats
fce9739764 2013-03-31 20:13 UTC+0200 Viktor Szakats (harbour syenar.net)
- utils/hbmk2/po/hbmk2.hu!.po
    - deleted accidentally added file

  * utils/hbmk2/_md_make.hb
  * utils/hbmk2/_po_pull.hb
    * minor tweaks

  * utils/hbmk2/po/hbmk2.hu.po
    + added two translations for testing automatic .po translation upload
2013-03-31 20:15:20 +02:00
Viktor Szakats
ee4174c835 updated localization, manuals regenerated (semi-automatic) 2013-03-31 19:35:04 +02:00
Viktor Szakats
3e3a5a7ff7 generalizing further 2013-03-31 16:34:28 +02:00
Viktor Szakats
ab064dee76 2013-03-31 15:15 UTC+0200 Viktor Szakats (harbour syenar.net)
* utils/hbmk2/_md_make.hb
  * utils/hbmk2/_po_pull.hb
  * utils/hbmk2/_po_push.hb
    + internals almost fully generalized
    + convert Transifex newline symbol to real newline

  * utils/hbmk2/hbmk2.prg
    + AllTrim() some translated text to avoid bad Markdown result
      when translated text contains left/right padding.
      TODO: double spaces in translated text and extend above
            to all strings, and move the whole post-processing/fixing
            to the po pull stage. Would be nice to have a core i18n
            function to be able to apply transformations via codeblock
            to translated text.
2013-03-31 15:20:37 +02:00
Viktor Szakats
626b68ad19 updated localization, manuals regenerated (semi-automatic) 2013-03-31 15:14:31 +02:00
Viktor Szakats
31a14aff61 updated localization, manuals regenerated (semi-automatic) 2013-03-31 15:10:45 +02:00
Viktor Szakats
202cfa79dd updated localization, manuals regenerated (semi-automatic) 2013-03-31 14:45:59 +02:00
Viktor Szakats
60a1267095 2013-03-31 04:46 UTC+0200 Viktor Szakats (harbour syenar.net)
* utils/hbmk2/_md_make.hb
  * utils/hbmk2/_po_pull.hb
  * utils/hbmk2/_po_push.hb
    % much faster .md generation
    + internals modified to ease moving the scripts to other dir
    + better feedback

  * utils/hbmk2/hbmk2.prg
    * formatting and minor
2013-03-31 05:17:46 +02:00
Viktor Szakats
7165aad70a updated localization, manuals regenerated (semi-automatic) 2013-03-31 04:47:37 +02:00
Viktor Szakats
dd78b1a7b0 updated localization, manuals regenerated (semi-automatic) 2013-03-30 18:53:26 +01:00